Class IncrementChooser


  • public class IncrementChooser
    extends Object
    Chooses a good size for the scale-bar increments.
    • Constructor Detail

      • IncrementChooser

        public IncrementChooser()
    • Method Detail

      • chooseGoodIncrement

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