|
||||||||||
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
public class VPFLayerDCWWarehouse
Implement a graphic factory that builds OMGraphics. This one handles DCW databases. 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, logger, pointSubList, textSubList |
Constructor Summary | |
---|---|
VPFLayerDCWWarehouse()
|
Method Summary | |
---|---|
void |
createArea(CoverageTable covtable,
AreaTable areatable,
java.util.List<java.lang.Object> facevec,
LatLonPoint ll1,
LatLonPoint ll2,
double dpplat,
double dpplon)
Method called by the VPF reader code to construct an area feature. |
void |
createEdge(CoverageTable covtable,
EdgeTable edgetable,
java.util.List<java.lang.Object> edgevec,
LatLonPoint ll1,
LatLonPoint ll2,
double dpplat,
double dpplon,
CoordFloatString coords)
Method called by the VPF reader code to construct an edge feature. |
void |
createNode(CoverageTable c,
NodeTable t,
java.util.List<java.lang.Object> nodeprim,
double latitude,
double longitude,
boolean isEntityNode)
Method called by the VPF reader code to construct a node feature. |
void |
createText(CoverageTable covtable,
TextTable texttable,
java.util.List<java.lang.Object> textvec,
double latitude,
double longitude,
java.lang.String text)
Method called by the VPF reader code to construct a text feature. |
protected java.lang.String |
getDebugNumbers(int[] arr)
|
java.util.List<java.lang.String> |
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 valuesprotected java.lang.String getDebugNumbers(int[] arr)
protected int[] getNumbersFromPropertyList(java.lang.String list)
protected boolean onList(int[] list, int num)
public java.util.List<java.lang.String> getFeatures()
public void createArea(CoverageTable covtable, AreaTable areatable, java.util.List<java.lang.Object> facevec, LatLonPoint ll1, LatLonPoint ll2, double dpplat, double dpplon)
VPFGraphicWarehouse
covtable
- the coverage table for this areaareatable
- the areatable being parsedfacevec
- the record read from the area tablell1
- upperleft of selection region (passed to warehouse)ll2
- lowerright of selection region (passed to warehouse)dpplat
- threshold for latitude thinning (passed to
warehouse)dpplon
- threshold for longitude thinngin (passed to
warehouse)public void createEdge(CoverageTable covtable, EdgeTable edgetable, java.util.List<java.lang.Object> edgevec, LatLonPoint ll1, LatLonPoint ll2, double dpplat, double dpplon, CoordFloatString coords)
VPFGraphicWarehouse
covtable
- the coverage table for this edgeedgetable
- the edgetable being parsededgevec
- the record read from the edge tablell1
- upperleft of selection region (passed to warehouse)ll2
- lowerright of selection region (passed to warehouse)dpplat
- threshold for latitude thinning (passed to
warehouse)dpplon
- threshold for longitude thinngin (passed to
warehouse)public void createText(CoverageTable covtable, TextTable texttable, java.util.List<java.lang.Object> textvec, double latitude, double 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<java.lang.Object> nodeprim, double latitude, double 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 |