public class ConnectionEndpointHandle extends ConnectionHandle
Connection
. A ConnectionEndpointHandle may be
extended rather than using the final ConnectionStartHandle
or
ConnectionEndHandle
Figure.FigureIterator, Figure.IdentitySearch
AncestorListener.Stub
IFigure.NoInsets
DEFAULT_HANDLE_SIZE
bgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTip
MAX_DIMENSION, MIN_DIMENSION, NO_INSETS
Constructor and Description |
---|
ConnectionEndpointHandle(ConnectionEditPart owner,
boolean fixed,
int endPoint)
Creates a new ConnectionStartHandle and sets its owner to
owner . |
ConnectionEndpointHandle(ConnectionEditPart owner,
int endPoint)
Creates a new ConnectionStartHandle, sets its owner to
owner
, and sets its locator to a ConnectionLocator . |
ConnectionEndpointHandle(int endPoint)
Creates a new ConnectionStartHandle.
|
Modifier and Type | Method and Description |
---|---|
protected DragTracker |
createDragTracker()
Creates and returns a new
ConnectionEndpointTracker . |
int |
getEndPoint()
Return the endpoint handle.
|
addNotify, getConnection, isFixed, propertyChange, removeNotify, setFixed
getBorderColor, getFillColor, init, isPrimary, paintFigure
ancestorAdded, ancestorMoved, ancestorRemoved, getAccessibleLocation, getDragCursor, getDragTracker, getLocator, getOwner, getOwnerFigure, setDragCursor, setDragTracker, setLocator, setOwner, validate
add, 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, useLocalCoordinates
public ConnectionEndpointHandle(ConnectionEditPart owner, int endPoint)
owner
, and sets its locator to a ConnectionLocator
.owner
- the ConnectionEditPart ownerendPoint
- one of ConnectionLocator.SOURCE
or
ConnectionLocator.TARGET
.public ConnectionEndpointHandle(ConnectionEditPart owner, boolean fixed, int endPoint)
owner
. If the handle is fixed, it cannot be dragged.owner
- the ConnectionEditPart ownerfixed
- if true, handle cannot be dragged.endPoint
- one of ConnectionLocator.SOURCE
or
ConnectionLocator.TARGET
.public ConnectionEndpointHandle(int endPoint)
endPoint
- one of ConnectionLocator.SOURCE
or
ConnectionLocator.TARGET
.protected DragTracker createDragTracker()
ConnectionEndpointTracker
.createDragTracker
in class AbstractHandle
public int getEndPoint()
ConnectionLocator.SOURCE
or
ConnectionLocator.TARGET
.Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.