public class TLcdNVGFontSize extends Object
style
of an NVG object.
It is composed of an actual size and a unit of measure.
The NVG 2.0 specification supports meters (m), kilometers (km), nautical miles (nm) or pixels (px).
NVG 1.5 only supports pixel units.
The default unit is pixels, in which case getUnitOfMeasure()
returns null
.
Non-null units of measure are only relevant for text objects, not labels.Constructor and Description |
---|
TLcdNVGFontSize(String aFontSize)
Create a new Font size according to aFontSize
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getSize()
Return the size of this font size.
|
TLcdDistanceUnit |
getUnitOfMeasure()
This method returns the unit of measure for the font size.
|
String |
toString() |
public TLcdNVGFontSize(String aFontSize)
aFontSize
- public int getSize()
public TLcdDistanceUnit getUnitOfMeasure()