|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bbn.openmap.omGraphics.geom.BasicGeometry
com.bbn.openmap.omGraphics.geom.PolygonGeometry
com.bbn.openmap.omGraphics.geom.PolygonGeometry.XY
public static class PolygonGeometry.XY
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.bbn.openmap.omGraphics.geom.PolygonGeometry |
|---|
PolygonGeometry.LL, PolygonGeometry.Offset, PolygonGeometry.XY |
| Field Summary | |
|---|---|
protected float[] |
xs
The array of x pixel coordinates. |
protected float[] |
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 |
|---|
attributes, lineType, needToRegenerate, shape, visible |
| Constructor Summary | |
|---|---|
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. |
| Method Summary | |
|---|---|
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. |
| 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, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, deselect, distanceToEdge, 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 |
| 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, 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 |
| Field Detail |
|---|
protected float[] xs
protected float[] ys
| Constructor Detail |
|---|
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 coordinates| Method Detail |
|---|
public 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)
BasicGeometryrender()! 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
BasicGeometry.regenerate(com.bbn.openmap.proj.Projection)protected java.awt.geom.GeneralPath createShape()
PolygonGeometry
createShape in class PolygonGeometrypublic int getRenderType()
BasicGeometry
getRenderType in interface OMGeometrygetRenderType in class BasicGeometry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||