Class MapScaler.TickMarks

  • Enclosing class:
    MapScaler

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

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

    • 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​(Graphics g)
        Paint the ticks to the graphics.
        Parameters:
        g - The graphics to paint on.