public class P2DBackground extends java.lang.Object implements P2DBackgroundInterface
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
version |
Constructor and Description |
---|
P2DBackground()
The constructor.
|
P2DBackground(java.awt.Color c)
Constructor that receives the color of the background.
|
P2DBackground(FwkAppearanceInterface ap)
Constructor that receives the appearance of the bacjkground.
|
Modifier and Type | Method and Description |
---|---|
FwkAppearanceInterface |
getAppearance()
Get the appearance of the background.
|
P2DBoundingBoxInterface |
getBoundingBox()
Retrieve the bounding box the component.
|
java.awt.Color |
getColor()
Gets this graphics context's current color to the specified color.
|
float |
getTransparency()
Get the transparency of the current color (range 0 .. 1.0).
|
java.lang.String |
getVersion()
Return the version string of the FWK component.
|
boolean |
getVisible()
Get the the background visibility.
|
boolean |
isVisible()
Get the visibility.
|
void |
paint(java.awt.Graphics2D g2)
Paint the background.
|
void |
release()
Release the object.
|
void |
setAppearance(FwkAppearanceInterface ap)
Set the appearance of the background.
|
void |
setBoundingBox(P2DBoundingBoxInterface bb)
Set the the bounding box of the component.
|
void |
setColor(java.awt.Color c)
Sets this graphics context's current color to the specified color.
|
void |
setTransparency(float t)
Set the transparency.
|
void |
setVisible(boolean flag)
Set the the background visibility.
|
public static final java.lang.String version
public P2DBackground()
public P2DBackground(java.awt.Color c)
c
- The color of the background.public P2DBackground(FwkAppearanceInterface ap)
ap
- The appearance of the background.public java.lang.String getVersion()
FwkInterface
getVersion
in interface FwkInterface
public void release()
release
in interface FwkInterface
public void paint(java.awt.Graphics2D g2)
paint
in interface P2DBackgroundInterface
g2
- The graphicsl context.public FwkAppearanceInterface getAppearance()
getAppearance
in interface P2DBackgroundInterface
public void setAppearance(FwkAppearanceInterface ap)
setAppearance
in interface P2DBackgroundInterface
ap
- The appearance of the background.public P2DBoundingBoxInterface getBoundingBox()
getBoundingBox
in interface P2DBackgroundInterface
public void setBoundingBox(P2DBoundingBoxInterface bb)
setBoundingBox
in interface P2DBackgroundInterface
bb
- The new bounding box of the component.public boolean isVisible()
isVisible
in interface P2DBackgroundInterface
public void setVisible(boolean flag)
setVisible
in interface P2DBackgroundInterface
flag
- true if the background should be visible.public boolean getVisible()
getVisible
in interface P2DBackgroundInterface
public void setColor(java.awt.Color c)
setColor
in interface P2DBackgroundInterface
c
- the color.Color
public java.awt.Color getColor()
getColor
in interface P2DBackgroundInterface
Color
public void setTransparency(float t)
setTransparency
in interface P2DBackgroundInterface
t
- The transparency.public float getTransparency()
getTransparency
in interface P2DBackgroundInterface