public class BorderAttribute extends Object implements AttributeValue
| Modifier and Type | Class and Description |
|---|---|
static class |
BorderAttribute.Position
The position of the border.
|
| Modifier and Type | Field and Description |
|---|---|
static Color |
DEFAULT_BORDER_COLOR
The border color default is #000000 (black).
|
static Length |
DEFAULT_BORDER_SIZE
The border size default is 0.1cm
|
static BorderAttribute.Position |
DEFAULT_POSITION
The default position for border
|
static BorderStyle |
DEFAULT_STYLE
The default style
|
| Constructor and Description |
|---|
BorderAttribute(Length size,
Color color,
BorderStyle style)
size is a length value
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendXMLAttribute(XMLUtil util,
Appendable appendable,
String attrName) |
static BorderAttributeBuilder |
builder() |
CharSequence |
getValue() |
String |
toString() |
public static final Color DEFAULT_BORDER_COLOR
public static final Length DEFAULT_BORDER_SIZE
public static final BorderAttribute.Position DEFAULT_POSITION
public static final BorderStyle DEFAULT_STYLE
public BorderAttribute(Length size, Color color, BorderStyle style)
size - The size of the bordercolor - The color of the border in format '#rrggbb'style - The style of the border, BorderAttribute.BORDER_SOLID or
BorderAttribute.BORDER_DOUBLEpublic static BorderAttributeBuilder builder()
public CharSequence getValue()
getValue in interface AttributeValuepublic void appendXMLAttribute(XMLUtil util, Appendable appendable, String attrName) throws IOException
util - an xml utilappendable - where to writeattrName - the attribute nameIOException - if an I/O error occursCopyright © 2016–2021. All rights reserved.