public class DependencyFigure extends LineConnectionFigure
LINER_PROPERTY
path
changingDepth, listenerList
propertySupport
CONNECTABLE_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, writePoints
addNode, 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, splitSegment
applyAttributesTo, draw, drawText, get, getAttributeKey, getAttributes, getAttributesRestoreData, getStroke, getStrokeMiterLimitFactor, hasAttribute, isAttributeEnabled, readAttributes, removeAttribute, restoreAttributesTo, setAttributeEnabled, setAttributes, writeAttributes
addFigureListener, 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, willChange
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getEndPoint, getNode, getNodeCount, getPoint, getStartPoint
addFigureListener, 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, willChange
public boolean canConnect(Connector start, Connector end)
canConnect
in interface ConnectionFigure
canConnect
in class LineConnectionFigure
public boolean canConnect(Connector start)
ConnectionFigure
ConnectionFigure
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 ConnectionFigure
canConnect
in class LineConnectionFigure
protected void handleDisconnect(Connector start, Connector end)
handleDisconnect
in class LineConnectionFigure
LineConnectionFigure.removeNotify(org.jhotdraw.draw.Drawing)
protected void handleConnect(Connector start, Connector end)
handleConnect
in class LineConnectionFigure
public DependencyFigure clone()
Figure
clone
in interface Figure
clone
in class LineConnectionFigure
public int getLayer()
AbstractFigure
getLayer
in interface Figure
getLayer
in class AbstractFigure
public void removeNotify(Drawing d)
LineConnectionFigure
removeNotify
in interface Figure
removeNotify
in class LineConnectionFigure
LineConnectionFigure.handleDisconnect(org.jhotdraw.draw.connector.Connector, org.jhotdraw.draw.connector.Connector)