public class GARSGraticuleLayer extends AbstractGraticuleLayer
Modifier and Type | Class and Description |
---|---|
protected class |
GARSGraticuleLayer.GraticuleTile |
AbstractGraticuleLayer.GridElement
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
angleFormat |
protected static java.lang.String |
chars |
static java.lang.String |
GRATICULE_GARS_LEVEL_0 |
static java.lang.String |
GRATICULE_GARS_LEVEL_1 |
static java.lang.String |
GRATICULE_GARS_LEVEL_2 |
static java.lang.String |
GRATICULE_GARS_LEVEL_3 |
protected GARSGraticuleLayer.GraticuleTile[][] |
gridTiles |
protected java.util.ArrayList<java.lang.Double> |
latitudeLabels |
protected static java.util.ArrayList<java.lang.String> |
latLabels |
protected static java.lang.String[][] |
level2Labels |
protected java.util.ArrayList<java.lang.Double> |
longitudeLabels |
protected static java.util.ArrayList<java.lang.String> |
lonLabels |
protected static int |
MIN_CELL_SIZE_PIXELS |
protected double[] |
thresholds
Indicates the eye altitudes in meters below which each level should be displayed.
|
frameTimeStamp, globe, graticuleSupport, gridElements, lastEyePoint, lastProjection, lastVerticalExaggeration, lastViewFOV, lastViewHeading, lastViewPitch, LINE_STYLE_DASHED, LINE_STYLE_DOTTED, LINE_STYLE_SOLID, terrainConformance
Constructor and Description |
---|
GARSGraticuleLayer() |
Modifier and Type | Method and Description |
---|---|
protected void |
addLevel0Label(double value,
java.lang.String labelType,
java.lang.String graticuleType,
double resolution,
LatLon labelOffset) |
protected void |
clear(DrawContext dc) |
protected void |
clearTiles() |
double |
get15MinuteThreshold()
Indicates the eye altitude below which the 15 minute grid is displayed.
|
double |
get30MinuteThreshold()
Indicates the eye altitude below which the 30 minute grid is displayed.
|
double |
get5MinuteThreshold()
Indicates the eye altitude below which the 5 minute grid is displayed.
|
java.lang.String |
getAngleFormat()
Get the graticule division and angular display format.
|
protected java.lang.String[] |
getOrderedTypes() |
protected java.lang.String |
getTypeFor(double resolution) |
protected java.util.ArrayList<GARSGraticuleLayer.GraticuleTile> |
getVisibleTiles(DrawContext dc) |
protected void |
initRenderingParams() |
protected java.lang.String |
makeAngleLabel(Angle angle,
double resolution) |
protected java.lang.String |
makeLabel(Sector sector,
java.lang.String graticuleType) |
protected void |
selectRenderables(DrawContext dc)
Select the visible grid elements
|
void |
set15MinuteThreshold(double altitude)
Specifies the eye altitude below which the 15 minute grid is displayed.
|
void |
set30MinuteThreshold(double altitude)
Specifies the eye altitude below which the 30 minute grid is displayed.
|
void |
set5MinuteThreshold(double altitude)
Specifies the eye altitude below which the 5 minute grid is displayed.
|
void |
setAngleFormat(java.lang.String format)
Sets the graticule division and angular display format.
|
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
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
onMessage, propertyChange
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
onMessage
protected java.lang.String angleFormat
protected static java.lang.String chars
public static final java.lang.String GRATICULE_GARS_LEVEL_0
public static final java.lang.String GRATICULE_GARS_LEVEL_1
public static final java.lang.String GRATICULE_GARS_LEVEL_2
public static final java.lang.String GRATICULE_GARS_LEVEL_3
protected GARSGraticuleLayer.GraticuleTile[][] gridTiles
protected java.util.ArrayList<java.lang.Double> latitudeLabels
protected static java.util.ArrayList<java.lang.String> latLabels
protected static java.lang.String[][] level2Labels
protected java.util.ArrayList<java.lang.Double> longitudeLabels
protected static java.util.ArrayList<java.lang.String> lonLabels
protected static final int MIN_CELL_SIZE_PIXELS
protected double[] thresholds
protected void addLevel0Label(double value, java.lang.String labelType, java.lang.String graticuleType, double resolution, LatLon labelOffset)
protected void clear(DrawContext dc)
clear
in class AbstractGraticuleLayer
protected void clearTiles()
public double get15MinuteThreshold()
public double get30MinuteThreshold()
public double get5MinuteThreshold()
public java.lang.String getAngleFormat()
Angle.ANGLE_FORMAT_DD
or Angle.ANGLE_FORMAT_DMS
.protected java.lang.String[] getOrderedTypes()
protected java.lang.String getTypeFor(double resolution)
protected java.util.ArrayList<GARSGraticuleLayer.GraticuleTile> getVisibleTiles(DrawContext dc)
protected void initRenderingParams()
protected java.lang.String makeAngleLabel(Angle angle, double resolution)
protected java.lang.String makeLabel(Sector sector, java.lang.String graticuleType)
protected void selectRenderables(DrawContext dc)
selectRenderables
in class AbstractGraticuleLayer
dc
- the current DrawContext
.public void set15MinuteThreshold(double altitude)
altitude
- the eye altitude in meters below which the 15 minute grid is displayed.public void set30MinuteThreshold(double altitude)
altitude
- the eye altitude in meters below which the 30 minute grid is displayed.public void set5MinuteThreshold(double altitude)
altitude
- the eye altitude in meters below which the 5 minute grid is displayed.public void setAngleFormat(java.lang.String format)
Angle.ANGLE_FORMAT_DD
, Angle.ANGLE_FORMAT_DMS
of Angle.ANGLE_FORMAT_DM
.format
- the graticule division and angular display format.java.lang.IllegalArgumentException
- is format
is null.