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

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

public class IncrementChooser
extends java.lang.Object

Chooses a good size for the scale-bar increments.


Constructor Summary
IncrementChooser()
           
 
Method Summary
 RoundQuantity chooseGoodIncrement(java.util.Collection units, double idealIncrement)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IncrementChooser

public IncrementChooser()
Method Detail

chooseGoodIncrement

public RoundQuantity chooseGoodIncrement(java.util.Collection units,
                                         double idealIncrement)
Parameters:
displayWidth - in model-space coordinates.
Returns:
a Quantity whose value will be a multiple of 10