public class Border extends AttributeSubSet
Modifier and Type | Class and Description |
---|---|
static class |
Border.Style |
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
KEY_SET |
static Border.Style |
STYLE_DASHED |
static Border.Style |
STYLE_DOTTED |
static Border.Style |
STYLE_DOUBLE |
static Border.Style |
STYLE_GROOVE |
static Border.Style |
STYLE_HIDDEN |
static Border.Style |
STYLE_INSET |
static Border.Style |
STYLE_NONE |
static Border.Style |
STYLE_OUTSET |
static Border.Style |
STYLE_RIDGE |
static Border.Style |
STYLE_SOLID |
Constructor and Description |
---|
Border()
Create a border without any definitions.
|
Border(int width,
java.awt.Color color)
Creates a new solid border.
|
Border(int width,
java.awt.Color color,
Border.Style style)
Creates a new border.
|
Modifier and Type | Method and Description |
---|---|
Border |
copy()
This is equals to clone(), but with a correct return type and no
CloneNotSupportedException is thrown.
|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getAttribute(int keyIdx) |
java.awt.Color |
getBottomColor()
Gets the bottom border-color.
|
Border.Style |
getBottomStyle()
Gets the bottom border-style.
|
Measure |
getBottomWidth()
Gets the bottom border-width.
|
java.awt.Color |
getColor()
Gets the common color of border (left, right, top & bottom).
|
java.awt.Color |
getLeftColor()
Gets the left border-color.
|
Border.Style |
getLeftStyle()
Gets the left border-style.
|
Measure |
getLeftWidth()
Gets the left border-width.
|
java.awt.Color |
getRightColor()
Gets the right border-color.
|
Border.Style |
getRightStyle()
Gets the right border-style.
|
Measure |
getRightWidth()
Gets the right border-width.
|
Border.Style |
getStyle()
Gets the common style of border (left, right, top & bottom).
|
java.awt.Color |
getTopColor()
Gets the top border-color.
|
Border.Style |
getTopStyle()
Gets the top border-style.
|
Measure |
getTopWidth()
Gets the top border-width.
|
Measure |
getWidth()
Gets the common width border (left, right, top & bottom).
|
boolean |
isDefined() |
void |
optimize()
Optimize settings of this border.
|
void |
setBottomColor(java.awt.Color color)
Sets the bottom border-color .
|
void |
setBottomStyle(Border.Style style)
Sets the bottom border-style .
|
void |
setBottomWidth(Measure width)
Sets the bottom border-width .
|
void |
setColor(java.awt.Color color)
Sets the common border-color (left, right, top & bottom).
|
void |
setLeftColor(java.awt.Color color)
Sets the left border-color .
|
void |
setLeftStyle(Border.Style style)
Sets the left border-style .
|
void |
setLeftWidth(Measure width)
Sets the left border-width .
|
void |
setRightColor(java.awt.Color color)
Sets the right border-color .
|
void |
setRightStyle(Border.Style style)
Sets the right border-style .
|
void |
setRightWidth(Measure width)
Sets the right border-width .
|
void |
setSolid() |
void |
setSolid(Measure width) |
void |
setSolid(Measure width,
java.awt.Color color) |
void |
setStyle(Border.Style style)
Sets the common border-style (left, right, top & bottom).
|
void |
setTopColor(java.awt.Color color)
Sets the top border-color .
|
void |
setTopStyle(Border.Style style)
Sets the top border-style .
|
void |
setTopWidth(Measure width)
Sets the top border-width .
|
void |
setWidth(Measure width)
Sets the common border-width for (left, right, top & bottom).
|
addDefinedAttributes, applyAttributes, clone, isMutable, makeImmutable, setAttribute
public static final Border.Style STYLE_NONE
public static final Border.Style STYLE_HIDDEN
public static final Border.Style STYLE_DOTTED
public static final Border.Style STYLE_DASHED
public static final Border.Style STYLE_DOUBLE
public static final Border.Style STYLE_GROOVE
public static final Border.Style STYLE_RIDGE
public static final Border.Style STYLE_INSET
public static final Border.Style STYLE_OUTSET
public static final Border.Style STYLE_SOLID
public static final java.lang.String[] KEY_SET
public Border()
public Border(int width, java.awt.Color color)
width
- Width in points.color
- Color.public Border(int width, java.awt.Color color, Border.Style style)
width
- Width in points.color
- Color.style
- Style of border.public void setSolid()
public void setSolid(Measure width)
public void setSolid(Measure width, java.awt.Color color)
public void setStyle(Border.Style style)
style
- New Style.public void setWidth(Measure width)
width
- New width of border.public void setColor(java.awt.Color color)
color
- New color of border.public void setLeftStyle(Border.Style style)
style
- New Style.public void setLeftWidth(Measure width)
width
- New width.public void setLeftColor(java.awt.Color color)
color
- New color.public void setRightStyle(Border.Style style)
style
- New Style.public void setRightWidth(Measure width)
width
- New width.public void setRightColor(java.awt.Color color)
color
- New color.public void setTopStyle(Border.Style style)
style
- New Style.public void setTopWidth(Measure width)
width
- New width.public void setTopColor(java.awt.Color color)
color
- New color.public void setBottomStyle(Border.Style style)
style
- New Style.public void setBottomWidth(Measure width)
width
- New width.public void setBottomColor(java.awt.Color color)
color
- New color.public java.awt.Color getColor()
public Border.Style getStyle()
public Measure getWidth()
public java.awt.Color getLeftColor()
public Border.Style getLeftStyle()
public Measure getLeftWidth()
public java.awt.Color getRightColor()
public Border.Style getRightStyle()
public Measure getRightWidth()
public java.awt.Color getTopColor()
public Border.Style getTopStyle()
public Measure getTopWidth()
public java.awt.Color getBottomColor()
public Border.Style getBottomStyle()
public Measure getBottomWidth()
public void optimize()
public boolean isDefined()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public Border copy()
public java.lang.Object getAttribute(int keyIdx)
getAttribute
in class AttributeSubSet
© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.