|
||||||||||
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.OMGraphic
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.OMGraphic |
---|
declutterType, displayPaint, edgeMatchesFill, fillPaint, hasLabel, linePaint, matted, mattingPaint, renderType, selected, selectPaint, showEditablePalette, stroke, textureMask |
Fields inherited from class com.bbn.openmap.omGraphics.geom.BasicGeometry |
---|
APP_OBJECT_KEY, appObject, ATT_MAP_KEY, lineType, needToRegenerate, shape, visible |
Constructor Summary | |
---|---|
PathGLPoint(OMPoly path,
int radius,
boolean isOval)
|
Method Summary | |
---|---|
boolean |
generate(Projection p)
Prepare the rectangle for rendering. |
OMPoly |
getPoly()
|
float[] |
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, set, set, set, setLat, setLon, setOval, setRadius, setX, setY |
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, distanceToEdge, draw, fill, getAppObject, getAppObject, getAttribute, getAttributeMap, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isVisible, putAttribute, removeAttribute, replaceAppObjectWithAttributeMap, setAppObject, setAppObject, setAttributes, setLineType, setNeedToRegenerate, 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, draw, fill, getAppObject, getAttribute, getAttributes, getLineType, getNeedToRegenerate, getShape, isRenderable, isVisible, putAttribute, removeAttribute, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setVisible |
Constructor Detail |
---|
public PathGLPoint(OMPoly path, int radius, boolean isOval)
Method Detail |
---|
public void move(float factor)
move
in class GLPoint
public float[] getSegmentCoordinates(int currentPathIndex)
public void moveAlong()
public boolean generate(Projection p)
OMPoint
generate
in interface OMGeometry
generate
in class OMPoint
p
- Projection
OMGraphic.regenerate(com.bbn.openmap.proj.Projection)
public void render(java.awt.Graphics g)
OMGraphic
paint()
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 class OMGraphic
g
- 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 |