|
|||||||||||
| 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.geom.PolygonGeometry
|
+--com.bbn.openmap.omGraphics.geom.PolygonGeometry.XY
| Nested Class Summary |
| Nested classes inherited from class com.bbn.openmap.omGraphics.geom.PolygonGeometry |
PolygonGeometry.LL, PolygonGeometry.Offset, PolygonGeometry.XY |
| Field Summary | |
protected int[] |
xs
The array of x pixel coordinates. |
protected int[] |
ys
The array of y pixel coordinates. |
| Fields inherited from class com.bbn.openmap.omGraphics.geom.PolygonGeometry |
doShapes, isPolygon, xpoints, ypoints |
| Fields inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
APP_OBJECT_KEY, appObject, ATT_MAP_KEY, lineType, needToRegenerate, shape, visible |
| Constructor Summary | |
protected |
PolygonGeometry.XY()
To satify the Offset constructor complaint. |
|
PolygonGeometry.XY(int[] xypoints)
Create an OMPoly from a list of xy pairs. |
|
PolygonGeometry.XY(int[] xPoints,
int[] yPoints)
Create an x/y OMPoly. |
| Method Summary | |
protected void |
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. |
int[] |
getXs()
Get the array of x points. |
int[] |
getYs()
Get the array of y points. |
void |
setLocation(int[] xypoints)
Set an OMPoly from a list of xy pixel pairs. |
void |
setLocation(int[] xPoints,
int[] yPoints)
Set an OMPoly from a x/y coordinates. |
void |
setXs(int[] x)
Set the array of x points. |
void |
setYs(int[] y)
Set the array of y points. |
| Methods inherited from class com.bbn.openmap.omGraphics.geom.PolygonGeometry |
distance, getDoShapes, getIsPolygon, getShape, setDoShapes, setIsPolygon |
| 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, deselect, distanceToEdge, draw, fill, getAppObject, getAppObject, getAttribute, getAttributeMap, getAttributes, getLineType, getNeedToRegenerate, isRenderable, isVisible, putAttribute, regenerate, removeAttribute, replaceAppObjectWithAttributeMap, select, setAppObject, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.bbn.openmap.omGraphics.OMGeometry |
clearAttributes, contains, deselect, draw, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, isRenderable, isVisible, putAttribute, regenerate, removeAttribute, select, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible |
| Field Detail |
protected int[] xs
protected int[] ys
| Constructor Detail |
protected PolygonGeometry.XY()
public PolygonGeometry.XY(int[] xypoints)
xypoints - array of x/y points, arranged x, y, x, y,
etc.
public PolygonGeometry.XY(int[] xPoints,
int[] yPoints)
xPoints - int[] of x coordinatesyPoints - int[] of y coordinates| Method Detail |
public void setLocation(int[] xypoints)
xypoints - array of x/y points, arranged x, y, x, y,
etc.
public void setLocation(int[] xPoints,
int[] yPoints)
xPoints - int[] of x coordinatesyPoints - int[] of y coordinatespublic void setXs(int[] x)
public int[] getXs()
public void setYs(int[] y)
public int[] getYs()
public boolean generate(Projection proj)
OMGeometryrender()! 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 OMGeometrygenerate in class BasicGeometryproj - Projection
OMGeometry.regenerate(com.bbn.openmap.proj.Projection)protected void createShape()
PolygonGeometry
createShape in class PolygonGeometrypublic int getRenderType()
OMGeometry
getRenderType in interface OMGeometrygetRenderType in class BasicGeometry
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||