|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.arsdigita.toolbox.rebop.AbstractDrawable
com.arsdigita.toolbox.rebop.BevelBox
Used to draw 3D boxes and edges around components. Can be used to draw solid flat rectangles, buttons, and edges around other controls. Implements the GenericDrawable interface so it can be used as a drawable for any GenericComponent.
Field Summary | |
static int |
STANDARD_BEVEL
|
static String |
versionId
|
Constructor Summary | |
BevelBox()
Construct a new BevelBox. |
|
BevelBox(Color fillColor)
Construct a new BevelBox with the specified fillColor and the "raised button" appearance. |
|
BevelBox(Color fillColor,
Color lightEdge,
Color darkEdge,
int bevelWidth,
boolean in)
Construct a new BevelBox with the specified appearance. |
|
BevelBox(Color fillColor,
int bevelWidth,
boolean in)
Construct a new BevelBox with the specified appearance. |
Method Summary | |
void |
draw(Graphics g,
int x,
int y,
int width,
int height)
Implementation of the GenericDrawable interface |
boolean |
getIn()
|
void |
setIn(boolean in)
|
void |
toggleIn()
|
Methods inherited from class com.arsdigita.toolbox.rebop.AbstractDrawable |
getXOffset, getYOffset, setXOffset, setYOffset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.arsdigita.toolbox.rebop.GenericDrawable |
getXOffset, getYOffset, setXOffset, setYOffset |
Field Detail |
public static final String versionId
public static final int STANDARD_BEVEL
Constructor Detail |
public BevelBox()
public BevelBox(Color fillColor)
fillColor
- box will be drawn with this as its fill color.
fillColor shouldn't be null, because then there's nothing to draw!public BevelBox(Color fillColor, int bevelWidth, boolean in)
fillColor
- box will be drawn with this as its fill color.
fillColor shouldn't be null, because then there's nothing to draw!bevelWidth
- number of pixels to use for bevelled edgesin
- if true, then the lightEdge will be the lower-right
edges of the box, otherwise the lightEdge will be the upper-left edges.public BevelBox(Color fillColor, Color lightEdge, Color darkEdge, int bevelWidth, boolean in)
fillColor
- box will be drawn with this as its fill color.
if null, then no center will be drawn.lightEdge
- color to draw the light edge in. If null, no
light edge will be drawn.darkEdge
- color to draw the light edge in. If null, no
dark edge will be drawn.bevelWidth
- number of pixels to use for bevelled edgesin
- if true, then the lightEdge will be the lower-right
edges of the box, otherwise the lightEdge will be the upper-left edges.Method Detail |
public void setIn(boolean in)
public void toggleIn()
public boolean getIn()
public void draw(Graphics g, int x, int y, int width, int height)
draw
in interface GenericDrawable
g
- Graphics to draw onx
- horizontal location to begin drawingy
- vertical location to begin drawingwidth
- width of area to draw inheight
- height of area to draw in
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |