public final class Border extends java.lang.Object implements StyleElement
Constructor and Description |
---|
Border()
Creates "border:initial"
|
Border(BorderProperty property)
Create border with given property.
|
Border(BorderWidthType borderWidth,
BorderProperty.Style style,
ColorType color)
Create border with property comes form parameters.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
draw()
All descendant have to implement how to draw it
|
BorderProperty |
getProperty() |
public Border()
public Border(BorderWidthType borderWidth, BorderProperty.Style style, ColorType color)
borderWidth
- Border with typestyle
- Border stylecolor
- Border colorpublic Border(BorderProperty property)
property
- Border propertypublic java.lang.String draw()
StyleElement
draw
in interface StyleElement
public BorderProperty getProperty()