Larger relative-size - font will be larger relative to the parent element’s font-size, roughly by the ratio used to separate the absolute-size keywords above.
Smaller relative-size - font will be smaller relative to the parent element’s font-size, roughly by the ratio used to separate the absolute-size keywords above.
Tries to recognize a specified keyword as a proper keyword value of the ‘font-size’ and return it on success or NULL on failure.
FontSize()
public FontSize()
Medium
public static final FontSize Medium
Medium size. Initial value.
XxSmall
public static final FontSize XxSmall
The very small absolute-size
XSmall
public static final FontSize XSmall
The mediocre small absolute-size
Small
public static final FontSize Small
The normally small absolute-size
Large
public static final FontSize Large
The normally large absolute-size
XLarge
public static final FontSize XLarge
The mediocre large absolute-size
XxLarge
public static final FontSize XxLarge
The very large absolute-size
Larger
public static final FontSize Larger
Larger relative-size - font will be larger relative to the parent element’s font-size, roughly by the ratio used to separate the absolute-size keywords above.
Smaller
public static final FontSize Smaller
Smaller relative-size - font will be smaller relative to the parent element’s font-size, roughly by the ratio used to separate the absolute-size keywords above.
isInitial()
public final boolean isInitial()
Indicates whether this font-size has an initial value (Medium)
Returns:
boolean
getValue()
public final String getValue()
Returns a value of this font size as a string
Returns:
java.lang.String
isLengthDefined()
public final boolean isLengthDefined()
Indicates whether this font-size is defined with a Length value
Returns:
boolean
getLength()
public final Length getLength()
A length value, if this font-size was defined with it, or throwed exception otherwise
Indicates whether this font-size is defined with an absolute size as a keyword, based on the user’s default font size (which is medium)
Returns:
boolean
isRelativeSize()
public final boolean isRelativeSize()
Indicates whether this font-size is defined with an relative size as a keyword. The font will be larger or smaller relative to the parent element’s font size, roughly by the ratio used to separate the absolute-size keywords.
Returns:
boolean
equals(FontSize other)
public final boolean equals(FontSize other)
Determines whether this font-size instance is equal to specified