|
||||||||||
| 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
public class 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, logger, pointSubList, textSubList |
| Constructor Summary | |
|---|---|
VPFLayerGraphicWarehouse()
|
|
| 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 c,
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. |
protected boolean |
createFeature(java.util.List<java.lang.Object> prim,
int[] skipArray)
Determine if this primitive should be drawn or skipped. |
void |
createNode(CoverageTable c,
NodeTable nt,
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 c,
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. |
java.util.List<java.lang.String> |
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 LayerGraphicWarehouseSupportprefix - the prefix to use for looking up properties.props - the properties file to look at.public java.util.List<java.lang.String> 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 VPFWarehouseresetForCAT in class LayerGraphicWarehouseSupport
protected boolean createFeature(java.util.List<java.lang.Object> 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<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 c,
EdgeTable edgetable,
java.util.List<java.lang.Object> edgevec,
LatLonPoint ll1,
LatLonPoint ll2,
double dpplat,
double dpplon,
CoordFloatString coords)
VPFGraphicWarehouse
c - 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 c,
TextTable texttable,
java.util.List<java.lang.Object> textvec,
double latitude,
double 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 string
public void createNode(CoverageTable c,
NodeTable nt,
java.util.List<java.lang.Object> nodeprim,
double latitude,
double 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 | |||||||||