public abstract class SquareHandle extends AbstractHandle
Figure.FigureIterator, Figure.IdentitySearchAncestorListener.StubIFigure.NoInsets| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_HANDLE_SIZE
The default size for square handles.
|
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTipMAX_DIMENSION, MIN_DIMENSION, NO_INSETS| Constructor and Description |
|---|
SquareHandle()
Null constructor
|
SquareHandle(GraphicalEditPart owner,
Locator loc)
Creates a SquareHandle for the given
GraphicalEditPart with
the given Locator. |
SquareHandle(GraphicalEditPart owner,
Locator loc,
Cursor c)
Creates a SquareHandle for the given
GraphicalEditPart with
the given Cursor using the given Locator. |
| Modifier and Type | Method and Description |
|---|---|
protected Color |
getBorderColor()
Returns the color for the outside of the handle.
|
protected Color |
getFillColor()
Returns the color for the inside of the handle.
|
protected void |
init()
Initializes the handle.
|
protected boolean |
isPrimary()
Returns
true if the handle's owner is the primary selection. |
void |
paintFigure(Graphics g)
Draws the handle with fill color and outline color dependent on the
primary selection status of the owner editpart.
|
addNotify, ancestorAdded, ancestorMoved, ancestorRemoved, createDragTracker, getAccessibleLocation, 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, 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, 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 DEFAULT_HANDLE_SIZE
public SquareHandle()
public SquareHandle(GraphicalEditPart owner, Locator loc)
GraphicalEditPart with
the given Locator.owner - the ownerloc - the locatorpublic SquareHandle(GraphicalEditPart owner, Locator loc, Cursor c)
GraphicalEditPart with
the given Cursor using the given Locator.owner - The editpart which provided this handleloc - The locator to position the handlec - The cursor to display when the mouse is over the handleprotected Color getBorderColor()
protected Color getFillColor()
protected void init()
protected boolean isPrimary()
true if the handle's owner is the primary selection.true if the handles owner has primary selection.public void paintFigure(Graphics g)
paintFigure in class Figureg - The graphics used to paint the figure.Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.