Class Unit
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.plugin.scalebar.Unit
-
- All Implemented Interfaces:
Comparable
public class Unit extends Object implements Comparable
Examples: meter, inch, angstrom!
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Object o)doublegetModelValue()StringgetName()StringtoString()
-
-
-
Constructor Detail
-
Unit
public Unit(String name, double modelValue)
-
-
Method Detail
-
getModelValue
public double getModelValue()
- Returns:
- width of one unit, in model-space coordinates
-
getName
public String getName()
-
compareTo
public int compareTo(Object o)
- Specified by:
compareToin interfaceComparable
-
-