| java.lang.Object nextapp.echo2.app.FillImageBorder
FillImageBorder | public class FillImageBorder implements Serializable(Code) | | 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.
|
Constructor Summary | |
public | FillImageBorder() Creates a new FillImageBorder . | public | FillImageBorder(Color color, Insets borderInsets, Insets contentInsets) Creates a new FillImageBorder with the specified color,
border inset, and content inset. |
BOTTOM | final public static int BOTTOM(Code) | | |
BOTTOM_LEFT | final public static int BOTTOM_LEFT(Code) | | |
BOTTOM_RIGHT | final public static int BOTTOM_RIGHT(Code) | | |
LEFT | final public static int LEFT(Code) | | |
RIGHT | final public static int RIGHT(Code) | | |
TOP | final public static int TOP(Code) | | |
TOP_LEFT | final public static int TOP_LEFT(Code) | | |
TOP_RIGHT | final public static int TOP_RIGHT(Code) | | |
FillImageBorder | public FillImageBorder()(Code) | | Creates a new FillImageBorder .
|
getFillImage | public FillImage getFillImage(int position)(Code) | | Retrieves the FillImage at the specified position.
Parameters: 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 image the FillImage |
setBorderInsets | public void setBorderInsets(Insets borderInsets)(Code) | | Sets the inset of the border images, thus defining the width and
height of the border images.
The provided Insets value must only contain margins defined
in pixel units.
Parameters: borderInsets - the new border inset |
setColor | public void setColor(Color color)(Code) | | Sets the solid color background of the border.
Note that setting a solid background color for the border will cause
the alpha channel of any FillImage s to be rendered against
this color.
Parameters: color - the color |
setContentInsets | public void setContentInsets(Insets contentInsets)(Code) | | Sets the inset of the content that is contained within the border
relative to the outside of the border. If this inset value is smaller
than the the border inset, the content will be rendered partially on top
of the border. A null value for this property specifies that the
content should be drawn at the border inset.
The provided Insets value must only contain margins defined
in pixel units.
Parameters: contentInsets - the new content inset |
setFillImage | public void setFillImage(int position, FillImage fillImage)(Code) | | Sets the FillImage at the specified position.
Parameters: 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 image
Parameters: fillImage - the new FillIamge |
|
|