public static class PolygonGeometry.XY extends PolygonGeometry
PolygonGeometry.LL, PolygonGeometry.Offset, PolygonGeometry.XY
Modifier and Type | Field and Description |
---|---|
protected float[] |
xs
The array of x pixel coordinates.
|
protected float[] |
ys
The array of y pixel coordinates.
|
doShapes, isPolygon, xpoints, ypoints
APP_OBJECT_KEY, appObject, ATT_MAP_KEY, lineType, needToRegenerate, shape, visible
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
Modifier | Constructor and Description |
---|---|
protected |
PolygonGeometry.XY()
To satify the Offset constructor complaint.
|
|
PolygonGeometry.XY(float[] xypoints)
Create an OMPoly from a list of xy pairs.
|
|
PolygonGeometry.XY(float[] xPoints,
float[] yPoints)
Create an x/y OMPoly.
|
Modifier and Type | Method and Description |
---|---|
protected java.awt.geom.GeneralPath |
createShape()
Since OMPoly has the option to not create a Shape, this method
is here to create it if it is asked for.
|
boolean |
generate(Projection proj)
Prepare the geometry for rendering.
|
int |
getRenderType()
Return the render type.
|
float[] |
getXs()
Get the array of x points.
|
float[] |
getYs()
Get the array of y points.
|
void |
setLocation(float[] xypoints)
Set an OMPoly from a list of xy pixel pairs.
|
void |
setLocation(float[] xPoints,
float[] yPoints)
Set an OMPoly from a x/y coordinates.
|
void |
setXs(float[] x)
Set the array of x points.
|
void |
setYs(float[] y)
Set the array of y points.
|
distance, getDoShapes, getIsPolygon, getShape, setDoShapes, setIsPolygon
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, checkAttributeMap, checkAttributeMap, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, deselect, distanceToEdge, distanceToEdge, draw, draw, fill, fill, getAppObject, getAppObject, getAttribute, getAttributeMap, getAttributes, getDescription, getLineType, getNeedToRegenerate, isRenderable, isRenderable, isVisible, putAttribute, regenerate, removeAttribute, render, replaceAppObjectWithAttributeMap, restore, select, setAppObject, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearAttributes, contains, deselect, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getDescription, getLineType, getNeedToRegenerate, isRenderable, isRenderable, isVisible, putAttribute, regenerate, removeAttribute, render, restore, select, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible
protected float[] xs
protected float[] ys
protected PolygonGeometry.XY()
public PolygonGeometry.XY(float[] xypoints)
xypoints
- array of x/y points, arranged x, y, x, y,
etc.public PolygonGeometry.XY(float[] xPoints, float[] yPoints)
xPoints
- float[] of x coordinatesyPoints
- float[] of y coordinatespublic void setLocation(float[] xypoints)
xypoints
- array of x/y points, arranged x, y, x, y,
etc.public void setLocation(float[] xPoints, float[] yPoints)
xPoints
- float[] of x coordinatesyPoints
- float[] of y coordinatespublic void setXs(float[] x)
public float[] getXs()
public void setYs(float[] y)
public float[] getYs()
public boolean generate(Projection proj)
BasicGeometry
render()
! If a vector graphic has lat-lon components, then
we project these vertices into x-y space. For raster graphics we prepare
in a different fashion.
If the generate is unsuccessful, it's usually because of some oversight,
(for instance if proj
is null), and if debugging is enabled,
a message may be output to the controlling terminal.
generate
in interface OMGeometry
generate
in class BasicGeometry
proj
- ProjectionBasicGeometry.regenerate(com.bbn.openmap.proj.Projection)
protected java.awt.geom.GeneralPath createShape()
PolygonGeometry
createShape
in class PolygonGeometry
public int getRenderType()
BasicGeometry
getRenderType
in interface OMGeometry
getRenderType
in class BasicGeometry
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details