|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.draw2d.Figure | +--org.eclipse.gef.handles.AbstractHandle | +--org.eclipse.gef.handles.SquareHandle
A small square handle approximately 7x7 pixels in size, that is either black or white.
Field Summary | |
protected static int |
DEFAULT_HANDLE_SIZE
The default size for square handles. |
Fields inherited from class org.eclipse.draw2d.Figure |
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip |
Fields inherited from interface org.eclipse.draw2d.IFigure |
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS |
Constructor Summary | |
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 . |
Method Summary | |
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. |
Methods inherited from class org.eclipse.gef.handles.AbstractHandle |
addNotify, ancestorAdded, ancestorMoved, ancestorRemoved, createDragTracker, getAccessibleLocation, getDragCursor, getDragTracker, getLocator, getOwner, getOwnerFigure, removeNotify, setDragCursor, setDragTracker, setLocator, setOwner, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int DEFAULT_HANDLE_SIZE
Constructor Detail |
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 handleMethod Detail |
protected 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 Figure
g
- The graphics used to paint the figure.
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |