|
||||||||||
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 |
---|
Nested classes/interfaces inherited from class com.bbn.openmap.omGraphics.OMList |
---|
OMList.OMDist<T> |
Field Summary | |
---|---|
protected int |
curLon
|
static java.lang.String |
defaultLevel0ColorString
The default line color for level 0. |
static java.lang.String |
defaultLevel1ColorString
The default line color for level 1. |
static java.lang.String |
defaultLevel2ColorString
The default line color for level 2. |
protected I18n |
i18n
|
protected DrawingAttributes |
level0Attributes
|
protected boolean[][] |
level0Frames
The array of coverage for level 0 data. |
protected OMGraphicList |
level0Rects
|
protected DrawingAttributes |
level1Attributes
|
protected boolean[][] |
level1Frames
The array of coverage for level 1 data. |
protected OMGraphicList |
level1Rects
|
protected DrawingAttributes |
level2Attributes
|
protected boolean[][] |
level2Frames
The array of coverage for level 2 data. |
protected OMGraphicList |
level2Rects
|
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 |
---|
APP_OBJECT_KEY, appObject, ATT_MAP_KEY, 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 | |
---|---|
void |
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. |
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()
|
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. |
boolean |
handleDirectory(java.io.File directory)
Do what you need to do to the directory. |
boolean |
handleFile(java.io.File file)
Do what you need to do to the file. |
void |
reset()
|
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, checkAttributeMap, checkAttributeMap, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, distanceToEdge, draw, draw, fill, fill, getAppObject, getAppObject, getAttribute, getAttributeMap, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, putAttribute, removeAttribute, replaceAppObjectWithAttributeMap, setAppObject, 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 defaultLevel0ColorString
public static final java.lang.String defaultLevel1ColorString
public static final java.lang.String defaultLevel2ColorString
protected boolean[][] level0Frames
protected boolean[][] level1Frames
protected boolean[][] level2Frames
protected DrawingAttributes level0Attributes
protected DrawingAttributes level1Attributes
protected DrawingAttributes level2Attributes
protected OMGraphicList level0Rects
protected OMGraphicList level1Rects
protected OMGraphicList level2Rects
protected int curLon
protected java.lang.String prefix
protected javax.swing.JPanel panel
Constructor Detail |
---|
public DTEDCoverageManager(java.lang.String[] paths)
Method Detail |
---|
public void reset()
public void checkOutCoverage(java.lang.String[] paths)
paths
- paths to the level 0, 1 and 2 dted root directory.public boolean handleDirectory(java.io.File directory)
WandererCallback
handleDirectory
in interface WandererCallback
directory
- that represents a directory to deal with.
public boolean handleFile(java.io.File file)
WandererCallback
handleFile
in interface WandererCallback
file
- to handle.
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 PropertyConsumer
getList
- 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 PropertyConsumer
list
- 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 PropertyConsumer
public void setProperties(java.util.Properties setList)
PropertyConsumer
setProperties
in interface PropertyConsumer
setList
- 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 PropertyConsumer
prefix
- 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 PropertyConsumer
prefix
- the prefix String.public java.awt.Component getGUI()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |