Class TLcdNVGFontSize

java.lang.Object
com.luciad.format.nvg.model.TLcdNVGFontSize

public class TLcdNVGFontSize extends Object
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 Details

    • TLcdNVGFontSize

      public TLcdNVGFontSize(String aFontSize)
      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

      public TLcdDistanceUnit 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

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object