public class MoveHandle extends AbstractHandle
GraphicalEditParts.Figure.FigureIterator, Figure.IdentitySearchAncestorListener.StubIFigure.NoInsets| Modifier and Type | Field and Description |
|---|---|
protected static int |
INNER_PAD
Deprecated.
subclasses should not reference this field.
|
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTipMAX_DIMENSION, MIN_DIMENSION, NO_INSETS| Constructor and Description |
|---|
MoveHandle(GraphicalEditPart owner)
Creates a MoveHandle for the given
GraphicalEditPart using a
default Locator. |
MoveHandle(GraphicalEditPart owner,
Locator loc)
Creates a MoveHandle for the given
GraphicalEditPart using
the given Locator. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsPoint(int x,
int y)
Returns
true if the point (x,y) is contained within this
handle. |
protected DragTracker |
createDragTracker()
Overridden to create a
DragEditPartsTracker. |
Point |
getAccessibleLocation()
Returns a point along the right edge of the handle.
|
protected void |
initialize()
Initializes the handle.
|
addNotify, ancestorAdded, ancestorMoved, ancestorRemoved, getDragCursor, getDragTracker, getLocator, getOwner, getOwnerFigure, removeNotify, setDragCursor, setDragTracker, setLocator, setOwner, validateadd, add, add, add, addAncestorListener, addCoordinateListener, addFigureListener, addFocusListener, addKeyListener, addLayoutListener, addListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, containsPoint, erase, findDescendantAtExcluding, findFigureAt, findFigureAt, findFigureAt, findFigureAtExcluding, findMouseEventTargetAt, findMouseEventTargetInDescendantsAt, fireCoordinateSystemChanged, fireFigureMoved, fireMoved, firePropertyChange, firePropertyChange, firePropertyChange, getBackgroundColor, getBorder, getBounds, getChildren, getClientArea, getClientArea, getClippingStrategy, getCursor, getFlag, getFont, getForegroundColor, getInsets, getLayoutManager, getListeners, getLocalBackgroundColor, getLocalFont, getLocalForegroundColor, getLocation, getMaximumSize, getMinimumSize, getMinimumSize, getParent, getPreferredSize, getPreferredSize, getSize, getToolTip, getUpdateManager, handleFocusGained, handleFocusLost, handleKeyPressed, handleKeyReleased, handleMouseDoubleClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseHover, handleMouseMoved, handleMousePressed, handleMouseReleased, hasFocus, internalGetEventDispatcher, intersects, invalidate, invalidateTree, isCoordinateSystem, isEnabled, isFocusTraversable, isMirrored, isMouseEventTarget, isOpaque, isRequestFocusEnabled, isShowing, isValid, isValidationRoot, isVisible, layout, paint, paintBorder, paintChildren, paintClientArea, paintFigure, primTranslate, remove, removeAll, removeAncestorListener, removeCoordinateListener, removeFigureListener, removeFocusListener, removeKeyListener, removeLayoutListener, removeListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, revalidate, setBackgroundColor, setBorder, setBounds, setChildrenDirection, setChildrenEnabled, setChildrenOrientation, setClippingStrategy, setConstraint, setCursor, setEnabled, setFlag, setFocusTraversable, setFont, setForegroundColor, setLayoutManager, setLocation, setMaximumSize, setMinimumSize, setOpaque, setParent, setPreferredSize, setPreferredSize, setRequestFocusEnabled, setSize, setSize, setToolTip, setValid, setVisible, translate, translateFromParent, translateToAbsolute, translateToParent, translateToRelative, useLocalCoordinatesprotected static final int INNER_PAD
containsPoint(int, int).public MoveHandle(GraphicalEditPart owner)
GraphicalEditPart using a
default Locator.owner - The GraphicalEditPart to be moved by this handle.public MoveHandle(GraphicalEditPart owner, Locator loc)
GraphicalEditPart using
the given Locator.owner - The GraphicalEditPart to be moved by this handle.loc - The Locator used to place the handle.protected DragTracker createDragTracker()
DragEditPartsTracker.createDragTracker in class AbstractHandleAbstractHandle.createDragTracker()public boolean containsPoint(int x,
int y)
true if the point (x,y) is contained within this
handle.containsPoint in interface IFigurecontainsPoint in class Figurex - The x coordinate.y - The y coordinate.true if the point (x,y) is contained within this
handle.public Point getAccessibleLocation()
getAccessibleLocation in interface HandlegetAccessibleLocation in class AbstractHandlenull or the absolute locationHandle.getAccessibleLocation()protected void initialize()
DragTracker and DragCursor.Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.