com.metsci.glimpse.axis.painter.label
Class LatLonAxisLabelHandler
java.lang.Object
com.metsci.glimpse.axis.painter.label.GridAxisLabelHandler
com.metsci.glimpse.axis.painter.label.LatLonAxisLabelHandler
- All Implemented Interfaces:
- AxisLabelHandler
public class LatLonAxisLabelHandler
- extends GridAxisLabelHandler
Interprets axis values as latitude or longitude values under a
GeoProjection
.
- Author:
- ulman
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LatLonAxisLabelHandler
public LatLonAxisLabelHandler(GeoProjection geoProjection,
boolean longitude)
getTickLabels
public java.lang.String[] getTickLabels(Axis1D axis,
double[] tickPositions)
- Specified by:
getTickLabels
in interface AxisLabelHandler
- Overrides:
getTickLabels
in class GridAxisLabelHandler
tickPositions
- the output from getTickPositions( ).
- Returns:
- an array of string labels for the tick marks provided by getTickPositions( ).
getAxisLabel
public java.lang.String getAxisLabel(Axis1D axis)
- Specified by:
getAxisLabel
in interface AxisLabelHandler
- Overrides:
getAxisLabel
in class GridAxisLabelHandler
- Returns:
- a text label describing the axis (the type of data displayed, the units, etc...)
Copyright © 2012 Metron, Inc.. All Rights Reserved.