com.vividsolutions.jump.workbench.ui.plugin.scalebar
Class Unit

java.lang.Object
  extended bycom.vividsolutions.jump.workbench.ui.plugin.scalebar.Unit
All Implemented Interfaces:
java.lang.Comparable

public class Unit
extends java.lang.Object
implements java.lang.Comparable

Examples: meter, inch, angstrom!


Constructor Summary
Unit(java.lang.String name, double modelValue)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 double getModelValue()
           
 java.lang.String getName()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Unit

public Unit(java.lang.String name,
            double modelValue)
Method Detail

toString

public java.lang.String toString()

getModelValue

public double getModelValue()
Returns:
width of one unit, in model-space coordinates

getName

public java.lang.String getName()

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable