|
JHotDraw 7.2 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jhotdraw.beans.AbstractBean org.jhotdraw.draw.AbstractFigure org.jhotdraw.draw.AbstractAttributedFigure org.jhotdraw.draw.BezierFigure org.jhotdraw.draw.LineFigure org.jhotdraw.draw.LineConnectionFigure org.jhotdraw.samples.pert.figures.DependencyFigure
public class DependencyFigure
DependencyFigure.
Field Summary |
---|
Fields inherited from class org.jhotdraw.draw.BezierFigure |
---|
path |
Fields inherited from class org.jhotdraw.draw.AbstractFigure |
---|
changingDepth, listenerList |
Fields inherited from class org.jhotdraw.beans.AbstractBean |
---|
propertySupport |
Constructor Summary | |
---|---|
DependencyFigure()
Creates a new instance. |
Method Summary | |
---|---|
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 chilrend and decorators. |
int |
getLayer()
Gets the layer number of the figure. |
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. |
Methods inherited from class org.jhotdraw.draw.LineConnectionFigure |
---|
addNotify, canConnect, createHandles, getBezierPath, getEndConnector, getEndFigure, getLiner, getStartConnector, getStartFigure, handleMouseClick, lineout, read, readLiner, readPoints, remap, reverseConnection, setEndConnector, setEndPoint, setLiner, setNode, setPoint, setStartConnector, setStartPoint, transform, updateConnection, validate, write, writeLiner, writePoints |
Methods inherited from class org.jhotdraw.draw.BezierFigure |
---|
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, setAttribute, setBezierPath, setBounds, setClosed, setPoint, splitSegment, splitSegment |
Methods inherited from class org.jhotdraw.draw.AbstractAttributedFigure |
---|
applyAttributesTo, draw, drawText, getAttribute, getAttributeKey, getAttributes, getAttributesRestoreData, getStroke, getStrokeMiterLimitFactor, hasAttribute, isAttributeEnabled, readAttributes, removeAttribute, restoreAttributesTo, setAttributeEnabled, setAttributes, writeAttributes |
Methods inherited from class org.jhotdraw.beans.AbstractBean |
---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jhotdraw.draw.ConnectionFigure |
---|
getEndPoint, getNode, getNodeCount, getPoint, getStartPoint |
Methods inherited from interface org.jhotdraw.draw.Figure |
---|
addFigureListener, changed, contains, draw, findCompatibleConnector, findConnector, findFigureInside, getActions, getAttribute, getAttributes, getAttributesRestoreData, getBounds, getConnectors, getCursor, getDecomposition, getDrawingArea, getPreferredSize, getTool, getToolTipText, getTransformRestoreData, handleDrop, includes, isRemovable, isSelectable, isTransformable, isVisible, removeFigureListener, requestRemove, restoreAttributesTo, restoreTransformTo, setAttribute, setBounds, willChange |
Constructor Detail |
---|
public DependencyFigure()
Method Detail |
---|
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()
Figure
FigureListener.figureChanged
event to
its figure listeners.
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, org.jhotdraw.draw.Connector)
|
Copyright 1996-2009 (c) by the authors and contributors of the JHotDraw project. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |