|
NextApp Echo2 v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo2.app.FillImageBorder
public class FillImageBorder
A representation of a graphical border drawn using a series of
eight FillImage
s. The eight images are used to describe
the four corners and four sides of the border.
The BorderInsets
property is used to describe the width and
height of the border images, i.e. the inset to which the border images
extend inward from the outer edges of the box.
The ContentInsets
property is used to describe the inset of
the content displayed within the border. If the content inset is less
than the border inset, the content will be drawn above the border.
The Color
property may be used in addition to or in lieu of
setting FillImage
s. The color will be drawn behind
the FillImage
s in the case where both are used.
Field Summary | |
---|---|
static int |
BOTTOM
|
static int |
BOTTOM_LEFT
|
static int |
BOTTOM_RIGHT
|
static int |
LEFT
|
static int |
RIGHT
|
static int |
TOP
|
static int |
TOP_LEFT
|
static int |
TOP_RIGHT
|
Constructor Summary | |
---|---|
FillImageBorder()
Creates a new FillImageBorder . |
|
FillImageBorder(Color color,
Insets borderInsets,
Insets contentInsets)
Creates a new FillImageBorder with the specified color,
border inset, and content inset. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
Insets |
getBorderInsets()
Returns the content inset. |
Color |
getColor()
Returns the solid color background of the border. |
Insets |
getContentInsets()
Sets the content inset. |
FillImage |
getFillImage(int position)
Retrieves the FillImage at the specified position. |
void |
setBorderInsets(Insets borderInsets)
Sets the inset of the border images, thus defining the width and height of the border images. |
void |
setColor(Color color)
Sets the solid color background of the border. |
void |
setContentInsets(Insets contentInsets)
Sets the inset of the content that is contained within the border relative to the outside of the border. |
void |
setFillImage(int position,
FillImage fillImage)
Sets the FillImage at the specified position. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TOP_LEFT
public static final int TOP
public static final int TOP_RIGHT
public static final int LEFT
public static final int RIGHT
public static final int BOTTOM_LEFT
public static final int BOTTOM
public static final int BOTTOM_RIGHT
Constructor Detail |
---|
public FillImageBorder()
FillImageBorder
.
public FillImageBorder(Color color, Insets borderInsets, Insets contentInsets)
FillImageBorder
with the specified color,
border inset, and content inset.
color
- the solid color background of the borderborderInsets
- the border insetcontentInsets
- the content insetsetBorderInsets(nextapp.echo2.app.Insets)
,
setContentInsets(nextapp.echo2.app.Insets)
,
setColor(nextapp.echo2.app.Color)
Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public Insets getBorderInsets()
setBorderInsets(nextapp.echo2.app.Insets)
public Color getColor()
setColor(nextapp.echo2.app.Color)
public Insets getContentInsets()
setContentInsets(nextapp.echo2.app.Insets)
public FillImage getFillImage(int position)
FillImage
at the specified position.
position
- the position, one of the following values:
TOP_LEFT
the top left corner imageTOP
the top side imageTOP_RIGHT
the top right corner imageLEFT
the left side imageRIGHT
the right side imageBOTTOM_LFET
the bottom left corner imageBOTTOM
the bottom side imageBOTTOM_RIGHT
the bottom right corner imageFillImage
public void setBorderInsets(Insets borderInsets)
Insets
value must only contain margins defined
in pixel units.
borderInsets
- the new border insetpublic void setColor(Color color)
FillImage
s to be rendered against
this color.
color
- the colorpublic void setContentInsets(Insets contentInsets)
Insets
value must only contain margins defined
in pixel units.
contentInsets
- the new content insetpublic void setFillImage(int position, FillImage fillImage)
FillImage
at the specified position.
position
- the position, one of the following values:
TOP_LEFT
the top left corner imageTOP
the top side imageTOP_RIGHT
the top right corner imageLEFT
the left side imageRIGHT
the right side imageBOTTOM_LFET
the bottom left corner imageBOTTOM
the bottom side imageBOTTOM_RIGHT
the bottom right corner imagefillImage
- the new FillIamge
|
NextApp Echo2 v2.1.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |