Class MapScaler.TickMarks

java.lang.Object
org.openstreetmap.josm.gui.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, ...

  • Field Details

  • Constructor Details

    • 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 Details

    • paintTicks

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