public class BorderProperty extends StyleElement
Constructor and Description |
---|
BorderProperty() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
draw()
All descendant have to implement how to draw it
|
BorderWidth |
getBorderWidth() |
Color |
getColor() |
protected StyleElementType |
getElementType() |
Border.Style |
getStyle() |
BorderWidth |
getWidth() |
BorderProperty |
removeBorderWidth() |
BorderProperty |
setBorderWidth(BorderWidth.Type borderWidth) |
BorderProperty |
setBorderWidth(BorderWidth borderWidth) |
BorderProperty |
setBorderWidth(Length borderWidth) |
BorderProperty |
setColor(Color color) |
BorderProperty |
setColor(ColorName name) |
BorderProperty |
setStyle(Border.Style style) |
java.lang.String |
toString() |
drawClass, drawScript, getRoot, setRoot
protected StyleElementType getElementType()
getElementType
in class StyleElement
protected java.lang.String draw()
StyleElement
draw
in class StyleElement
public java.lang.String toString()
toString
in class StyleElement
public Color getColor()
public Border.Style getStyle()
public BorderWidth getWidth()
public BorderWidth getBorderWidth()
public BorderProperty setBorderWidth(BorderWidth borderWidth)
borderWidth
- the borderWidth to setpublic BorderProperty setBorderWidth(BorderWidth.Type borderWidth)
borderWidth
- the FontSize.Typepublic BorderProperty setBorderWidth(Length borderWidth)
borderWidth
- the lengthpublic BorderProperty removeBorderWidth()
public BorderProperty setColor(Color color)
color
- the color to setpublic BorderProperty setColor(ColorName name)
name
- the color name to setpublic BorderProperty setStyle(Border.Style style)
style
- the style to set