public final class FontSize extends java.lang.Object implements StyleElement
Modifier and Type | Class and Description |
---|---|
static class |
FontSize.Type
Font size type
|
Constructor and Description |
---|
FontSize()
Creates "font-size:initial;"
|
FontSize(FontSize.Type type)
Creates font size of
FontSize.Type |
FontSize(Length length,
LineHeight lineHeight)
Creates font size of
Length or/and LineHeight . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
draw()
All descendant have to implement how to draw it
|
Length |
getLength() |
LineHeight |
getLineHeight() |
FontSize.Type |
getType() |
public FontSize()
public FontSize(FontSize.Type type)
FontSize.Type
type
- of font sizepublic FontSize(Length length, LineHeight lineHeight)
Length
or/and LineHeight
.length
- of font sizelineHeight
- of font sizepublic FontSize.Type getType()
public Length getLength()
public LineHeight getLineHeight()
public java.lang.String draw()
StyleElement
draw
in interface StyleElement