|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.layer.vpf.LayerGraphicWarehouseSupport
com.bbn.openmap.layer.vpf.VPFLayerGraphicWarehouse
Implement a graphic factory that builds OMGraphics.
OMGraphic
Field Summary |
Fields inherited from class com.bbn.openmap.layer.vpf.LayerGraphicWarehouseSupport |
antarcticaThreshold, areaSubList, drawingAttributes, edgeSubList, graphics, pointSubList, textSubList |
Constructor Summary | |
VPFLayerGraphicWarehouse()
|
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 c,
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. |
protected boolean |
createFeature(java.util.List prim,
int[] skipArray)
Determine if this primitive should be drawn or skipped. |
void |
createNode(CoverageTable c,
NodeTable nt,
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 c,
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()
Get a List of Strings listing all the feature types wanted. |
protected int[] |
getSkipArray(java.lang.String featureString,
DcwRecordFile table,
java.lang.String colAppend)
Build an array that lists the columns we require the record to have. |
static void |
main(java.lang.String[] argv)
|
void |
resetForCAT()
Lets the warehouse know that a different CoverageAttributeTable will be using it. |
void |
setProperties(java.lang.String prefix,
java.util.Properties props)
Set properties of the warehouse. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VPFLayerGraphicWarehouse()
Method Detail |
public void setProperties(java.lang.String prefix, java.util.Properties props)
setProperties
in class LayerGraphicWarehouseSupport
prefix
- the prefix to use for looking up properties.props
- the properties file to look at.public java.util.List getFeatures()
protected int[] getSkipArray(java.lang.String featureString, DcwRecordFile table, java.lang.String colAppend)
featureString
- the (space-separated) list of required
columnstable
- the table we use to find the column numberscolAppend
- the (possibly null) string we append to the
entries in featureString to build the real column namepublic void resetForCAT()
resetForCAT
in interface VPFWarehouse
resetForCAT
in class LayerGraphicWarehouseSupport
protected boolean createFeature(java.util.List prim, int[] skipArray)
prim
- the list for the primitive feature object.skipArray
- a list of columns.
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 c, EdgeTable edgetable, java.util.List edgevec, LatLonPoint ll1, LatLonPoint ll2, float dpplat, float dpplon, CoordFloatString coords)
VPFGraphicWarehouse
c
- 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 c, TextTable texttable, java.util.List textvec, float latitude, float longitude, java.lang.String text)
VPFGraphicWarehouse
c
- 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 nt, java.util.List nodeprim, float latitude, float longitude, boolean isEntityNode)
VPFGraphicWarehouse
c
- the coverage table for this nodent
- 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 nodespublic static void main(java.lang.String[] argv)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |