public class Border
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Border.Side
A representation of one or more sides of a border.
|
| Modifier and Type | Field and Description |
|---|---|
static int |
SIDE_BOTTOM
Index of bottom side in returned array of sides.
|
static int |
SIDE_LEFT
Index of left side in returned array of sides.
|
static int |
SIDE_RIGHT
Index of right side in returned array of sides.
|
static int |
SIDE_TOP
Index of top side in returned array of sides.
|
static int |
STYLE_DASHED
A border style that appears as a series of short line segments.
|
static int |
STYLE_DOTTED
A border style that appears as a series of dots.
|
static int |
STYLE_DOUBLE
A border style that creates two solid monochrome borders around an
object.
|
static int |
STYLE_GROOVE
A border style that causes a simulated 3D border to be rendered, such
that the border appears to have been carved out.
|
static int |
STYLE_INSET
A border style that causes a simulated 3D border to be rendered, such
that an object appears recessed.
|
static int |
STYLE_NONE
A border style that causes no border to be rendered.
|
static int |
STYLE_OUTSET
A border style that causes a simulated 3D border to be rendered, such
that an object appears raised.
|
static int |
STYLE_RIDGE
A border style that causes a simulated 3D border to be rendered, such
that the border appears as a ridge around an object.
|
static int |
STYLE_SOLID
A border style that causes a single solid monochrome border around an
object.
|
| Constructor and Description |
|---|
Border(Border.Side[] sides) |
Border(Extent size,
Color color,
int style)
Creates a new
Border. |
Border(int sizePx,
Color color,
int style)
Creates a new
Border with a pixel-based size. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Note that this implementation of equals will return FALSE if two borders
have a different number of sides but are nevertheless equivalent.
|
Color |
getColor()
Returns the border color.
|
Border.Side[] |
getSides()
Returns the sides of the border.
|
Extent |
getSize()
Returns the border size.
|
int |
getStyle()
Returns the border style.
|
boolean |
isMultisided()
Determines if the border is multisided.
|
public static final int SIDE_TOP
public static final int SIDE_RIGHT
public static final int SIDE_BOTTOM
public static final int SIDE_LEFT
public static final int STYLE_NONE
public static final int STYLE_SOLID
public static final int STYLE_INSET
public static final int STYLE_OUTSET
public static final int STYLE_GROOVE
public static final int STYLE_RIDGE
public static final int STYLE_DOUBLE
public static final int STYLE_DOTTED
public static final int STYLE_DASHED
public Border(int sizePx,
Color color,
int style)
Border with a pixel-based size.sizePx - the size of the border, in pixelscolor - the color of the borderstyle - the style of the border, one of the following constant values:
STYLE_NONESTYLE_SOLIDSTYLE_INSETSTYLE_OUTSETSTYLE_GROOVESTYLE_RIDGESTYLE_DOUBLESTYLE_DOTTEDSTYLE_DASHEDpublic Border(Extent size, Color color, int style)
Border.size - the size of the border (this property only supports
Extents with fixed (i.e., not percent) units)color - the color of the borderstyle - the style of the border, one of the following constant
values:
STYLE_NONESTYLE_SOLIDSTYLE_INSETSTYLE_OUTSETSTYLE_GROOVESTYLE_RIDGESTYLE_DOUBLESTYLE_DOTTEDSTYLE_DASHEDpublic Border(Border.Side[] sides)
public boolean equals(java.lang.Object o)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public Color getColor()
public Extent getSize()
Extents with
fixed (i.e., not percent) units.public int getStyle()
STYLE_NONESTYLE_SOLIDSTYLE_INSETSTYLE_OUTSETSTYLE_GROOVESTYLE_RIDGESTYLE_DOUBLESTYLE_DOTTEDSTYLE_DASHEDpublic Border.Side[] getSides()
public boolean isMultisided()