Package com.luciad.format.nvg.model
Class TLcdNVGFontSize
java.lang.Object
com.luciad.format.nvg.model.TLcdNVGFontSize
Represents the font-size attribute from the
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.- Since:
- 2015.0
-
Constructor Summary
ConstructorDescriptionTLcdNVGFontSize
(String aFontSize) Create a new Font size according to aFontSize -
Method Summary
-
Constructor Details
-
TLcdNVGFontSize
Create a new Font size according to aFontSize- Parameters:
aFontSize
-
-
-
Method Details
-
getSize
public int getSize()Return the size of this font size.- Returns:
- Integer
-
getUnitOfMeasure
This method returns the unit of measure for the font size. Refer to the class javadoc for the possible values. If font size is expressed in pixels, this method return null.- Returns:
- The unit of measure of the font size, or null if the font size is expressed in pixels.
-
toString
-
equals
-