com.bbn.openmap.dataAccess.shape
Class EsriPolygonList
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
|
+--com.bbn.openmap.dataAccess.shape.EsriPolygonList
- All Implemented Interfaces:
- java.lang.Cloneable, EsriGraphic, GraphicList, OMGeometry, OMGraphicConstants, java.io.Serializable, ShapeConstants
- public class EsriPolygonList
- extends EsriGraphicList
An EsriGraphicList ensures that only EsriPolygons are added to its
list.
- Author:
- Doug Van Auken, Don Dietrick
- See Also:
- Serialized Form
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 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 |
Fields inherited from interface com.bbn.openmap.omGraphics.OMGraphicConstants |
ADD_GRAPHIC_MASK, BASIC_STROKE, clear, DECIMAL_DEGREES, DECLUTTERTYPE_LINE, DECLUTTERTYPE_MOVE, DECLUTTERTYPE_NONE, DECLUTTERTYPE_SPACE, DEFAULT_ROTATIONANGLE, DELETE_GRAPHIC_MASK, DESELECT_GRAPHIC_MASK, DESELECTALL_GRAPHIC_MASK, GRAPHICTYPE_ARC, GRAPHICTYPE_BITMAP, GRAPHICTYPE_CIRCLE, GRAPHICTYPE_GRAPHIC, GRAPHICTYPE_GRID, GRAPHICTYPE_LINE, GRAPHICTYPE_POINT, GRAPHICTYPE_POLY, GRAPHICTYPE_RASTER, GRAPHICTYPE_RECTANGLE, GRAPHICTYPE_TEXT, INFOLINE, LABEL, LINETYPE_GREATCIRCLE, LINETYPE_RHUMB, LINETYPE_STRAIGHT, LINETYPE_UNKNOWN, LOWER_GRAPHIC_MASK, LOWER_TO_BOTTOM_GRAPHIC_MASK, RADIANS, RAISE_GRAPHIC_MASK, RAISE_TO_TOP_GRAPHIC_MASK, RENDERTYPE_LATLON, RENDERTYPE_OFFSET, RENDERTYPE_UNKNOWN, RENDERTYPE_XY, SELECT_GRAPHIC_MASK, SORT_GRAPHICS_MASK, TOOLTIP, UPDATE_GRAPHIC_MASK |
Constructor Summary |
EsriPolygonList()
Construct an EsriPolygonList. |
EsriPolygonList(int initialCapacity)
Construct an EsriPolygonList with an initial capacity. |
EsriPolygonList(int initialCapacity,
int capacityIncrement)
Deprecated. capacityIncrement doesn't do anything. |
Methods inherited from class com.bbn.openmap.omGraphics.OMGraphicList |
_add, _doAction, _findClosest, _findClosest, _getAt, _getContains, _getWithAppObject, _indexOf, _insert, _remove, _remove, _selectClosest, _setAt, checkForDuplicate, clear, clone, contains, deselect, deselectAll, distance, doAction, findClosest, findClosest, findClosestTest, findIndexOfClosest, findIndexOfClosest, generate, generate, getAllowDuplicates, getDescription, getDescription, getOMGraphicAt, getOMGraphicThatContains, getOMGraphicWithAppObject, getProcessAllGeometries, getTargets, getTraverseMode, indexOf, insertOMGraphicAt, isEmpty, isVague, isVisible, iterator, moveIndexedOneToBack, moveIndexedOneToBottom, moveIndexedOneToFront, moveIndexedOneToTop, moveIndexedToBottom, moveIndexedToFirst, moveIndexedToLast, moveIndexedToTop, objectToOMGraphic, project, project, readGraphics, readGraphics, remove, removeOMGraphicAt, render, renderAllAsSelected, select, selectAll, selectClosest, selectClosest, selectClosestTest, setAllowDuplicates, setFillPaint, setGridGenerator, setLinePaint, setMatted, setMattingPaint, setOMGraphicAt, setProcessAllGeometries, setSelectPaint, setStroke, setTargets, setTextureMask, setTraverseMode, setVague, setVisible, shouldProcess, size, sort, writeGraphics, writeGraphics |
Methods inherited from class com.bbn.openmap.omGraphics.OMGraphic |
getDeclutterType, getDisplayColor, getDisplayPaint, getEdgeMatchesFill, getFillColor, getFillPaint, getHasLabel, getLineColor, getLinePaint, getMattingPaint, getRenderType, getSelectColor, getSelectPaint, getShowEditablePalette, getStroke, getTextureMask, hasLineTypeChoice, initLabelingDuringGenerate, isClear, isMatted, isSelected, normalizeDistanceForLineWidth, regenerate, renderLabel, setDeclutterType, setEdgeMatchesFill, setFillColor, setGraphicsColor, setGraphicsForEdge, setGraphicsForFill, setHasLabel, setLabelLocation, setLabelLocation, setLabelLocation, setLineColor, setRenderType, setSelectColor, setSelected, setShape, setShowEditablePalette, shouldRenderEdge, shouldRenderFill |
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.omGraphics.OMGeometry |
clearAttributes, contains, draw, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate |
EsriPolygonList
public EsriPolygonList()
- Construct an EsriPolygonList.
EsriPolygonList
public EsriPolygonList(int initialCapacity)
- Construct an EsriPolygonList with an initial capacity.
- Parameters:
initialCapacity
- the initial capacity of the list
EsriPolygonList
public EsriPolygonList(int initialCapacity,
int capacityIncrement)
- Deprecated. capacityIncrement doesn't do anything.
- Construct an EsriPolygonList with an initial capacity and a
standard increment value.
- Parameters:
initialCapacity
- the initial capacity of the listcapacityIncrement
- the capacityIncrement for resizing
add
public void add(OMGraphic shape)
- Over-ride the add( ) method to trap for inconsistent shape
geometry. If you are adding a OMGraphic that is not a list,
make sure this list is a sub-list containing multiple geometry
parts. Only add another list to a top level EsriGraphicList.
- Overrides:
add
in class EsriGraphicList
- Parameters:
shape
- the non-null OMGraphic to add
getType
public int getType()
- Get the list type in ESRI type number form - 5.
- Specified by:
getType
in class EsriGraphicList
convert
public static OMPoly convert(OMRect omRect)
convert
public static OMPoly convert(OMCircle omCircle,
Projection proj)
convert
public static OMGraphicList convert(OMRangeRings omRR,
Projection proj)
shallowCopy
public EsriGraphic shallowCopy()
- Description copied from interface:
EsriGraphic
- Shallow copy this graphic. The contract is that the cloned
object should be capable of being placed on a different layer.
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details