|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.draw2d.Figure
org.eclipse.gef.handles.AbstractHandle
org.eclipse.gmf.runtime.diagram.ui.handles.ConnectionHandle
This is the handle figure used to represent a connection handle.
| Nested Class Summary | |
static class |
ConnectionHandle.HandleDirection
An enumeration of connection directions. |
| Nested classes inherited from class org.eclipse.draw2d.Figure |
Figure.FigureIterator, Figure.IdentitySearch |
| Nested classes inherited from class org.eclipse.draw2d.AncestorListener |
AncestorListener.Stub |
| Nested classes inherited from class org.eclipse.draw2d.IFigure |
IFigure.NoInsets |
| Field Summary |
| 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 | |
ConnectionHandle(IGraphicalEditPart ownerEditPart,
ConnectionHandle.HandleDirection relationshipDirection,
java.lang.String tooltip)
Creates a new ConnectionHandle. |
|
| Method Summary | |
void |
addErrorIcon()
Superimposes an error icon on this connection handle. |
protected DragTracker |
createDragTracker()
|
IFigure |
findFigureAt(int x,
int y,
TreeSearch search)
|
protected Image |
getImage(int side)
Gets the image to be used for the connection handle given the side of the shape where the connection handle will appear. |
GraphicalEditPart |
getOwner()
Make public. |
boolean |
isIncoming()
Is this for incoming relationships? |
void |
removeErrorIcon()
Removes the error icon if it is being displayed. |
void |
setLocator(Locator locator)
Make public. |
protected void |
setRelationshipDirection(ConnectionHandle.HandleDirection direction)
Sets the direction that the relationship is to be created. |
void |
validate()
Updates the images used for the handles, based on the side they will appear on. |
| Methods inherited from class org.eclipse.gef.handles.AbstractHandle |
addNotify, ancestorAdded, ancestorMoved, ancestorRemoved, getAccessibleLocation, getDragCursor, getDragTracker, getLocator, getOwnerFigure, removeNotify, setDragCursor, setDragTracker, setOwner |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ConnectionHandle(IGraphicalEditPart ownerEditPart,
ConnectionHandle.HandleDirection relationshipDirection,
java.lang.String tooltip)
ConnectionHandle.
ownerEditPart - the editpart for which the handle belongsrelationshipDirection - direction that the relationship is to be createdtooltip - the tooltip| Method Detail |
protected DragTracker createDragTracker()
AbstractHandle.createDragTracker()
public IFigure findFigureAt(int x,
int y,
TreeSearch search)
IFigure.findFigureAt(int, int, org.eclipse.draw2d.TreeSearch)public void setLocator(Locator locator)
AbstractHandle.setLocator(org.eclipse.draw2d.Locator)public GraphicalEditPart getOwner()
AbstractHandle.getOwner()protected void setRelationshipDirection(ConnectionHandle.HandleDirection direction)
direction - the HandleDirection that the relationship is to be createdpublic boolean isIncoming()
public void addErrorIcon()
public void removeErrorIcon()
public void validate()
IFigure.validate()protected Image getImage(int side)
isIncoming() will reveal the direction of the handle.
side - the side of the shape where the connection handle will appear,
a value in PositionConstants
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.