|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bbn.openmap.layer.rpf.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
Field Summary | |
protected boolean |
cancelled
Set when the projection has changed while a swing worker is gathering graphics, and we want him to stop early. |
protected java.awt.Color |
CGColor
The color to outline the shapes. |
protected java.awt.Color |
CIB10Color
The color to outline the shapes. |
protected java.awt.Color |
CIB5Color
The color to outline the shapes. |
protected java.awt.Color[] |
colors
|
protected RpfCoverageManager |
coverageManager
|
static java.lang.String |
CoverageOpaquenessProperty
Property to use for filled rectangles (when java supports it). |
static int |
defaultCGColorInt
The default color int value. |
static int |
defaultCIB10ColorInt
The default color int value. |
static int |
defaultCIB5ColorInt
The default color int value. |
static int |
defaultGNCColorInt
The default color int value. |
static int |
defaultJNCColorInt
The default color int value. |
static int |
defaultJOGColorInt
The default color int value. |
static int |
defaultMISCColorInt
The default color int value. |
static int |
defaultONCColorInt
The default color int value. |
static int |
defaultTLMColorInt
The default color int value. |
static int |
defaultTPCColorInt
The default color int value. |
static java.lang.String |
FillProperty
Property to use to fill rectangles. |
protected boolean |
fillRects
Flag to fill the coverage rectangles. |
protected java.awt.Color |
GNCColor
The color to outline the shapes. |
protected I18n |
i18n
|
protected boolean |
inUse
Flag to track when the RpfCoverage is active. |
protected java.awt.Color |
JNCColor
The color to outline the shapes. |
protected java.awt.Color |
JOGColor
The color to outline the shapes. |
protected Layer |
layer
The parent layer. |
protected java.awt.Color |
MISCColor
The color to outline the shapes. |
protected java.util.Vector |
omGraphics
The graphic list of objects to draw. |
protected java.awt.Color |
ONCColor
The color to outline the shapes. |
protected int |
opaqueness
A setting for how transparent to make the images. |
protected javax.swing.JFrame |
paletteWindow
|
protected java.lang.String |
propertyPrefix
|
protected boolean |
showCG
Flag to tell the cache to return the coverage for city graphics. |
protected boolean |
showCIB10
Flag to tell the cache to return the coverage for 10M CIB. |
protected boolean |
showCIB5
Flag to tell the cache to return the coverage for 5M CIB. |
protected boolean |
showGNC
Flag to tell the cache to return the coverage for jog. |
protected boolean |
showJNC
Flag to tell the cache to return the coverage for jog. |
protected boolean |
showJOG
Flag to tell the cache to return the coverage for jog. |
protected boolean |
showMISC
Flag to tell the cache to return the coverage for others. |
protected boolean |
showONC
Flag to tell the cache to return the coverage for jog. |
protected boolean |
showPalette
Show the palette when showing coverage. |
protected boolean |
showTLM
Flag to tell the cache to return the coverage for tlm. |
protected boolean |
showTPC
Flag to tell the cache to return the coverage for jog. |
protected java.awt.Color |
TLMColor
The color to outline the shapes. |
protected java.awt.Color |
TPCColor
The color to outline the shapes. |
Fields inherited from interface com.bbn.openmap.PropertyConsumer |
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
Constructor Summary | |
RpfCoverage(Layer l)
The default constructor for the Layer. |
Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent e)
The Action Listener method, that reacts to the palette widgets actions. |
void |
allCoveragesOn()
|
void |
generate(Projection proj)
Reproject the graphics you have. |
protected java.awt.Color[] |
getColors()
|
java.util.Vector |
getGraphicLists()
|
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 |
isInUse()
|
boolean |
isShowPalette()
|
void |
paint(java.awt.Graphics g)
Paints the layer. |
void |
prepare(RpfFrameProvider frameProvider,
Projection projection,
java.lang.String chartSeries)
Prepares the graphics for the layer. |
protected void |
resetColors()
|
protected void |
setDefaultValues()
Method that sets all the variables to the default values. |
void |
setGraphicLists(java.util.Vector lists)
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.util.Vector omGraphics
protected boolean cancelled
protected RpfCoverageManager coverageManager
protected java.lang.String propertyPrefix
protected boolean showCG
protected boolean showTLM
protected boolean showJOG
protected boolean showTPC
protected boolean showONC
protected boolean showJNC
protected boolean showGNC
protected boolean showCIB10
protected boolean showCIB5
protected boolean showMISC
public static final int defaultCGColorInt
public static final int defaultTLMColorInt
public static final int defaultJOGColorInt
public static final int defaultTPCColorInt
public static final int defaultONCColorInt
public static final int defaultJNCColorInt
public static final int defaultGNCColorInt
public static final int defaultCIB10ColorInt
public static final int defaultCIB5ColorInt
public static final int defaultMISCColorInt
protected java.awt.Color CGColor
protected java.awt.Color TLMColor
protected java.awt.Color JOGColor
protected java.awt.Color TPCColor
protected java.awt.Color ONCColor
protected java.awt.Color JNCColor
protected java.awt.Color GNCColor
protected java.awt.Color CIB10Color
protected java.awt.Color CIB5Color
protected java.awt.Color MISCColor
protected int opaqueness
protected boolean fillRects
public static final java.lang.String CoverageOpaquenessProperty
public static final java.lang.String FillProperty
protected Layer layer
protected boolean inUse
protected boolean showPalette
protected I18n i18n
protected java.awt.Color[] colors
protected javax.swing.JFrame paletteWindow
Constructor Detail |
public RpfCoverage(Layer l)
Method Detail |
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(RpfFrameProvider frameProvider, 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 resetColors()
protected java.awt.Color[] getColors()
public int getOpaqueness()
public void setOpaqueness(int opaqueness)
opaqueness
- The opaqueness to set.protected java.awt.Color getModifiedColor(java.awt.Color color)
public void setGraphicLists(java.util.Vector lists)
public java.util.Vector getGraphicLists()
public void paint(java.awt.Graphics g)
g
- the Graphics context for paintingpublic void generate(Projection proj)
proj
- the projection to usepublic java.awt.Component getGUI()
public javax.swing.JFrame getPaletteWindow()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |