Class MapScale

java.lang.Object
  |
  +--MapScale
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class MapScale
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

See Also:
Serialized Form

Field Summary
 Unit display
           
 Unit map
           
 double metersperpixel
           
private static long serialVersionUID
           
 
Constructor Summary
MapScale(double fact, Unit dispbase, Unit m)
           
MapScale(double fact, Unit dispbase, Unit m, double metersperpixel)
           
MapScale(Unit disp, Unit m)
           
MapScale(Unit disp, Unit m, double metersperpixel)
           
 
Method Summary
 java.lang.Object clone()
           
 int compareTo(MapScale that)
           
 boolean equals(java.lang.Object that)
           
 double scale(Unit source)
           
 double toBase(Unit old)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID

display

public Unit display

map

public Unit map

metersperpixel

public transient double metersperpixel
Constructor Detail

MapScale

public MapScale(Unit disp,
                Unit m)

MapScale

public MapScale(Unit disp,
                Unit m,
                double metersperpixel)

MapScale

public MapScale(double fact,
                Unit dispbase,
                Unit m,
                double metersperpixel)

MapScale

public MapScale(double fact,
                Unit dispbase,
                Unit m)
Method Detail

toString

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

scale

public double scale(Unit source)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toBase

public double toBase(Unit old)

equals

public boolean equals(java.lang.Object that)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(MapScale that)