public class FillImageBorder
extends java.lang.Object
implements java.io.Serializable
FillImages. 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 FillImages. The color will be drawn behind
the FillImages in the case where both are used.| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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. |
FillImageBorder(Color color,
Insets borderInsets,
Insets contentInsets,
FillImage[] fillImages)
Creates a new
FillImageBorder with the specified color,
border inset, and content inset. |
| Modifier and Type | Method and Description |
|---|---|
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. |
boolean |
hasFillImages()
Determines if the border has any fill images configured.
|
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. |
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
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.echo.app.Insets),
setContentInsets(nextapp.echo.app.Insets),
setColor(nextapp.echo.app.Color)public FillImageBorder(Color color, Insets borderInsets, Insets contentInsets, FillImage[] fillImages)
FillImageBorder with the specified color,
border inset, and content inset.color - the solid color background of the borderborderInsets - the border insetcontentInsets - the content insetfillImages - the fill images, provided in the following order:
top-left, top, top-right, left, right, bottom-left, bottom, bottom-rightsetBorderInsets(nextapp.echo.app.Insets),
setContentInsets(nextapp.echo.app.Insets),
setColor(nextapp.echo.app.Color)public boolean equals(java.lang.Object o)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public Insets getBorderInsets()
setBorderInsets(nextapp.echo.app.Insets)public Color getColor()
setColor(nextapp.echo.app.Color)public Insets getContentInsets()
setContentInsets(nextapp.echo.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 imageFillImagepublic boolean hasFillImages()
public void setBorderInsets(Insets borderInsets)
Insets value must only contain margins defined
in pixel units.borderInsets - the new border insetpublic void setColor(Color color)
FillImages 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