NASA World Wind

gov.nasa.worldwind.layers.Earth
Class UTMGraticuleLayer

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          extended by gov.nasa.worldwind.layers.AbstractLayer
              extended by gov.nasa.worldwind.layers.AbstractGraticuleLayer
                  extended by gov.nasa.worldwind.layers.Earth.UTMBaseGraticuleLayer
                      extended by gov.nasa.worldwind.layers.Earth.UTMGraticuleLayer
All Implemented Interfaces:
AVList, Disposable, MessageListener, Layer, Restorable, WWObject, PropertyChangeListener, EventListener

public class UTMGraticuleLayer
extends UTMBaseGraticuleLayer

Displays the UTM graticule.


Nested Class Summary
protected  class UTMGraticuleLayer.GraticuleTile
           
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.layers.Earth.UTMBaseGraticuleLayer
UTMBaseGraticuleLayer.MetricScaleSupport, UTMBaseGraticuleLayer.SquareGrid, UTMBaseGraticuleLayer.SquareZone
 
Nested classes/interfaces inherited from class gov.nasa.worldwind.layers.AbstractGraticuleLayer
AbstractGraticuleLayer.GridElement
 
Field Summary
static String GRATICULE_100000M
          Graticule for the 100,000 meter grid, nested inside the UTM grid.
static String GRATICULE_10000M
          Graticule for the 10,000 meter grid, nested inside the UTM grid.
static String GRATICULE_1000M
          Graticule for the 1,000 meter grid, nested inside the UTM grid.
static String GRATICULE_100M
          Graticule for the 100 meter grid, nested inside the UTM grid.
static String GRATICULE_10M
          Graticule for the 10 meter grid, nested inside the UTM grid.
static String GRATICULE_1M
          Graticule for the 1 meter grid, nested inside the UTM grid.
static String GRATICULE_UTM_GRID
          Graticule for the UTM zone grid.
protected static int GRID_COLS
           
protected static int GRID_ROWS
           
protected  UTMGraticuleLayer.GraticuleTile[][] gridTiles
           
protected static int MIN_CELL_SIZE_PIXELS
           
 
Fields inherited from class gov.nasa.worldwind.layers.Earth.UTMBaseGraticuleLayer
frameCount, GRATICULE_UTM, metricScaleSupport, ONEHT, UTM_MAX_LATITUDE, UTM_MIN_LATITUDE
 
Fields inherited from class gov.nasa.worldwind.layers.AbstractGraticuleLayer
globe, graticuleSupport, gridElements, lastEyePoint, lastVerticalExaggeration, lastViewFOV, lastViewHeading, lastViewPitch, LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_SOLID, polylineTerrainConformance, useSurfaceShapes, viewFrustum
 
Constructor Summary
UTMGraticuleLayer()
           
 
Method Summary
protected  void clear(DrawContext dc)
           
protected  void clearTiles()
           
protected  String[] getOrderedTypes()
           
protected  String getTypeFor(int resolution)
           
protected  ArrayList<UTMGraticuleLayer.GraticuleTile> getVisibleTiles(DrawContext dc)
           
protected  void initRenderingParams()
           
protected  void selectRenderables(DrawContext dc)
          Select the visible grid elements
protected  void selectUTMRenderables(DrawContext dc)
          Select the visible grid elements
 
Methods inherited from class gov.nasa.worldwind.layers.Earth.UTMBaseGraticuleLayer
computePosition, computePositionFromUPS, computePositionFromUTM, createSquaresGrid, getGraticuleLineColor, getGraticuleLineStyle, getGraticuleLineWidth, getLabelColor, getLabelFont, isDrawGraticule, isDrawLabels, setDrawGraticule, setDrawLabels, setGraticuleLineColor, setGraticuleLineStyle, setGraticuleLineWidth, setLabelColor, setLabelFont
 
