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

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.plugin.scalebar.RoundQuantity

public class RoundQuantity
extends java.lang.Object

Numbers with one or two significant digits, like 1 x 10^3, or 5 x 10^2.


Constructor Summary
RoundQuantity(int mantissa, int exponent, Unit unit)
           
 
Method Summary
 double getAmount()
           
 java.lang.String getAmountString()
           
 int getExponent()
           
 int getMantissa()
           
 double getModelValue()
           
 Unit getUnit()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoundQuantity

public RoundQuantity(int mantissa,
                     int exponent,
                     Unit unit)
Method Detail

getUnit

public Unit getUnit()

getMantissa

public int getMantissa()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getAmountString

public java.lang.String getAmountString()

getExponent

public int getExponent()

getAmount

public double getAmount()

getModelValue

public double getModelValue()