org.eclipse.gef.handles
Class BendpointHandle
java.lang.Object
Figure
org.eclipse.gef.handles.AbstractHandle
org.eclipse.gef.handles.SquareHandle
org.eclipse.gef.handles.ConnectionHandle
org.eclipse.gef.handles.BendpointHandle
- All Implemented Interfaces:
- EventListener, Handle, PropertyChangeListener
- Direct Known Subclasses:
- BendpointCreationHandle, BendpointMoveHandle
- public class BendpointHandle
- extends ConnectionHandle
- implements PropertyChangeListener
A handle for bendpoints on a connection.
- See Also:
- Serialized Form
| Methods inherited from class org.eclipse.gef.handles.AbstractHandle |
ancestorAdded, ancestorMoved, ancestorRemoved, getAccessibleLocation, getDragCursor, getDragTracker, getLocator, getOwner, getOwnerFigure, setDragCursor, setDragTracker, setLocator, setOwner, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BendpointHandle
public BendpointHandle()
createDragTracker
protected DragTracker createDragTracker()
- By default,
null is returned for the DragTracker.
- Specified by:
createDragTracker in class AbstractHandle
- Returns:
- returns null by default
getIndex
public int getIndex()
- Returns the index. This could mean different things for different subclasses. It could
be the index of the point the handle belongs to. Or it could be the index of the handle
itself. For
BendpointCreationHandles and BendpointMoveHandles, this
is the index of the handle itself, where these two types of handles are indexed
separately. For example, if you have one bendpoint, you will have 2 creation handles,
indexed as 0 and 1, and 1 move handle, indexed as 0.
- Returns:
- the index
propertyChange
public void propertyChange(PropertyChangeEvent event)
- Revalidates this handle when the connection's points change.
- Specified by:
propertyChange in interface PropertyChangeListener- Overrides:
propertyChange in class ConnectionHandle
- Parameters:
event - the event that caused the points change- See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
setIndex
protected void setIndex(int i)
- Sets the index.
- Parameters:
i - the new index- See Also:
getIndex()
Copyright (c) IBM Corp. and others 2000, 2004. All Rights Reserved.