|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.omGraphics.geom.BasicGeometry
com.bbn.openmap.omGraphics.OMGraphicAdapter
com.bbn.openmap.omGraphics.OMList<OMGraphic>
com.bbn.openmap.omGraphics.OMGraphicList
com.bbn.openmap.layer.dted.DTEDCoverageManager
public class DTEDCoverageManager
A DTEDCoverageManager knows how to look at DTED data and figure out what coverage is available.
| Nested Class Summary | |
|---|---|
static class |
DTEDCoverageManager.CoverageDataFile
Inner class that handles reading and writing coverage cache file. |
| Nested classes/interfaces inherited from class com.bbn.openmap.omGraphics.OMList |
|---|
OMList.OMDist<T> |
| Field Summary | |
|---|---|
protected DrawingAttributes[] |
attributes
|
protected boolean[][][] |
coverage
Coverage for level 0, 1, 2 frames |
static java.lang.String |
COVERAGE_FILE_PROPERTY
|
protected DTEDCoverageManager.CoverageDataFile |
coverageFile
CoverageDataFile object handling pre-cached coverage |
static java.lang.String |
DEFAULT_LEVEL0_COLOR_STRING
The default line color for level 0. |
static java.lang.String |
DEFAULT_LEVEL1_COLOR_STRING
The default line color for level 1. |
static java.lang.String |
DEFAULT_LEVEL2_COLOR_STRING
The default line color for level 2. |
protected I18n |
i18n
|
protected OMGraphicList[] |
levelRects
|
static java.util.logging.Logger |
logger
|
protected javax.swing.JPanel |
panel
|
protected java.lang.String[] |
paths
|
protected java.lang.String |
prefix
|
| Fields inherited from class com.bbn.openmap.omGraphics.OMList |
|---|
allowDuplicates, FIRST_ADDED_ON_TOP, graphics, LAST_ADDED_ON_TOP, NONE, processAllGeometries, traverseMode, vague |
| Fields inherited from class com.bbn.openmap.omGraphics.OMGraphicAdapter |
|---|
declutterType, displayPaint, edgeMatchesFill, fillPaint, hasLabel, linePaint, matted, mattingPaint, renderType, selected, selectPaint, showEditablePalette, stroke, textureMask |
| Fields inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
|---|
lineType, needToRegenerate, shape, visible |
| Fields inherited from interface com.bbn.openmap.PropertyConsumer |
|---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
| Constructor Summary | |
|---|---|
DTEDCoverageManager(java.lang.String[] paths)
|
|
| Method Summary | |
|---|---|
boolean[][][] |
checkOutCoverage(java.lang.String[] paths)
The method that cycles through all the paths, looking for the frames. |
float[] |
getCoverage(Projection proj)
Get a percentage value of how much of the map is covered for a projection. |
DTEDCoverageManager.CoverageDataFile |
getCoverageFile()
|
OMGraphicList |
getCoverageRects(int startx,
int starty,
int endx,
int endy,
int lineType,
Projection proj)
Method looks at the coverage arrays, and returns the applicable rectangles representing the frame coverages. |
OMGraphicList |
getCoverageRects(Projection proj)
Method organizes the query based on the projection, and returns the applicable rectangles representing the frame coverage. |
java.awt.Component |
getGUI(OMGraphicHandlerLayer layer)
|
java.util.Properties |
getProperties(java.util.Properties getList)
Method to fill in a Properties object, reflecting the current values of the PropertyConsumer. |
java.util.Properties |
getPropertyInfo(java.util.Properties list)
Method to fill in a Properties object with values reflecting the properties able to be set on this PropertyConsumer. |
java.lang.String |
getPropertyPrefix()
Get the property key prefix that is being used to prepend to the property keys for Properties lookups. |
void |
reset()
|
void |
setCoverageFile(DTEDCoverageManager.CoverageDataFile coverageFile)
|
void |
setProperties(java.util.Properties setList)
Method to set the properties in the PropertyConsumer. |
void |
setProperties(java.lang.String prefix,
java.util.Properties setList)
Method to set the properties in the PropertyConsumer. |
void |
setPropertyPrefix(java.lang.String prefix)
Set the property key prefix that should be used by the PropertyConsumer. |
| Methods inherited from class com.bbn.openmap.omGraphics.OMGraphicList |
|---|
add, add, addAll, addAll, clone, create, createDist, get, getOMGraphicAt, getTargets, iteratorCopy, listIteratorCopy, listIteratorCopy, objectToOMGraphic, readGraphics, readGraphics, remove, set, setFillPaint, setGridGenerator, setLinePaint, setMatted, setMattingPaint, setOMGraphicAt, setSelectPaint, setStroke, setTargets, setTextureMask, sort, writeGraphics, writeGraphics |
| Methods inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
|---|
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
equals, hashCode |
| Methods inherited from interface com.bbn.openmap.omGraphics.OMGraphic |
|---|
getDeclutterType, getDisplayColor, getDisplayPaint, getFillColor, getFillPaint, getLineColor, getLinePaint, getMattingPaint, getRenderType, getSelectColor, getSelectPaint, getShowEditablePalette, getStroke, getTextureMask, hasLineTypeChoice, isMatted, isSelected, normalizeDistanceForLineWidth, regenerate, renderLabel, setDeclutterType, setGraphicsColor, setGraphicsForEdge, setGraphicsForFill, setLabelLocation, setLabelLocation, setLabelLocation, setRenderType, setSelected, setShowEditablePalette, shouldRenderEdge, shouldRenderFill |
| Methods inherited from interface com.bbn.openmap.omGraphics.OMGeometry |
|---|
clearAttributes, contains, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape |
| Field Detail |
|---|
protected I18n i18n
public static java.util.logging.Logger logger
protected java.lang.String[] paths
public static final java.lang.String DEFAULT_LEVEL0_COLOR_STRING
public static final java.lang.String DEFAULT_LEVEL1_COLOR_STRING
public static final java.lang.String DEFAULT_LEVEL2_COLOR_STRING
public static final java.lang.String COVERAGE_FILE_PROPERTY
protected boolean[][][] coverage
protected DTEDCoverageManager.CoverageDataFile coverageFile
protected DrawingAttributes[] attributes
protected OMGraphicList[] levelRects
protected java.lang.String prefix
protected javax.swing.JPanel panel
| Constructor Detail |
|---|
public DTEDCoverageManager(java.lang.String[] paths)
| Method Detail |
|---|
public void reset()
public boolean[][][] checkOutCoverage(java.lang.String[] paths)
paths - paths to the level 0, 1 and 2 dted root directory.public OMGraphicList getCoverageRects(Projection proj)
proj - the projection of the screen
public float[] getCoverage(Projection proj)
proj -
public OMGraphicList getCoverageRects(int startx,
int starty,
int endx,
int endy,
int lineType,
Projection proj)
startx - the western-most longitude.starty - the southern-most latitude.endx - the eastern-most longitude.endy - the northern-most latitude.lineType - the type of line to use on the rectangles - Cylindrical
projections can use straight lines, but other projections should
use Rhumb lines.
public java.util.Properties getProperties(java.util.Properties getList)
PropertyConsumer
getProperties in interface PropertyConsumergetList - a Properties object to load the PropertyConsumer
properties into. If getList equals null, then a new
Properties object should be created.
public java.util.Properties getPropertyInfo(java.util.Properties list)
PropertyConsumer
getPropertyInfo in interface PropertyConsumerlist - a Properties object to load the PropertyConsumer
properties into. If getList equals null, then a new
Properties object should be created.
public java.lang.String getPropertyPrefix()
PropertyConsumer
getPropertyPrefix in interface PropertyConsumerpublic void setProperties(java.util.Properties setList)
PropertyConsumer
setProperties in interface PropertyConsumersetList - a properties object that the PropertyConsumer
can use to retrieve expected properties it can use for
configuration.
public void setProperties(java.lang.String prefix,
java.util.Properties setList)
PropertyConsumer
setProperties in interface PropertyConsumerprefix - a String used by the PropertyConsumer to prepend
to each property value it wants to look up -
setList.getProperty(prefix.propertyKey). If the prefix
had already been set, then the prefix passed in should
replace that previous value.setList - a Properties object that the PropertyConsumer
can use to retrieve expected properties it can use for
configuration.public void setPropertyPrefix(java.lang.String prefix)
PropertyConsumer
setPropertyPrefix in interface PropertyConsumerprefix - the prefix String.public DTEDCoverageManager.CoverageDataFile getCoverageFile()
public void setCoverageFile(DTEDCoverageManager.CoverageDataFile coverageFile)
coverageFile - the coverageFile to setpublic java.awt.Component getGUI(OMGraphicHandlerLayer layer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||