|
JHotDraw 7.3.1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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.LineConnectionFigure |
|---|
LINER_PROPERTY |
| 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 children 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, set, setBezierPath, setBounds, setClosed, setPoint, splitSegment, splitSegment |
| Methods inherited from class org.jhotdraw.draw.AbstractAttributedFigure |
|---|
applyAttributesTo, draw, drawText, get, 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, getPropertyChangeListeners, 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, get, getActions, getAttributes, getAttributesRestoreData, getBounds, getConnectors, getCursor, getDecomposition, getDrawingArea, getPreferredSize, getTool, getToolTipText, getTransformRestoreData, handleDrop, includes, isRemovable, isSelectable, isTransformable, isVisible, removeFigureListener, requestRemove, restoreAttributesTo, restoreTransformTo, set, setBounds, willChange |
| Constructor Detail |
|---|
public DependencyFigure()
| Method Detail |
|---|
public 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 LineConnectionFigure
protected 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()
Figure
clone in interface Figureclone in class LineConnectionFigurepublic int getLayer()
FigureFigureListener.figureChanged event to
its figure listeners.
getLayer in interface FiguregetLayer in class AbstractFigurepublic void removeNotify(Drawing d)
LineConnectionFigure
removeNotify in interface FigureremoveNotify in class LineConnectionFigureLineConnectionFigure.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 | ||||||||