public abstract class EsriGraphicList extends OMGraphicList implements ShapeConstants, EsriGraphic
OMList.OMDist<T>
Modifier and Type | Field and Description |
---|---|
protected double[] |
extents |
static java.util.logging.Logger |
logger |
protected int |
type |
allowDuplicates, FIRST_ADDED_ON_TOP, graphics, LAST_ADDED_ON_TOP, NONE, processAllGeometries, traverseMode, vague
declutterType, displayPaint, edgeMatchesFill, fillPaint, hasLabel, linePaint, matted, mattingPaint, renderType, selected, selectPaint, showEditablePalette, stroke, textureMask
APP_OBJECT_KEY, appObject, ATT_MAP_KEY, lineType, needToRegenerate, shape, visible
DBF_ATTRIBUTE, DBF_AUTOINCREMENT, DBF_BINARY, DBF_CHARACTER, DBF_DATE, DBF_DOUBLE, DBF_FLOAT, DBF_LOGICAL, DBF_LONG, DBF_MEMO, DBF_NUMERIC, DBF_OLE, DBF_TIMESTAMP, DBF_TYPE_AUTOINCREMENT, DBF_TYPE_BINARY, DBF_TYPE_CHARACTER, DBF_TYPE_DATE, DBF_TYPE_DOUBLE, DBF_TYPE_FLOAT, DBF_TYPE_LOGICAL, DBF_TYPE_LONG, DBF_TYPE_MEMO, DBF_TYPE_NUMERIC, DBF_TYPE_OLE, DBF_TYPE_TIMESTAMP, PARAM_DBF, PARAM_SHP, PARAM_SHX, SHAPE_BOUNDS_ATTRIBUTE, SHAPE_DBF_DASHPATTERN, SHAPE_DBF_DASHPHASE, SHAPE_DBF_DESCRIPTION, SHAPE_DBF_FILLCOLOR, SHAPE_DBF_INFO_ATTRIBUTE, SHAPE_DBF_LINECOLOR, SHAPE_DBF_LINEWIDTH, SHAPE_DBF_SELECTCOLOR, SHAPE_FILE_HEADER_LENGTH, SHAPE_FILE_RECORD_HEADER_LENGTH, SHAPE_INDEX_ATTRIBUTE, SHAPE_MAX_MEASURE_ATTRIBUTE, SHAPE_MAX_Z_ATTRIBUTE, SHAPE_MEASURE_ATTRIBUTE, SHAPE_MIN_MEASURE_ATTRIBUTE, SHAPE_MIN_Z_ATTRIBUTE, SHAPE_TYPE_ARC, SHAPE_TYPE_MULTIPATCH, SHAPE_TYPE_MULTIPOINT, SHAPE_TYPE_MULTIPOINTM, SHAPE_TYPE_MULTIPOINTZ, SHAPE_TYPE_NULL, SHAPE_TYPE_POINT, SHAPE_TYPE_POINTM, SHAPE_TYPE_POINTZ, SHAPE_TYPE_POLYGON, SHAPE_TYPE_POLYGONM, SHAPE_TYPE_POLYGONZ, SHAPE_TYPE_POLYLINE, SHAPE_TYPE_POLYLINEM, SHAPE_TYPE_POLYLINEZ, SHAPE_Z_ATTRIBUTE
ADD_GRAPHIC_MASK, BASIC_STROKE, CHANGE_APPEARANCE, 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_ELLIPSE, 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, OMGRAPHIC_ELT, OMGRAPHIC_TYPE_ATTR, RADIANS, RAISE_GRAPHIC_MASK, RAISE_TO_TOP_GRAPHIC_MASK, REMOVABLE, RENDERTYPE_LATLON, RENDERTYPE_OFFSET, RENDERTYPE_UNKNOWN, RENDERTYPE_XY, SELECT_GRAPHIC_MASK, SORT_GRAPHICS_MASK, TOOLTIP, UPDATE_GRAPHIC_MASK, UPDATED
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(OMGraphic shape)
Over-ride the add( ) method to trap for inconsistent shape geometry.
|
void |
addExtents(double[] graphicExtents) |
boolean |
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,
DrawingAttributes drawingAttributes,
DbfTableModel dbf,
GeoCoordTransformation coordTranslator)
Reads the contents of the SHP files.
|
static EsriGraphicList |
getEsriGraphicList(java.net.URL shp,
DrawingAttributes drawingAttributes,
GeoCoordTransformation coordTranslator)
Reads the contents of the SHP files, including the DBF file, based on the
location of the shape file.
|
static EsriGraphicList |
getEsriGraphicList(java.net.URL shp,
java.net.URL shx,
DrawingAttributes drawingAttributes,
DbfTableModel dbf)
Deprecated.
use getGraphicList(URL, DrawingAttributes, DbfTableModel)
|
double[] |
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.
|
int |
getType()
Get the list type in ESRI type number form
|
static void |
main(java.lang.String[] args) |
void |
setExtents(double[] 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.
|
void |
setType(int type)
Set the type for the EsriGraphic.
|
add, addAll, addAll, clone, create, createDist, get, getOMGraphicAt, getTargets, iteratorCopy, listIteratorCopy, listIteratorCopy, objectToOMGraphic, readGraphics, readGraphics, remove, set, setFillPaint, setGridGenerator, setLinePaint, setMatted, setMattingPaint, setOMGraphicAt, setSelectPaint, setStroke, setTargets, setTextureMask, sort, writeGraphics, writeGraphics
checkForDuplicate, clear, contains, contains, containsAll, deselect, distance, doAction, findAll, findAll, findAllTest, findClosest, findClosest, findClosest, findClosestTest, findIndexOfClosest, findIndexOfClosest, generate, generate, getAllowDuplicates, getContains, getCopy, getDescription, getDescription, getProcessAllGeometries, getTraverseMode, getWithObject, indexOf, isEmpty, isVague, isVisible, iterator, lastIndexOf, listIterator, listIterator, moveIndexedOneToBack, moveIndexedOneToBottom, moveIndexedOneToFront, moveIndexedOneToTop, moveIndexedToBottom, moveIndexedToFirst, moveIndexedToLast, moveIndexedToTop, project, project, remove, removeAll, render, renderAllAsSelected, restore, retainAll, select, selectClosest, selectClosest, selectClosestTest, setAllowDuplicates, setProcessAllGeometries, setTraverseMode, setVague, setVisible, shouldProcess, size, subList, toArray, toArray
getDeclutterType, getDisplayColor, getDisplayPaint, getEdgeMatchesFill, getFillColor, getFillPaint, getHasLabel, getLineColor, getLinePaint, getMattingPaint, getRenderType, getSelectColor, getSelectPaint, getShowEditablePalette, getStroke, getTextureMask, hasLineTypeChoice, initLabelingDuringGenerate, isClear, isMatted, isSelected, normalizeDistanceForLineWidth, readStroke, regenerate, renderLabel, setDeclutterType, setEdgeMatchesFill, setFillColor, setGraphicsColor, setGraphicsForEdge, setGraphicsForFill, setHasLabel, setLabelLocation, setLabelLocation, setLabelLocation, setLabelLocation, setLineColor, setRenderType, setSelectColor, setSelected, setShape, setShowEditablePalette, shouldRenderEdge, shouldRenderFill, writeStroke
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, checkAttributeMap, checkAttributeMap, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, distanceToEdge, draw, draw, fill, fill, getAppObject, getAppObject, getAttribute, getAttributeMap, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, putAttribute, removeAttribute, replaceAppObjectWithAttributeMap, setAppObject, setAppObject, setAttributes, setLineType, setNeedToRegenerate
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAttribute, putAttribute, shallowCopy
getDeclutterType, getDisplayColor, getDisplayPaint, getFillColor, getFillPaint, getLineColor, getLinePaint, getMattingPaint, getRenderType, getSelectColor, getSelectPaint, getShowEditablePalette, getStroke, getTextureMask, hasLineTypeChoice, isMatted, isSelected, normalizeDistanceForLineWidth, regenerate, renderLabel, setDeclutterType, setGraphicsColor, setGraphicsForEdge, setGraphicsForFill, setLabelLocation, setLabelLocation, setLabelLocation, setRenderType, setSelected, setShowEditablePalette, shouldRenderEdge, shouldRenderFill
clearAttributes, contains, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape
public static java.util.logging.Logger logger
protected double[] extents
protected int type
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 resizingpublic boolean add(OMGraphic shape)
add
in interface java.util.Collection<OMGraphic>
add
in interface java.util.List<OMGraphic>
add
in class OMGraphicList
shape
- the non-null OMGraphic to addpublic boolean addOMGraphic(OMGraphic g)
g
- the non-null OMGraphic to addjava.lang.IllegalArgumentException
- if OMGraphic is nullpublic void setType(int type)
EsriGraphic
setType
in interface EsriGraphic
public int getType()
getType
in interface EsriGraphic
public void setExtents(double[] extents)
setExtents
in interface EsriGraphic
public double[] getExtents()
getExtents
in interface EsriGraphic
public void addExtents(double[] 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)
shp
- The url of the SHP fileshx
- The url of the SHX filedrawingAttributes
- a DrawingAttributes object containing the
rendering parameters you might want on the OMGraphics. The
OMGraphic default (black edge, clear fill) will be used if this is
null.dbf
- a DbfTableModel, if you want each row of objects from the
table (an array), inserted into their associated OMGraphic's
appObject. The dbf will be added to the list appObject, so you can
ask it questions later. If null, no problem. If the number of
records doesn't match the OMGraphic list length, nothing will be
done.public static EsriGraphicList getEsriGraphicList(java.net.URL shp, DrawingAttributes drawingAttributes, DbfTableModel dbf, GeoCoordTransformation coordTranslator)
shp
- The url of the SHP filedrawingAttributes
- a DrawingAttributes object containing the
rendering parameters you might want on the OMGraphics. The
OMGraphic default (black edge, clear fill) will be used if this is
null.dbf
- a DbfTableModel. The dbf will be added to the list appObject,
so you can ask it questions later. If null, no problem. If the
number of records doesn't match the OMGraphic list length, nothing
will be done.coordTranslator
- a GeoCoordTransformation to use to convert
coordinates to decimal degree lat/lon data.public static EsriGraphicList getEsriGraphicList(java.net.URL shp, DrawingAttributes drawingAttributes, GeoCoordTransformation coordTranslator)
shp
- The url of the SHP filedrawingAttributes
- a DrawingAttributes object containing the
rendering parameters you might want on the OMGraphics. The
OMGraphic default (black edge, clear fill) will be used if this is
null.coordTranslator
- used to transform coordinates to lat/lon decimal
degrees for OpenMap.public static void main(java.lang.String[] args)
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details