public class DTEDCoverageManager extends OMGraphicList implements WandererCallback, PropertyConsumer
OMList.OMDist<T>
Modifier and Type | Field and Description |
---|---|
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 |
allowDuplicates, FIRST_ADDED_ON_TOP, graphics, LAST_ADDED_ON_TOP, NONE, processAllGeometries, traverseMode, vague
declutterType, displayPaint, edgeMatchesFill, fillPaint, hasLabel, linePaint, matted, mattingPaint, renderType, selected, selectPaint, showEditablePalette, stroke, textureMask
APP_OBJECT_KEY, appObject, ATT_MAP_KEY, lineType, needToRegenerate, shape, visible
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
ADD_GRAPHIC_MASK, BASIC_STROKE, CHANGE_APPEARANCE, clear, DECIMAL_DEGREES, DECLUTTERTYPE_LINE, DECLUTTERTYPE_MOVE, DECLUTTERTYPE_NONE, DECLUTTERTYPE_SPACE, DEFAULT_ROTATIONANGLE, DELETE_GRAPHIC_MASK, DESELECT_GRAPHIC_MASK, DESELECTALL_GRAPHIC_MASK, GRAPHICTYPE_ARC, GRAPHICTYPE_BITMAP, GRAPHICTYPE_CIRCLE, GRAPHICTYPE_ELLIPSE, GRAPHICTYPE_GRAPHIC, GRAPHICTYPE_GRID, GRAPHICTYPE_LINE, GRAPHICTYPE_POINT, GRAPHICTYPE_POLY, GRAPHICTYPE_RASTER, GRAPHICTYPE_RECTANGLE, GRAPHICTYPE_TEXT, INFOLINE, LABEL, LINETYPE_GREATCIRCLE, LINETYPE_RHUMB, LINETYPE_STRAIGHT, LINETYPE_UNKNOWN, LOWER_GRAPHIC_MASK, LOWER_TO_BOTTOM_GRAPHIC_MASK, OMGRAPHIC_ELT, OMGRAPHIC_TYPE_ATTR, RADIANS, RAISE_GRAPHIC_MASK, RAISE_TO_TOP_GRAPHIC_MASK, REMOVABLE, RENDERTYPE_LATLON, RENDERTYPE_OFFSET, RENDERTYPE_UNKNOWN, RENDERTYPE_XY, SELECT_GRAPHIC_MASK, SORT_GRAPHICS_MASK, TOOLTIP, UPDATE_GRAPHIC_MASK, UPDATED
Constructor and Description |
---|
DTEDCoverageManager(java.lang.String[] paths) |
Modifier and Type | Method and Description |
---|---|
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.
|
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
checkForDuplicate, clear, contains, contains, containsAll, deselect, distance, doAction, findAll, findAll, findAllTest, findClosest, findClosest, findClosest, findClosestTest, findIndexOfClosest, findIndexOfClosest, generate, generate, getAllowDuplicates, getContains, getCopy, getDescription, getDescription, getProcessAllGeometries, getTraverseMode, getWithObject, indexOf, isEmpty, isVague, isVisible, iterator, lastIndexOf, listIterator, listIterator, moveIndexedOneToBack, moveIndexedOneToBottom, moveIndexedOneToFront, moveIndexedOneToTop, moveIndexedToBottom, moveIndexedToFirst, moveIndexedToLast, moveIndexedToTop, project, project, remove, removeAll, render, renderAllAsSelected, restore, retainAll, select, selectClosest, selectClosest, selectClosestTest, setAllowDuplicates, setProcessAllGeometries, setTraverseMode, setVague, setVisible, shouldProcess, size, subList, toArray, toArray
getDeclutterType, getDisplayColor, getDisplayPaint, getEdgeMatchesFill, getFillColor, getFillPaint, getHasLabel, getLineColor, getLinePaint, getMattingPaint, getRenderType, getSelectColor, getSelectPaint, getShowEditablePalette, getStroke, getTextureMask, hasLineTypeChoice, initLabelingDuringGenerate, isClear, isMatted, isSelected, normalizeDistanceForLineWidth, readStroke, regenerate, renderLabel, setDeclutterType, setEdgeMatchesFill, setFillColor, setGraphicsColor, setGraphicsForEdge, setGraphicsForFill, setHasLabel, setLabelLocation, setLabelLocation, setLabelLocation, setLabelLocation, setLineColor, setRenderType, setSelectColor, setSelected, setShape, setShowEditablePalette, shouldRenderEdge, shouldRenderFill, writeStroke
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, checkAttributeMap, checkAttributeMap, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, distanceToEdge, draw, fill, getAppObject, getAppObject, getAttribute, getAttributeMap, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, putAttribute, removeAttribute, replaceAppObjectWithAttributeMap, setAppObject, setAppObject, setAttributes, setLineType, setNeedToRegenerate
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
clearAttributes, contains, distanceToEdge, draw, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape
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
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 screenpublic 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()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details