|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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.rpf.RpfCoverage
public class RpfCoverage
This is a tool that provides coverage information on the Rpf data. It is supposed to be a simple tool that lets you see the general location of data, to guide you to the right place and scale of coverage. The layer really uses the properties passed in to it to determine which RPF/A.TOC should be scanned for the data. There is a palette for this layer, that lets you turn off the coverage for different levels of Rpf. Right now, only City Graphics, TLM, JOG, TPC, ONC, JNC, GNC and 5/10 meter CIB scales are are handled. All other scales are tossed together under the misc setting. The City Graphics setting shows all charts for scales greater than than 1:15k.
The properties for this file are: # Java Rpf properties # Number between 0-255: 0 is transparent, 255 is opaque jrpf.coverageOpaque=255 #Default is true, don't need this entry if you like it... jrpf.CG.showcov=true #Default colors don't need this entry jrpf.CG.color=CE4F3F # Other types can be substituted for CG (TLM, JOG, TPC, ONC, JNC, GNC, CIB10, CIB5, MISC) # Fill the rectangle, default is true jrpf.coverageFill=true
Nested Class Summary | |
---|---|
protected static class |
RpfCoverage.DefaultColors
|
static class |
RpfCoverage.RCCScaleComparator
|
static class |
RpfCoverage.RpfCoverageControl
|
Nested classes/interfaces inherited from class com.bbn.openmap.omGraphics.OMList |
---|
OMList.OMDist<T> |
Field Summary | |
---|---|
protected RpfCoverageManager |
coverageManager
|
static java.lang.String |
CoverageOpaquenessProperty
Property to use for filled rectangles (when java supports it). |
protected java.util.Map<RpfProductInfo,RpfCoverage.RpfCoverageControl> |
coverages
|
static java.lang.String |
FillProperty
Property to use to fill rectangles. |
protected boolean |
fillRects
Flag to fill the coverage rectangles. |
protected RpfFrameProvider |
frameProvider
|
protected I18n |
i18n
|
protected boolean |
inUse
Flag to track when the RpfCoverage is active. |
protected Layer |
layer
The parent layer. |
protected int |
opaqueness
A setting for how transparent to make the images. |
protected javax.swing.JFrame |
paletteWindow
|
protected java.lang.String |
propertyPrefix
|
protected boolean |
showPalette
Show the palette when showing coverage. |
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 |
---|
attributes, lineType, needToRegenerate, shape, visible |
Fields inherited from interface com.bbn.openmap.PropertyConsumer |
---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
Constructor Summary | |
---|---|
RpfCoverage(Layer l,
RpfFrameProvider frameProvider)
The default constructor for the Layer. |
Method Summary | |
---|---|
void |
allCoveragesOn()
|
protected void |
clearLayerAndCoverages()
|
java.awt.Component |
getGUI()
Provides the palette widgets to control the options of showing maps, or attribute text. |
java.lang.String |
getInitPropertiesOrder()
Specify what order properties should be presented in an editor. |
protected java.awt.Color |
getModifiedColor(java.awt.Color color)
|
int |
getOpaqueness()
|
javax.swing.JFrame |
getPaletteWindow()
Get RpfCoverage's associated palette as a top-level window |
java.util.Properties |
getProperties(java.util.Properties props)
PropertyConsumer method, to fill in a Properties object, reflecting the current values of the layer. |
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 |
isFillRects()
|
boolean |
isInUse()
|
boolean |
isShowPalette()
|
void |
prepare(Projection projection,
java.lang.String chartSeries)
Prepares the graphics for the layer. |
protected void |
resetCoveragesOnLayer()
|
protected void |
setDefaultValues()
Method that sets all the variables to the default values. |
void |
setFillRects(boolean fillRects)
|
void |
setFrameProvider(RpfFrameProvider frameProvider)
|
void |
setInUse(boolean iu)
|
void |
setOpaqueness(int opaqueness)
|
void |
setProperties(java.util.Properties props)
Method to set the properties in the PropertyConsumer. |
void |
setProperties(java.lang.String prefix,
java.util.Properties properties)
Set all the Rpf properties from a properties object. |
void |
setPropertyPrefix(java.lang.String prefix)
Set the property key prefix that should be used by the PropertyConsumer. |
void |
setShowPalette(boolean sp)
|
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 |
---|
public static final java.lang.String CoverageOpaquenessProperty
public static final java.lang.String FillProperty
protected RpfCoverageManager coverageManager
protected RpfFrameProvider frameProvider
protected java.util.Map<RpfProductInfo,RpfCoverage.RpfCoverageControl> coverages
protected java.lang.String propertyPrefix
protected int opaqueness
protected boolean fillRects
protected Layer layer
protected boolean inUse
protected boolean showPalette
protected I18n i18n
protected javax.swing.JFrame paletteWindow
Constructor Detail |
---|
public RpfCoverage(Layer l, RpfFrameProvider frameProvider)
Method Detail |
---|
public void setFrameProvider(RpfFrameProvider frameProvider)
protected void setDefaultValues()
public boolean isInUse()
public void setInUse(boolean iu)
public boolean isShowPalette()
public void setShowPalette(boolean sp)
public void allCoveragesOn()
public void setProperties(java.util.Properties props)
PropertyConsumer
setProperties
in interface PropertyConsumer
props
- 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 properties)
setProperties
in interface PropertyConsumer
prefix
- string prefix used in the properties file for this layer.properties
- the properties set in the properties file.public java.util.Properties getProperties(java.util.Properties props)
getProperties
in interface PropertyConsumer
props
- a Properties object to load the PropertyConsumer properties
into. If props equals null, then a new Properties object
should be created.
public java.util.Properties getPropertyInfo(java.util.Properties list)
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 getInitPropertiesOrder()
public void setPropertyPrefix(java.lang.String prefix)
setPropertyPrefix
in interface PropertyConsumer
prefix
- the prefix String.public java.lang.String getPropertyPrefix()
getPropertyPrefix
in interface PropertyConsumer
public void prepare(Projection projection, java.lang.String chartSeries)
Occasionally it is necessary to abort a prepare call. When this happens, the map will set the cancel bit in the LayerThread, (the thread that is running the prepare). If this Layer needs to do any cleanups during the abort, it should do so, but return out of the prepare asap.
protected void clearLayerAndCoverages()
protected void resetCoveragesOnLayer()
public int getOpaqueness()
public void setOpaqueness(int opaqueness)
opaqueness
- The opaqueness to set.public boolean isFillRects()
public void setFillRects(boolean fillRects)
fillRects
- the fillRects to setprotected java.awt.Color getModifiedColor(java.awt.Color color)
public java.awt.Component getGUI()
public javax.swing.JFrame getPaletteWindow()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |