Class MapScaler.TickMarks

  • Enclosing class:
    MapScaler

    private static final class MapScaler.TickMarks
    extends java.lang.Object
    This class finds the best possible tick mark positions.

    It will attempt to use steps of 1m, 2.5m, 10m, 25m, ...

    • Constructor Summary

      Constructors 
      Constructor Description
      TickMarks​(double dist100Pixel, int width)
      Creates a new tick mark helper.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void paintTicks​(java.awt.Graphics g)
      Paint the ticks to the graphics.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TickMarks

        TickMarks​(double dist100Pixel,
                  int width)
        Creates a new tick mark helper.
        Parameters:
        dist100Pixel - The distance of 100 pixel on the map.
        width - The width of the mark.
    • Method Detail

      • paintTicks

        public void paintTicks​(java.awt.Graphics g)
        Paint the ticks to the graphics.
        Parameters:
        g - The graphics to paint on.