public class OffsetGrabPoint extends GrabPoint
Modifier and Type | Class and Description |
---|---|
class |
OffsetGrabPoint.Offset
A wrapper class of the internal GrabPoints.
|
OMPoint.Image
Modifier and Type | Field and Description |
---|---|
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.
|
DEFAULT_RADIUS
DEFAULT_ISOVAL, lat1, lon1, oval, radius, x, y
declutterType, displayPaint, edgeMatchesFill, fillPaint, hasLabel, linePaint, matted, mattingPaint, renderType, selected, selectPaint, showEditablePalette, stroke, textureMask
APP_OBJECT_KEY, appObject, ATT_MAP_KEY, lineType, needToRegenerate, shape, visible
ADD_GRAPHIC_MASK, BASIC_STROKE, CHANGE_APPEARANCE, clear, DECIMAL_DEGREES, DECLUTTERTYPE_LINE, DECLUTTERTYPE_MOVE, DECLUTTERTYPE_NONE, DECLUTTERTYPE_SPACE, DEFAULT_ROTATIONANGLE, DELETE_GRAPHIC_MASK, DESELECT_GRAPHIC_MASK, DESELECTALL_GRAPHIC_MASK, GRAPHICTYPE_ARC, GRAPHICTYPE_BITMAP, GRAPHICTYPE_CIRCLE, GRAPHICTYPE_ELLIPSE, GRAPHICTYPE_GRAPHIC, GRAPHICTYPE_GRID, GRAPHICTYPE_LINE, GRAPHICTYPE_POINT, GRAPHICTYPE_POLY, GRAPHICTYPE_RASTER, GRAPHICTYPE_RECTANGLE, GRAPHICTYPE_TEXT, INFOLINE, LABEL, LINETYPE_GREATCIRCLE, LINETYPE_RHUMB, LINETYPE_STRAIGHT, LINETYPE_UNKNOWN, LOWER_GRAPHIC_MASK, LOWER_TO_BOTTOM_GRAPHIC_MASK, OMGRAPHIC_ELT, OMGRAPHIC_TYPE_ATTR, RADIANS, RAISE_GRAPHIC_MASK, RAISE_TO_TOP_GRAPHIC_MASK, REMOVABLE, RENDERTYPE_LATLON, RENDERTYPE_OFFSET, RENDERTYPE_UNKNOWN, RENDERTYPE_XY, SELECT_GRAPHIC_MASK, SORT_GRAPHICS_MASK, TOOLTIP, UPDATE_GRAPHIC_MASK, UPDATED
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
set, setDefaultDrawingAttributes
generate, getLat, getLon, getRadius, getX, getY, hasLineTypeChoice, isOval, restore, set, setLat, setLon, setOval, setRadius
clone, deselect, distance, getDeclutterType, getDisplayColor, getDisplayPaint, getEdgeMatchesFill, getFillColor, getFillPaint, getHasLabel, getLineColor, getLinePaint, getMattingPaint, getRenderType, getSelectColor, getSelectPaint, getShowEditablePalette, getStroke, getTextureMask, initLabelingDuringGenerate, isClear, isMatted, isSelected, normalizeDistanceForLineWidth, readStroke, regenerate, render, renderLabel, select, setDeclutterType, setEdgeMatchesFill, setFillColor, setFillPaint, setGraphicsColor, setGraphicsForEdge, setGraphicsForFill, setHasLabel, setLabelLocation, setLabelLocation, setLabelLocation, setLabelLocation, setLineColor, setLinePaint, setMatted, setMattingPaint, setRenderType, setSelectColor, setSelected, setSelectPaint, setShape, setShowEditablePalette, setStroke, setTextureMask, shouldRenderEdge, shouldRenderFill, writeStroke
_distance, appendShapeEdge, appendShapeEdge, appendShapeEdge, appendShapeEdge, checkAttributeMap, checkAttributeMap, clearAttributes, contains, createAttributeMap, createBoxShape, createShape, createShape, describeShapeDetail, describeShapeDetail, distanceToEdge, distanceToEdge, draw, draw, fill, fill, getAppObject, getAppObject, getAttribute, getAttributeMap, getAttributes, getDescription, getLineType, getNeedToRegenerate, getShape, isRenderable, isRenderable, isVisible, putAttribute, removeAttribute, replaceAppObjectWithAttributeMap, setAppObject, setAppObject, setAttributes, setLineType, setNeedToRegenerate, setVisible
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone, deselect, getDeclutterType, getDisplayColor, getDisplayPaint, getFillColor, getFillPaint, getLineColor, getLinePaint, getMattingPaint, getRenderType, getSelectColor, getSelectPaint, getShowEditablePalette, getStroke, getTextureMask, isMatted, isSelected, normalizeDistanceForLineWidth, regenerate, renderLabel, select, setDeclutterType, setFillPaint, setGraphicsColor, setGraphicsForEdge, setGraphicsForFill, setLabelLocation, setLabelLocation, setLabelLocation, setLinePaint, setMatted, setMattingPaint, setRenderType, setSelected, setSelectPaint, setShowEditablePalette, setStroke, setTextureMask, shouldRenderEdge, shouldRenderFill
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
protected java.util.Hashtable<GrabPoint,OffsetGrabPoint.Offset> offsetPoints
protected boolean overflowLock
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.public GrabPoint removeGrabPoint(GrabPoint rgp)
public void set(int x, int y)
public void setX(int x)
public void setY(int y)
public void set()
public void moveOffsets()
public void updateOffsets()
public void clear()
protected void finalize()
finalize
in class java.lang.Object
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details