public class DependencyFigure extends LineConnectionFigure
LINER_PROPERTYpathchangingDepth, listenerListpropertySupportCONNECTABLE_PROPERTY, REMOVABLE_PROPERTY, SELECTABLE_PROPERTY, TRANSFORMABLE_PROPERTY| Constructor and Description |
|---|
DependencyFigure()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canConnect(Connector start)
Checks if this
ConnectionFigure can be connect to the specified
Connector. |
boolean |
canConnect(Connector start,
Connector end)
Checks if two figures can be connected.
|
DependencyFigure |
clone()
Returns a clone of the figure, with clones of all aggregated figures,
such as children and decorators.
|
int |
getLayer()
AbstractFigure always returns 0.
|
protected void |
handleConnect(Connector start,
Connector end)
Handles the connection of a connection.
|
protected void |
handleDisconnect(Connector start,
Connector end)
Handles the disconnection of a connection.
|
void |
removeNotify(Drawing d)
This method is invoked, when the Figure is being removed from a Drawing.
|
addNotify, createHandles, getBezierPath, getEndConnector, getEndFigure, getLiner, getStartConnector, getStartFigure, handleMouseClick, lineout, read, readLiner, readPoints, remap, reverseConnection, setConnectable, setEndConnector, setEndPoint, setLiner, setNode, setPoint, setStartConnector, setStartPoint, transform, updateConnection, validate, write, writeLiner, writePointsaddNode, addNode, chop, contains, drawCaps, drawFill, drawStroke, findCompatibleConnector, findConnector, findNode, findSegment, getBounds, getCappedPath, getCenter, getDrawingArea, getEndPoint, getNode, getNodeCount, getOutermostPoint, getPoint, getPoint, getPointOnPath, getStartPoint, getTransformRestoreData, invalidate, isClosed, joinSegments, joinSegments, layout, removeAllNodes, removeNode, restoreTransformTo, set, setBezierPath, setBounds, setClosed, setPoint, splitSegment, splitSegmentapplyAttributesTo, draw, drawText, get, getAttributeKey, getAttributes, getAttributesRestoreData, getStroke, getStrokeMiterLimitFactor, hasAttribute, isAttributeEnabled, readAttributes, removeAttribute, restoreAttributesTo, setAttributeEnabled, setAttributes, writeAttributesaddFigureListener, changed, findFigureInside, fireAreaInvalidated, fireAreaInvalidated, fireAreaInvalidated, fireAttributeChanged, fireFigureAdded, fireFigureChanged, fireFigureChanged, fireFigureChanged, fireFigureHandlesChanged, fireFigureRemoved, fireFigureRequestRemove, fireUndoableEditHappened, getActions, getChangingDepth, getConnectors, getCursor, getDecomposition, getDrawing, getFontRenderContext, getLock, getPreferredSize, getTool, getToolTipText, handleDrop, includes, isChanging, isConnectable, isRemovable, isSelectable, isTransformable, isVisible, removeFigureListener, requestRemove, setBounds, setRemovable, setSelectable, setTransformable, setVisible, toString, willChangeaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListenerequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetEndPoint, getNode, getNodeCount, getPoint, getStartPointaddFigureListener, addPropertyChangeListener, changed, contains, draw, findCompatibleConnector, findConnector, findFigureInside, get, getActions, getAttributes, getAttributesRestoreData, getBounds, getConnectors, getCursor, getDecomposition, getDrawingArea, getPreferredSize, getTool, getToolTipText, getTransformRestoreData, handleDrop, includes, isConnectable, isRemovable, isSelectable, isTransformable, isVisible, removeFigureListener, removePropertyChangeListener, requestRemove, restoreAttributesTo, restoreTransformTo, set, setBounds, willChangepublic boolean canConnect(Connector start, Connector end)
canConnect in interface ConnectionFigurecanConnect in class LineConnectionFigurepublic boolean canConnect(Connector start)
ConnectionFigureConnectionFigure can be connect to the specified
Connector.
This is used to provide an early feedback to the user, when he/she
creates a new connection.canConnect in interface ConnectionFigurecanConnect in class LineConnectionFigureprotected void handleDisconnect(Connector start, Connector end)
handleDisconnect in class LineConnectionFigureLineConnectionFigure.removeNotify(org.jhotdraw.draw.Drawing)protected void handleConnect(Connector start, Connector end)
handleConnect in class LineConnectionFigurepublic DependencyFigure clone()
Figureclone in interface Figureclone in class LineConnectionFigurepublic int getLayer()
AbstractFiguregetLayer in interface FiguregetLayer in class AbstractFigurepublic void removeNotify(Drawing d)
LineConnectionFigureremoveNotify in interface FigureremoveNotify in class LineConnectionFigureLineConnectionFigure.handleDisconnect(org.jhotdraw.draw.connector.Connector, org.jhotdraw.draw.connector.Connector)