|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bbn.openmap.omGraphics.geom.BasicGeometry | +--com.bbn.openmap.omGraphics.OMGraphic | +--com.bbn.openmap.omGraphics.OMGraphicList | +--com.bbn.openmap.dataAccess.shape.EsriGraphicList
EsriGraphicList ensures that only supported geometry types are added to its list. Each subclass of this EsriGraphicList list will hold polyline, polygon, or point geometry -- other types of geometry are not supported. As shapes are added to the list, EsriGraphicList will ensure that the type of geometry being added is the same type of geometry as specified by the subclass list type.
Nested Class Summary |
Nested classes inherited from class com.bbn.openmap.omGraphics.OMGraphicList |
OMGraphicList.OMDist |
Field Summary | |
protected float[] |
extents
|
Fields inherited from class com.bbn.openmap.omGraphics.OMGraphicList |
allowDuplicates, FIRST_ADDED_ON_TOP, graphics, LAST_ADDED_ON_TOP, NONE, processAllGeometries, traverseMode, vague |
Fields inherited from class com.bbn.openmap.omGraphics.OMGraphic |
declutterType, displayPaint, edgeMatchesFill, fillPaint, hasLabel, linePaint, matted, mattingPaint, renderType, selected, selectPaint, showEditablePalette, stroke, textureMask |
Fields inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
APP_OBJECT_KEY, appObject, ATT_MAP_KEY, lineType, needToRegenerate, shape, visible |
Fields inherited from interface com.bbn.openmap.dataAccess.shape.ShapeConstants |
DBF_CHARACTER, DBF_DATE, DBF_LOGICAL, DBF_MEMO, DBF_NUMERIC, DBF_TYPE_CHARACTER, DBF_TYPE_DATE, DBF_TYPE_LOGICAL, DBF_TYPE_MEMO, DBF_TYPE_NUMERIC, PARAM_DBF, PARAM_SHP, PARAM_SHX, SHAPE_DBF_DASHPATTERN, SHAPE_DBF_DASHPHASE, SHAPE_DBF_DESCRIPTION, SHAPE_DBF_FILLCOLOR, SHAPE_DBF_LINECOLOR, SHAPE_DBF_LINEWIDTH, SHAPE_DBF_SELECTCOLOR, SHAPE_FILE_HEADER_LENGTH, SHAPE_FILE_RECORD_HEADER_LENGTH, SHAPE_TYPE_ARC, SHAPE_TYPE_MULTIPOINT, SHAPE_TYPE_NULL, SHAPE_TYPE_POINT, SHAPE_TYPE_POLYGON, SHAPE_TYPE_POLYLINE |
Constructor Summary | |
EsriGraphicList()
Construct an EsriGraphicList. |
|
EsriGraphicList(int initialCapacity)
Construct an EsriGraphicList with an initial capacity. |
|
EsriGraphicList(int initialCapacity,
int capacityIncrement)
Deprecated. capacityIncrement doesn't do anything. |
Method Summary | |
void |
add(OMGraphic shape)
Over-ride the add( ) method to trap for inconsistent shape geometry. |
void |
addExtents(float[] graphicExtents)
|
void |
addOMGraphic(OMGraphic g)
Add an OMGraphic to the GraphicList. |
void |
createTable()
Create a generic DbfTableModel for the contents of this list, where the attributes hold rendering properties for the list contents. |
static EsriGraphicList |
getEsriGraphicList(java.net.URL shp,
java.net.URL shx,
DrawingAttributes drawingAttributes,
DbfTableModel dbf)
|
float[] |
getExtents()
The lat/lon extent of the EsriGraphicList contents, returned as miny, minx, maxy maxx in order of the array. |
DbfTableModel |
getTable()
Get the DbfTableModel object from the AppObject of this list. |
abstract int |
getType()
Get the list type in ESRI type number form |
void |
setExtents(float[] extents)
The lat/lon extent of the EsriGraphicList contents, assumed to contain miny, minx, maxy maxx in order of the array. |
void |
setTable(DbfTableModel dtm)
Set the DbfTableModel in the AppObject of this list that holds the attribute information about this list's objects. |
Methods inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, checkAttributeMap, checkAttributeMap, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, draw, fill, getAppObject, getAppObject, getAttribute, getAttributeMap, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, putAttribute, removeAttribute, replaceAppObjectWithAttributeMap, setAppObject, setAppObject, setAttributes, setLineType, setNeedToRegenerate |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.bbn.openmap.dataAccess.shape.EsriGraphic |
shallowCopy |
Methods inherited from interface com.bbn.openmap.omGraphics.OMGeometry |
clearAttributes, contains, draw, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate |
Field Detail |
protected float[] extents
Constructor Detail |
public EsriGraphicList()
public EsriGraphicList(int initialCapacity)
initialCapacity
- the initial capacity of the listpublic EsriGraphicList(int initialCapacity, int capacityIncrement)
initialCapacity
- the initial capacity of the listcapacityIncrement
- the capacityIncrement for resizingMethod Detail |
public void add(OMGraphic shape)
add
in class OMGraphicList
shape
- the non-null OMGraphic to addpublic void addOMGraphic(OMGraphic g)
addOMGraphic
in class OMGraphicList
g
- the non-null OMGraphic to add
java.lang.IllegalArgumentException
- if OMGraphic is nullpublic abstract int getType()
public void setExtents(float[] extents)
setExtents
in interface EsriGraphic
public float[] getExtents()
getExtents
in interface EsriGraphic
public void addExtents(float[] graphicExtents)
public void setTable(DbfTableModel dtm)
public DbfTableModel getTable()
public void createTable()
public static EsriGraphicList getEsriGraphicList(java.net.URL shp, java.net.URL shx, DrawingAttributes drawingAttributes, DbfTableModel dbf)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |