com.metsci.glimpse.axis.painter.label
Class LatLonAxisLabelHandler

java.lang.Object
  extended by com.metsci.glimpse.axis.painter.label.GridAxisLabelHandler
      extended by 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

Constructor Summary
LatLonAxisLabelHandler(GeoProjection geoProjection, boolean longitude)
           
 
Method Summary
 java.lang.String getAxisLabel(Axis1D axis)
           
 java.lang.String[] getTickLabels(Axis1D axis, double[] tickPositions)
           
 
Methods inherited from class com.metsci.glimpse.axis.painter.label.GridAxisLabelHandler
getAxisUnitConverter, getMinorTickPositions, getTickPositions, setAxisLabel, setAxisUnitConverter, setAxisUnits, setAxisUnits, setMinorTickCount, setTickSpacing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LatLonAxisLabelHandler

public LatLonAxisLabelHandler(GeoProjection geoProjection,
                              boolean longitude)
Method Detail

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.