Class LatLonAxisLabelHandler
- java.lang.Object
-
- com.metsci.glimpse.core.axis.painter.label.GridAxisLabelHandler
-
- com.metsci.glimpse.core.axis.painter.label.LatLonAxisLabelHandler
-
- All Implemented Interfaces:
AxisLabelHandler
public class LatLonAxisLabelHandler extends GridAxisLabelHandler
Interprets axis values as latitude or longitude values under aGeoProjection
.- Author:
- ulman
-
-
Constructor Summary
Constructors Constructor Description LatLonAxisLabelHandler(GeoProjection geoProjection, boolean longitude)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAxisLabel(Axis1D axis)
String[]
getTickLabels(Axis1D axis, double[] tickPositions)
-
Methods inherited from class com.metsci.glimpse.core.axis.painter.label.GridAxisLabelHandler
getAxisLabel, getAxisUnitConverter, getAxisUnits, getMinorTickPositions, getTickPositions, setAxisLabel, setAxisUnitConverter, setAxisUnits, setAxisUnits, setMinorTickCount, setTickSpacing
-
-
-
-
Constructor Detail
-
LatLonAxisLabelHandler
public LatLonAxisLabelHandler(GeoProjection geoProjection, boolean longitude)
-
-
Method Detail
-
getTickLabels
public String[] getTickLabels(Axis1D axis, double[] tickPositions)
- Specified by:
getTickLabels
in interfaceAxisLabelHandler
- Overrides:
getTickLabels
in classGridAxisLabelHandler
tickPositions
- the output from getTickPositions( ).- Returns:
- an array of string labels for the tick marks provided by getTickPositions( ).
-
getAxisLabel
public String getAxisLabel(Axis1D axis)
- Specified by:
getAxisLabel
in interfaceAxisLabelHandler
- Overrides:
getAxisLabel
in classGridAxisLabelHandler
- Returns:
- a text label describing the axis (the type of data displayed, the units, etc...)
-
-