public class BendpointHandle extends ConnectionHandle implements java.beans.PropertyChangeListener
Figure.FigureIterator, Figure.IdentitySearchAncestorListener.StubIFigure.NoInsetsDEFAULT_HANDLE_SIZEbgColor, border, bounds, fgColor, flags, font, MAX_FLAG, maxSize, minSize, NO_MANAGER, prefSize, toolTipMAX_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, setFixedgetBorderColor, getFillColor, init, isPrimary, paintFigureancestorAdded, ancestorMoved, ancestorRemoved, getAccessibleLocation, getDragCursor, getDragTracker, getLocator, getOwner, getOwnerFigure, setDragCursor, setDragTracker, setLocator, setOwner, validateadd, 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, useLocalCoordinatesprotected DragTracker createDragTracker()
null is returned for the DragTracker.createDragTracker in class AbstractHandlepublic int getIndex()
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.public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListenerpropertyChange in class ConnectionHandleevent - 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.