|
||||||||||
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.OMGraphicAdapter com.bbn.openmap.omGraphics.OMList<OMGraphic> com.bbn.openmap.omGraphics.OMGraphicList com.bbn.openmap.dataAccess.shape.EsriGraphicList
public abstract class 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/interfaces inherited from class com.bbn.openmap.omGraphics.OMList |
---|
OMList.OMDist<T> |
Field Summary | |
---|---|
protected double[] |
extents
|
static java.util.logging.Logger |
logger
|
protected int |
type
|
Fields inherited from class com.bbn.openmap.omGraphics.OMList |
---|
allowDuplicates, FIRST_ADDED_ON_TOP, graphics, LAST_ADDED_ON_TOP, NONE, processAllGeometries, traverseMode, vague |
Fields inherited from class com.bbn.openmap.omGraphics.OMGraphicAdapter |
---|
declutterType, displayPaint, edgeMatchesFill, fillPaint, hasLabel, linePaint, matted, mattingPaint, renderType, selected, selectPaint, showEditablePalette, stroke, textureMask |
Fields inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
---|
attributes, lineType, needToRegenerate, shape, visible |
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 | |
---|---|
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. |
java.util.List<EsriGraphic> |
getGraphicsWithValueInColumn(java.lang.Object value,
java.lang.String columnName)
Find EsriGraphics with a certain attribute |
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. |
Methods inherited from class com.bbn.openmap.omGraphics.OMGraphicList |
---|
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 |
Methods inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
---|
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape |
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 |
---|
getAttribute, putAttribute, shallowCopy |
Methods inherited from interface java.util.List |
---|
equals, hashCode |
Methods inherited from interface com.bbn.openmap.omGraphics.OMGraphic |
---|
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 |
Methods inherited from interface com.bbn.openmap.omGraphics.OMGeometry |
---|
clearAttributes, contains, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape |
Field Detail |
---|
public static java.util.logging.Logger logger
protected double[] extents
protected int type
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 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 add
java.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 java.util.List<EsriGraphic> getGraphicsWithValueInColumn(java.lang.Object value, java.lang.String columnName) throws FormatException
value
- the value of the desired attribute.columnName
- the columnName in the dbf
FormatException
- thrown if columnName isn't found.public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |