Package org.openstreetmap.josm.gui
Class MapScaler.TickMarks
java.lang.Object
org.openstreetmap.josm.gui.MapScaler.TickMarks
- Enclosing class:
- MapScaler
This class finds the best possible tick mark positions.
It will attempt to use steps of 1m, 2.5m, 10m, 25m, ...
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleprivate final intprivate final doubleDistance in meters between two ticks.private final int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
dist100Pixel
-
spacingMeter
Distance in meters between two ticks. -
steps
-
minorStepsPerMajor
-
-
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
Paint the ticks to the graphics.- Parameters:
g- The graphics to paint on.
-