com.bbn.openmap.dataAccess.shape
Class EsriPolygon

java.lang.Object
  |
  +--com.bbn.openmap.omGraphics.geom.BasicGeometry
        |
        +--com.bbn.openmap.omGraphics.OMGraphic
              |
              +--com.bbn.openmap.omGraphics.OMPoly
                    |
                    +--com.bbn.openmap.dataAccess.shape.EsriPolygon
All Implemented Interfaces:
java.lang.Cloneable, EsriGraphic, OMGeometry, OMGraphicConstants, java.io.Serializable

public class EsriPolygon
extends OMPoly
implements java.lang.Cloneable, EsriGraphic

An extension to OMPoly for polygons that typecasts a specific Esri graphic type. Used to ensure that all OMGraphics added to a EsriGraphicList is of the same type.

Author:
Doug Van Auken
See Also:
Serialized Form

Field Summary
protected  float[] extents
           
 
Fields inherited from class com.bbn.openmap.omGraphics.OMPoly
coordMode, COORDMODE_ORIGIN, COORDMODE_PREVIOUS, doShapes, geometryClosed, isPolygon, lat, lon, nsegs, rawllpts, units, xpoints, xs, ypoints, ys
 
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.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
EsriPolygon(float[] points, int units, int lineType)
           
 
Method Summary
 void addExtents(float[] graphicExtents)
           
static EsriPolygon convert(OMPoly ompoly)
           
 float[] getExtents()
          The lat/lon extent of the EsriGraphic, returned as miny, minx, maxy maxx in order of the array.
 void setExtents(float[] extents)
          The lat/lon extent of the EsriGraphic, assumed to contain miny, minx, maxy maxx in order of the array.
 EsriGraphic shallowCopy()
          Shallow copy this graphic.
 EsriPolygon shallowCopyPolygon()
           
 
Methods inherited from class com.bbn.openmap.omGraphics.OMPoly
checkPoints, createShape, distance, generate, getCoordMode, getDoShapes, getLat, getLatLonArray, getLon, getNumSegs, getShape, getXs, getYs, isGeometryClosed, isPolygon, render, setCoordMode, setDoShapes, setFillPaint, setIsPolygon, setLat, setLocation, setLocation, setLocation, setLocation, setLocation, setLon, setNumSegs, setXs, setYs, shouldRenderFill
 
Methods inherited from class com.bbn.openmap.omGraphics.OMGraphic
clone, deselect, getDeclutterType, getDescription, getDescription, getDisplayColor, getDisplayPaint, getEdgeMatchesFill, getFillColor, getFillPaint, getHasLabel, getLineColor, getLinePaint, getMattingPaint, getRenderType, getSelectColor, getSelectPaint, getShowEditablePalette, getStroke, getTextureMask, hasLineTypeChoice, initLabelingDuringGenerate, isClear, isMatted, isSelected, normalizeDistanceForLineWidth, regenerate, renderLabel, select, setDeclutterType, setEdgeMatchesFill, setFillColor, setGraphicsColor, setGraphicsForEdge, setGraphicsForFill, setHasLabel, setLabelLocation, setLabelLocation, setLabelLocation, setLineColor, setLinePaint, setMatted, setMattingPaint, setRenderType, setSelectColor, setSelected, setSelectPaint, setShape, setShowEditablePalette, setStroke, setTextureMask, shouldRenderEdge
 
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, isRenderable, isVisible, putAttribute, removeAttribute, replaceAppObjectWithAttributeMap, setAppObject, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setVisible
 
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, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setVisible
 

Field Detail

extents

protected float[] extents
Constructor Detail

EsriPolygon

public EsriPolygon(float[] points,
                   int units,
                   int lineType)
Method Detail

setExtents

public void setExtents(float[] extents)
The lat/lon extent of the EsriGraphic, assumed to contain miny, minx, maxy maxx in order of the array.

Specified by:
setExtents in interface EsriGraphic

getExtents

public float[] getExtents()
The lat/lon extent of the EsriGraphic, returned as miny, minx, maxy maxx in order of the array.

Specified by:
getExtents in interface EsriGraphic

addExtents

public void addExtents(float[] graphicExtents)

convert

public static EsriPolygon convert(OMPoly ompoly)

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.

Specified by:
shallowCopy in interface EsriGraphic

shallowCopyPolygon

public EsriPolygon shallowCopyPolygon()


Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details