|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bbn.openmap.layer.vpf.LayerGraphicWarehouseSupport | +--com.bbn.openmap.layer.vpf.VPFLayerDCWWarehouse
Implement a graphic factory that builds OMGraphics. This one handles DCW dtabases. It has some properties that can be added to the VPFLayer property list that further control which types of features will not be displayed for a coverage type.
If you use the com.bbn.openmap.layer.vpf.Server class, and run it on a (coverage type)/int.vdt file:
java com.bbn.openmap.layer.vpf.Server /dcw/noamer/po/int.vdtYou can use the values in column 3 to add to a list to have that attribute type *NOT* show up.
vpflayer.areaTypeExclude= vpflayer.lineTypeExclude=9 (for po coverages, gets rid of tile boundaries) vpflayer.textTypeExclude=These are space-separated lists.
OMGraphic
Field Summary | |
static java.lang.String |
AreaTypeExcludeProperty
|
protected int[] |
areaTypeExcludes
|
protected boolean |
DEBUG
|
static java.lang.String |
LineTypeExcludeProperty
|
protected int[] |
lineTypeExcludes
|
static java.lang.String |
TextTypeExcludeProperty
|
protected int[] |
textTypeExcludes
|
Fields inherited from class com.bbn.openmap.layer.vpf.LayerGraphicWarehouseSupport |
antarcticaThreshold, areaSubList, drawingAttributes, edgeSubList, graphics, pointSubList, textSubList |
Constructor Summary | |
VPFLayerDCWWarehouse()
|
Method Summary | |
void |
createArea(CoverageTable covtable,
AreaTable areatable,
java.util.List facevec,
LatLonPoint ll1,
LatLonPoint ll2,
float dpplat,
float dpplon)
Method called by the VPF reader code to construct an area feature. |
void |
createEdge(CoverageTable covtable,
EdgeTable edgetable,
java.util.List edgevec,
LatLonPoint ll1,
LatLonPoint ll2,
float dpplat,
float dpplon,
CoordFloatString coords)
Method called by the VPF reader code to construct an edge feature. |
void |
createNode(CoverageTable c,
NodeTable t,
java.util.List nodeprim,
float latitude,
float longitude,
boolean isEntityNode)
Method called by the VPF reader code to construct a node feature. |
void |
createText(CoverageTable covtable,
TextTable texttable,
java.util.List textvec,
float latitude,
float longitude,
java.lang.String text)
Method called by the VPF reader code to construct a text feature. |
java.util.List |
getFeatures()
Returns the list of features to draw - DCW doesn't have features, so returns an empty List |
protected int[] |
getNumbersFromPropertyList(java.lang.String list)
From a string of space separated numbers, creates an int[]. |
protected boolean |
onList(int[] list,
int num)
returns true if the num is a number somewhere on the list. |
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
set drawing attribute properties |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String AreaTypeExcludeProperty
public static final java.lang.String LineTypeExcludeProperty
public static final java.lang.String TextTypeExcludeProperty
protected int[] areaTypeExcludes
protected int[] lineTypeExcludes
protected int[] textTypeExcludes
protected boolean DEBUG
Constructor Detail |
public VPFLayerDCWWarehouse()
Method Detail |
public void setProperties(java.lang.String prefix, java.util.Properties props)
LayerGraphicWarehouseSupport
setProperties
in class LayerGraphicWarehouseSupport
prefix
- the prefix for our propertiesprops
- the Properties object we use to look up valuseprotected int[] getNumbersFromPropertyList(java.lang.String list)
protected boolean onList(int[] list, int num)
public java.util.List getFeatures()
public void createArea(CoverageTable covtable, AreaTable areatable, java.util.List facevec, LatLonPoint ll1, LatLonPoint ll2, float dpplat, float dpplon)
VPFGraphicWarehouse
covtable
- the coverage table for this areaareatable
- the areatable being parsedfacevec
- the record read from the area tabledpplat
- threshold for latitude thinning (passed to
warehouse)dpplon
- threshold for longitude thinngin (passed to
warehouse)ll1
- upperleft of selection region (passed to warehouse)ll2
- lowerright of selection region (passed to warehouse)public void createEdge(CoverageTable covtable, EdgeTable edgetable, java.util.List edgevec, LatLonPoint ll1, LatLonPoint ll2, float dpplat, float dpplon, CoordFloatString coords)
VPFGraphicWarehouse
covtable
- the coverage table for this edgeedgetable
- the edgetable being parsededgevec
- the record read from the edge tabledpplat
- threshold for latitude thinning (passed to
warehouse)dpplon
- threshold for longitude thinngin (passed to
warehouse)ll1
- upperleft of selection region (passed to warehouse)ll2
- lowerright of selection region (passed to warehouse)public void createText(CoverageTable covtable, TextTable texttable, java.util.List textvec, float latitude, float longitude, java.lang.String text)
VPFGraphicWarehouse
covtable
- the coverage table for this texttexttable
- the texttable being parsedtextvec
- the record read from the text tablelatitude
- the latitude of the textlongitude
- the longitude of the texttext
- the text stringpublic void createNode(CoverageTable c, NodeTable t, java.util.List nodeprim, float latitude, float longitude, boolean isEntityNode)
c
- the coverage table for this nodet
- the nodetable being parsednodeprim
- the record read from the node tablelatitude
- the latitude of the nodelongitude
- the longitude of the nodeisEntityNode
- true if we are reading entity notes, false
if we are reading connected nodes
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |