|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.app.Border
echopointng.BorderEx
public class BorderEx
BorderEx is extension of Border that allows you to set left,
right, top and bottom border values.
The more specific left, top, right and bottom border properties take precedence over the general border properties, in that they are applied last during rendering and are drawn so they override anything previously set by the general border properties.
| Field Summary | |
|---|---|
static BorderEx |
DEFAULT
A static BorderEx that is 1px wide, BLACK and STYLE_SOLID. |
static BorderEx |
NONE
A static BorderEx that is zero sized and STYLE_NONE. |
| Fields inherited from class nextapp.echo2.app.Border |
|---|
STYLE_DASHED, STYLE_DOTTED, STYLE_DOUBLE, STYLE_GROOVE, STYLE_INSET, STYLE_NONE, STYLE_OUTSET, STYLE_RIDGE, STYLE_SOLID |
| Constructor Summary | |
|---|---|
BorderEx()
Creates a new BorderEx with 1px wide, STYLE_SOLID style
and Color.BLACK. |
|
BorderEx(Color color)
Creates a new BorderEx with a 1px wide STYLE_SOLID style. |
|
BorderEx(Extent size,
Color color,
int style)
Creates a new BorderEx. |
|
BorderEx(Extent leftSize,
Color leftColor,
int leftStyle,
Extent rightSize,
Color rightColor,
int rightStyle,
Extent topSize,
Color topColor,
int topStyle,
Extent bottomSize,
Color bottomColor,
int bottomStyle)
Creates a new BorderEx with the specified left, right, top
an bottom properties. |
|
BorderEx(int size)
Creates a new BorderEx with a STYLE_SOLID style and
Color.BLACK color. |
|
BorderEx(int size,
Color color)
Creates a new BorderEx with a STYLE_SOLID style. |
|
BorderEx(int size,
Color color,
int style)
Creates a new BorderEx. |
|
BorderEx(int leftSize,
Color leftColor,
int leftStyle,
int rightSize,
Color rightColor,
int rightStyle,
int topSize,
Color topColor,
int topStyle,
int bottomSize,
Color bottomColor,
int bottomStyle)
Creates a new BorderEx with the specified left, right, top
an bottom properties.. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
Color |
getBottomColor()
|
Extent |
getBottomSize()
|
int |
getBottomStyle()
|
Color |
getColor()
Returns the border color. |
Color |
getLeftColor()
|
Extent |
getLeftSize()
|
int |
getLeftStyle()
|
Color |
getRightColor()
|
Extent |
getRightSize()
|
int |
getRightStyle()
|
Extent |
getSize()
Returns the border size. |
int |
getStyle()
Returns the border style. |
java.lang.String |
getStyleString()
Returns the string representation of the current border style eg. |
Color |
getTopColor()
|
Extent |
getTopSize()
|
int |
getTopStyle()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final BorderEx DEFAULT
public static final BorderEx NONE
| Constructor Detail |
|---|
public BorderEx()
BorderEx with 1px wide, STYLE_SOLID style
and Color.BLACK.
public BorderEx(Color color)
BorderEx with a 1px wide STYLE_SOLID style.
color - the color of the border
public BorderEx(Extent size,
Color color,
int style)
BorderEx.
size - the size of the bordercolor - 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_DASHED
public BorderEx(Extent leftSize,
Color leftColor,
int leftStyle,
Extent rightSize,
Color rightColor,
int rightStyle,
Extent topSize,
Color topColor,
int topStyle,
Extent bottomSize,
Color bottomColor,
int bottomStyle)
BorderEx with the specified left, right, top
an bottom properties.
leftSize - -
the size of the left side of the borderleftColor - -
the color of the left side of the borderleftStyle - -
the style of the left side of the borderrightSize - -
the size of the right side of the borderrightColor - -
the color of the right side of the borderrightStyle - -
the style of the right side of the bordertopSize - -
the size of the top side of the bordertopColor - -
the color of the top side of the bordertopStyle - -
the style of the top side of the borderbottomSize - -
the size of the bottom side of the borderbottomColor - -
the color of the bottom side of the borderbottomStyle - -
the style of the bottom side of the border
Styles can be one of the following constant values:
STYLE_NONESTYLE_SOLIDSTYLE_INSETSTYLE_OUTSETSTYLE_GROOVESTYLE_RIDGESTYLE_DOUBLESTYLE_DOTTEDSTYLE_DASHEDpublic BorderEx(int size)
BorderEx with a STYLE_SOLID style and
Color.BLACK color.
size - the size of the border in pixels
public BorderEx(int size,
Color color)
BorderEx with a STYLE_SOLID style.
size - the size of the border in pixelscolor - the color of the border
public BorderEx(int size,
Color color,
int style)
BorderEx.
size - 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_DASHED
public BorderEx(int leftSize,
Color leftColor,
int leftStyle,
int rightSize,
Color rightColor,
int rightStyle,
int topSize,
Color topColor,
int topStyle,
int bottomSize,
Color bottomColor,
int bottomStyle)
BorderEx with the specified left, right, top
an bottom properties..
leftSize - -
the size of the left side of the borderleftColor - -
the color of the left side of the borderleftStyle - -
the style of the left side of the borderrightSize - -
the size of the right side of the borderrightColor - -
the color of the right side of the borderrightStyle - -
the style of the right side of the bordertopSize - -
the size of the top side of the bordertopColor - -
the color of the top side of the bordertopStyle - -
the style of the top side of the borderbottomSize - -
the size of the bottom side of the borderbottomColor - -
the color of the bottom side of the borderbottomStyle - -
the style of the bottom side of the border
Styles can be one of the following constant values:
STYLE_NONESTYLE_SOLIDSTYLE_INSETSTYLE_OUTSETSTYLE_GROOVESTYLE_RIDGESTYLE_DOUBLESTYLE_DOTTEDSTYLE_DASHED| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class BorderObject.equals(java.lang.Object)public Color getBottomColor()
public Extent getBottomSize()
public int getBottomStyle()
public Color getColor()
Border
getColor in class BorderBorder.getColor()public Color getLeftColor()
public Extent getLeftSize()
public int getLeftStyle()
public Color getRightColor()
public Extent getRightSize()
public int getRightStyle()
public Extent getSize()
BorderExtents with
fixed (i.e., not percent) units.
getSize in class BorderBorder.getSize()()()public int getStyle()
Border
getStyle in class BorderSTYLE_NONESTYLE_SOLIDSTYLE_INSETSTYLE_OUTSETSTYLE_GROOVESTYLE_RIDGESTYLE_DOUBLESTYLE_DOTTEDSTYLE_DASHEDBorder.getStyle()()public java.lang.String getStyleString()
public Color getTopColor()
public Extent getTopSize()
public int getTopStyle()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||