|
||||||||||
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.omGraphics.GrabPoint
com.bbn.openmap.omGraphics.OffsetGrabPoint
public class OffsetGrabPoint
An OffsetGrabPoint is one that manages other grab points. When it is moved, the other GrabPoints on its internal list are moved the same amount in pixel space.
Nested Class Summary | |
---|---|
class |
OffsetGrabPoint.Offset
A wrapper class of the internal GrabPoints. |
Nested classes/interfaces inherited from class com.bbn.openmap.omGraphics.OMPoint |
---|
OMPoint.Image |
Field Summary | |
---|---|
protected java.util.Hashtable<GrabPoint,OffsetGrabPoint.Offset> |
offsetPoints
The list of GrabPoints to move when this point moves. |
protected boolean |
overflowLock
Flag used as a lock to prevent StackOverflowErrors, in case this OffetGrabPoint is unwittingly a child of itself. |
Fields inherited from class com.bbn.openmap.omGraphics.GrabPoint |
---|
DEFAULT_RADIUS |
Fields inherited from class com.bbn.openmap.omGraphics.OMPoint |
---|
DEFAULT_ISOVAL, 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 | |
---|---|
OffsetGrabPoint(int x,
int y)
Create the OffsetGrabPoint at a certain window location. |
|
OffsetGrabPoint(int x,
int y,
int radius)
Create the OffsetGrabPoint at a certain window location. |
Method Summary | |
---|---|
GrabPoint |
addGrabPoint(GrabPoint gp)
Add a GrabPoint to the internal list. |
void |
clear()
|
protected void |
finalize()
|
void |
moveOffsets()
Go through all the Offset elements and changes their position on the map. |
GrabPoint |
removeGrabPoint(GrabPoint rgp)
Remove a GrabPoint to the internal list. |
void |
set()
Called when the other grab points may have moved, and the offset distances should be changed internally for the Offset objects. |
void |
set(int x,
int y)
Called when the position of the OffsetGrabPoint has moved. |
void |
setX(int x)
Called when the X position of the OffsetGrabPoint has moved. |
void |
setY(int y)
Called when the Y position of the OffsetGrabPoint has moved. |
void |
updateOffsets()
Go through all the Offset elements and update the relative position to this grab point. |
Methods inherited from class com.bbn.openmap.omGraphics.GrabPoint |
---|
set, setDefaultDrawingAttributes |
Methods inherited from class com.bbn.openmap.omGraphics.OMPoint |
---|
generate, getLat, getLon, getRadius, getX, getY, hasLineTypeChoice, isOval, restore, set, setLat, setLon, setOval, setRadius |
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, 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, render, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setShape, setVisible |
Field Detail |
---|
protected java.util.Hashtable<GrabPoint,OffsetGrabPoint.Offset> offsetPoints
protected boolean overflowLock
Constructor Detail |
---|
public OffsetGrabPoint(int x, int y)
x
- horizontal pixel location from left side of window.y
- vertical pixel location from top side of window.public OffsetGrabPoint(int x, int y, int radius)
x
- horizontal pixel location from left side of window.y
- vertical pixel location from top side of window.radius
- the pixel radius of the point.Method Detail |
---|
public GrabPoint addGrabPoint(GrabPoint gp)
public GrabPoint removeGrabPoint(GrabPoint rgp)
public void set(int x, int y)
set
in class OMPoint
public void setX(int x)
setX
in class OMPoint
public void setY(int y)
setY
in class OMPoint
public void set()
public void moveOffsets()
public void updateOffsets()
public void clear()
protected void finalize()
finalize
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |