public class BendpointHandle extends ConnectionHandle implements java.beans.PropertyChangeListener
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 |
---|
BendpointHandle() |
Modifier and Type | Method and Description |
---|---|
protected DragTracker |
createDragTracker()
By default,
null is returned for the DragTracker. |
int |
getIndex()
Returns the index.
|
void |
propertyChange(java.beans.PropertyChangeEvent event)
Revalidates this handle when the connection's points change.
|
protected void |
setIndex(int i)
Sets the index.
|
addNotify, getConnection, isFixed, 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
protected DragTracker createDragTracker()
null
is returned for the DragTracker.createDragTracker
in class AbstractHandle
public int getIndex()
BendpointCreationHandle
s and BendpointMoveHandle
s, 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.public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class ConnectionHandle
event
- the event that caused the points changePropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
protected void setIndex(int i)
i
- the new indexgetIndex()
Copyright (c) IBM Corp. and others 2000, 2011. All Rights Reserved.