Methods inherited from class gov.nasa.worldwind.layers.AbstractGraticuleLayer
addRenderable, computeAltitudeAboveGround, computeLabelOffset, computeTerrainConformance, computeTruncatedSegment, createLineRenderable, doPreRender, doRender, getDeltaLongitude, getGraticuleLineColor, getGraticuleLineStyle, getGraticuleLineWidth, getLabelColor, getLabelFont, getRenderingParams, getRestorableState, getSurfacePoint, greatCircleIntersectionAtLatitude, greatCircleIntersectionAtLongitude, greatCircleMidPoint, isDrawGraticule, isDrawLabels, needsToUpdate, preRenderGraticule, removeAllRenderables, renderGraticule, restoreState, setDrawGraticule, setDrawLabels, setGraticuleLineColor, setGraticuleLineStyle, setGraticuleLineWidth, setLabelColor, setLabelFont, setRenderingParams
 
Methods inherited from class gov.nasa.worldwind.layers.AbstractLayer
createLayerConfigElements, dispose, doPick, getDataFileStore, getExpiryTime, getLayerConfigParams, getMaxActiveAltitude, getMaxEffectiveAltitude, getMinActiveAltitude, getMinEffectiveAltitude, getName, getOpacity, getScale, getScreenCredit, isAtMaxResolution, isEnabled, isLayerActive, isLayerConfigDocument, isLayerInView, isMultiResolution, isNetworkRetrievalEnabled, isPickEnabled, pick, preRender, render, setDataFileStore, setEnabled, setExpiryTime, setMaxActiveAltitude, setMinActiveAltitude, setName, setNetworkRetrievalEnabled, setOpacity, setPickEnabled, setScreenCredit, toString
 
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
onMessage, propertyChange
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getBooleanValue, getBooleanValue, getChangeSupport, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getRestorableStateForAVPair, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 
Methods inherited from interface gov.nasa.worldwind.event.MessageListener
onMessage
 

Field Detail

GRATICULE_100000M

public static final String GRATICULE_100000M
Graticule for the 100,000 meter grid, nested inside the UTM grid.

See Also:
Constant Field Values

GRATICULE_10000M

public static final String GRATICULE_10000M
Graticule for the 10,000 meter grid, nested inside the UTM grid.

See Also:
Constant Field Values

GRATICULE_1000M

public static final String GRATICULE_1000M
Graticule for the 1,000 meter grid, nested inside the UTM grid.

See Also:
Constant Field Values

GRATICULE_100M

public static final String GRATICULE_100M
Graticule for the 100 meter grid, nested inside the UTM grid.

See Also:
Constant Field Values

GRATICULE_10M

public static final String GRATICULE_10M
Graticule for the 10 meter grid, nested inside the UTM grid.

See Also:
Constant Field Values

GRATICULE_1M

public static final String GRATICULE_1M
Graticule for the 1 meter grid, nested inside the UTM grid.

See Also:
Constant Field Values

GRATICULE_UTM_GRID

public static final String GRATICULE_UTM_GRID
Graticule for the UTM zone grid.

See Also:
Constant Field Values

GRID_COLS

protected static final int GRID_COLS
See Also:
Constant Field Values

GRID_ROWS

protected static final int GRID_ROWS
See Also:
Constant Field Values

gridTiles

protected UTMGraticuleLayer.GraticuleTile[][] gridTiles

MIN_CELL_SIZE_PIXELS

protected static final int MIN_CELL_SIZE_PIXELS
See Also:
Constant Field Values
Constructor Detail

UTMGraticuleLayer

public UTMGraticuleLayer()
Method Detail

clear

protected void clear(DrawContext dc)
Overrides:
clear in class AbstractGraticuleLayer

clearTiles

protected void clearTiles()

getOrderedTypes

protected String[] getOrderedTypes()

getTypeFor

protected String getTypeFor(int resolution)
Overrides:
getTypeFor in class UTMBaseGraticuleLayer

getVisibleTiles

protected ArrayList<UTMGraticuleLayer.GraticuleTile> getVisibleTiles(DrawContext dc)

initRenderingParams

protected void initRenderingParams()
Overrides:
initRenderingParams in class UTMBaseGraticuleLayer

selectRenderables

protected void selectRenderables(DrawContext dc)
Description copied from class: UTMBaseGraticuleLayer
Select the visible grid elements

Overrides:
selectRenderables in class UTMBaseGraticuleLayer
Parameters:
dc - the current DrawContext.

selectUTMRenderables

protected void selectUTMRenderables(DrawContext dc)
Select the visible grid elements

Parameters:
dc - the current DrawContext.

NASA World Wind