Package gov.nasa.worldwind.layers.Earth
Class UTMGraticuleLayer
- java.lang.Object
-
- gov.nasa.worldwind.avlist.AVListImpl
-
- gov.nasa.worldwind.WWObjectImpl
-
- gov.nasa.worldwind.layers.AbstractLayer
-
- gov.nasa.worldwind.layers.AbstractGraticuleLayer
-
- gov.nasa.worldwind.layers.Earth.UTMBaseGraticuleLayer
-
- gov.nasa.worldwind.layers.Earth.UTMGraticuleLayer
-
- All Implemented Interfaces:
AVList,Disposable,MessageListener,Layer,Restorable,WWObject,java.beans.PropertyChangeListener,java.util.EventListener
public class UTMGraticuleLayer extends UTMBaseGraticuleLayer
Displays the UTM graticule.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classUTMGraticuleLayer.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
Fields Modifier and Type Field Description static java.lang.StringGRATICULE_100000MGraticule for the 100,000 meter grid, nested inside the UTM grid.static java.lang.StringGRATICULE_10000MGraticule for the 10,000 meter grid, nested inside the UTM grid.static java.lang.StringGRATICULE_1000MGraticule for the 1,000 meter grid, nested inside the UTM grid.static java.lang.StringGRATICULE_100MGraticule for the 100 meter grid, nested inside the UTM grid.static java.lang.StringGRATICULE_10MGraticule for the 10 meter grid, nested inside the UTM grid.static java.lang.StringGRATICULE_1MGraticule for the 1 meter grid, nested inside the UTM grid.static java.lang.StringGRATICULE_UTM_GRIDGraticule for the UTM zone grid.protected static intGRID_COLSprotected static intGRID_ROWSprotected UTMGraticuleLayer.GraticuleTile[][]gridTilesprotected static intMIN_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
frameTimeStamp, globe, graticuleSupport, gridElements, lastEyePoint, lastProjection, lastVerticalExaggeration, lastViewFOV, lastViewHeading, lastViewPitch, LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_SOLID, terrainConformance
-
-
Constructor Summary
Constructors Constructor Description UTMGraticuleLayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidclear(DrawContext dc)protected voidclearTiles()protected java.lang.String[]getOrderedTypes()protected java.lang.StringgetTypeFor(int resolution)protected java.util.ArrayList<UTMGraticuleLayer.GraticuleTile>getVisibleTiles(DrawContext dc)protected voidinitRenderingParams()protected voidselectRenderables(DrawContext dc)Select the visible grid elementsprotected voidselectUTMRenderables(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, 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, 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 gov.nasa.worldwind.event.MessageListener
onMessage
-
-
-
-
Field Detail
-
GRATICULE_UTM_GRID
public static final java.lang.String GRATICULE_UTM_GRID
Graticule for the UTM zone grid.- See Also:
- Constant Field Values
-
GRATICULE_100000M
public static final java.lang.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 java.lang.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 java.lang.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 java.lang.String GRATICULE_100M
Graticule for the 100 meter grid, nested inside the UTM grid.- See Also:
- Constant Field Values
-
GRATICULE_10M
public static final java.lang.String GRATICULE_10M
Graticule for the 10 meter grid, nested inside the UTM grid.- See Also:
- Constant Field Values
-
GRATICULE_1M
public static final java.lang.String GRATICULE_1M
Graticule for the 1 meter grid, nested inside the UTM grid.- See Also:
- Constant Field Values
-
MIN_CELL_SIZE_PIXELS
protected static final int MIN_CELL_SIZE_PIXELS
- See Also:
- Constant Field Values
-
GRID_ROWS
protected static final int GRID_ROWS
- See Also:
- Constant Field Values
-
GRID_COLS
protected static final int GRID_COLS
- See Also:
- Constant Field Values
-
gridTiles
protected UTMGraticuleLayer.GraticuleTile[][] gridTiles
-
-
Method Detail
-
initRenderingParams
protected void initRenderingParams()
- Overrides:
initRenderingParamsin classUTMBaseGraticuleLayer
-
getOrderedTypes
protected java.lang.String[] getOrderedTypes()
-
getTypeFor
protected java.lang.String getTypeFor(int resolution)
- Overrides:
getTypeForin classUTMBaseGraticuleLayer
-
clear
protected void clear(DrawContext dc)
- Overrides:
clearin classAbstractGraticuleLayer
-
selectRenderables
protected void selectRenderables(DrawContext dc)
Description copied from class:UTMBaseGraticuleLayerSelect the visible grid elements- Overrides:
selectRenderablesin classUTMBaseGraticuleLayer- Parameters:
dc- the currentDrawContext.
-
selectUTMRenderables
protected void selectUTMRenderables(DrawContext dc)
Select the visible grid elements- Parameters:
dc- the currentDrawContext.
-
getVisibleTiles
protected java.util.ArrayList<UTMGraticuleLayer.GraticuleTile> getVisibleTiles(DrawContext dc)
-
clearTiles
protected void clearTiles()
-
-