|
||||||||||
| 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.OMGraphicAdapter
com.bbn.openmap.omGraphics.OMPoint
com.bbn.openmap.graphicLoader.GLPoint
com.bbn.openmap.graphicLoader.PathGLPoint
public class PathGLPoint
The PathGLPoint is a GLPoint that follows a certain path, as opposed to just wandering around randomly.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.bbn.openmap.omGraphics.OMPoint |
|---|
OMPoint.Image |
| Field Summary |
|---|
| Fields inherited from class com.bbn.openmap.graphicLoader.GLPoint |
|---|
CONNECTED_COLOR, DISCONNECTED_COLOR, height, MoveCmd, name, palette, stationary |
| Fields inherited from class com.bbn.openmap.omGraphics.OMPoint |
|---|
DEFAULT_ISOVAL, DEFAULT_RADIUS, lat1, lon1, oval, radius, x, y |
| 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 | |
|---|---|
PathGLPoint(OMPoly path,
int radius,
boolean isOval)
|
|
| Method Summary | |
|---|---|
boolean |
generate(Projection p)
Prepare the point for rendering. |
OMPoly |
getPoly()
|
double[] |
getSegmentCoordinates(int currentPathIndex)
|
void |
move(float factor)
|
void |
moveAlong()
|
void |
render(java.awt.Graphics g)
Paint the graphic. |
void |
setPoly(OMPoly p)
|
| Methods inherited from class com.bbn.openmap.graphicLoader.GLPoint |
|---|
actionPerformed, connected, focusGained, focusLost, getGUI, getHeight, getName, getStationary, hidePalette, move, moveRandomly, resetConnected, setHeight, setName, setStationary, showPalette |
| Methods inherited from class com.bbn.openmap.omGraphics.OMPoint |
|---|
getLat, getLon, getRadius, getX, getY, hasLineTypeChoice, isOval, restore, set, set, set, setLat, setLon, setOval, setRadius, setX, setY |
| 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, getDescription, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.bbn.openmap.omGraphics.OMGeometry |
|---|
clearAttributes, contains, distance, distanceToEdge, draw, draw, fill, fill, getAppObject, getAttribute, getAttributes, getDescription, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible |
| Constructor Detail |
|---|
public PathGLPoint(OMPoly path,
int radius,
boolean isOval)
| Method Detail |
|---|
public void move(float factor)
move in class GLPointpublic double[] getSegmentCoordinates(int currentPathIndex)
public void moveAlong()
public boolean generate(Projection p)
OMPoint
generate in interface OMGeometrygenerate in class OMPointp - Projection
OMGraphicAdapter.regenerate(com.bbn.openmap.proj.Projection)public void render(java.awt.Graphics g)
OMGraphicAdapterpaint() function of java.awt.Components.
Note that if the graphic has not been generated, it will not be rendered.
This method used to be abstract, but with the conversion of OMGraphics to internally represent themselves as java.awt.Shape objects, it's a more generic method. If the OMGraphic hasn't been updated to use Shape objects, it should have its own render method.
render in interface OMGeometryrender in class OMGraphicAdapterg - Graphics2D context to render into.public void setPoly(OMPoly p)
public OMPoly getPoly()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||