org.jhotdraw.samples.pert.figures
Class DependencyFigure
- 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
-
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, ConnectionFigure, Figure, DOMStorable
public class DependencyFigure extends LineConnectionFigure
DependencyFigure.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.jhotdraw.draw.LineConnectionFigure
LINER_PROPERTY
-
Fields inherited from interface org.jhotdraw.draw.Figure
CONNECTABLE_PROPERTY, REMOVABLE_PROPERTY, SELECTABLE_PROPERTY, TRANSFORMABLE_PROPERTY
-
-
Constructor Summary
Constructors Constructor and Description DependencyFigure()Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleancanConnect(Connector start)Checks if thisConnectionFigurecan be connect to the specifiedConnector.booleancanConnect(Connector start, Connector end)Checks if two figures can be connected.DependencyFigureclone()Returns a clone of the figure, with clones of all aggregated figures, such as children and decorators.intgetLayer()AbstractFigure always returns 0.voidremoveNotify(Drawing d)This method is invoked, when the Figure is being removed from a Drawing.-
Methods inherited from class org.jhotdraw.draw.LineConnectionFigure
addNotify, createHandles, getBezierPath, getEndConnector, getEndFigure, getLiner, getStartConnector, getStartFigure, handleMouseClick, lineout, read, remap, reverseConnection, setConnectable, setEndConnector, setEndPoint, setLiner, setNode, setPoint, setStartConnector, setStartPoint, transform, updateConnection, validate, write
-
Methods inherited from class org.jhotdraw.draw.BezierFigure
addNode, addNode, chop, contains, findCompatibleConnector, findConnector, findNode, findSegment, getBounds, getCenter, getDrawingArea, getEndPoint, getNode, getNodeCount, getOutermostPoint, getPoint, getPoint, getPointOnPath, getStartPoint, getTransformRestoreData, invalidate, isClosed, joinSegments, joinSegments, layout, removeNode, restoreTransformTo, set, setBezierPath, setBounds, setClosed, setPoint, splitSegment, splitSegment
-
Methods inherited from class org.jhotdraw.draw.AbstractAttributedFigure
draw, get, getAttributes, getAttributesRestoreData, getStroke, getStrokeMiterLimitFactor, hasAttribute, isAttributeEnabled, removeAttribute, restoreAttributesTo, setAttributeEnabled, setAttributes
-
Methods inherited from class org.jhotdraw.draw.AbstractFigure
addFigureListener, changed, findFigureInside, fireAreaInvalidated, fireFigureChanged, getActions, getConnectors, getCursor, getDecomposition, getPreferredSize, getTool, getToolTipText, handleDrop, includes, isConnectable, isRemovable, isSelectable, isTransformable, isVisible, removeFigureListener, requestRemove, setBounds, setRemovable, setSelectable, setTransformable, setVisible, toString, willChange
-
Methods inherited from class org.jhotdraw.beans.AbstractBean
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
-
Methods inherited from class java.lang.Object
equals, 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, 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
-
-
-
-
Method Detail
-
canConnect
public boolean canConnect(Connector start, Connector end)
Checks if two figures can be connected. Implement this method to constrain the allowed connections between figures.- Specified by:
canConnectin interfaceConnectionFigure- Overrides:
canConnectin classLineConnectionFigure
-
canConnect
public boolean canConnect(Connector start)
Description copied from interface:ConnectionFigureChecks if thisConnectionFigurecan be connect to the specifiedConnector. This is used to provide an early feedback to the user, when he/she creates a new connection.- Specified by:
canConnectin interfaceConnectionFigure- Overrides:
canConnectin classLineConnectionFigure
-
clone
public DependencyFigure clone()
Description copied from interface:FigureReturns a clone of the figure, with clones of all aggregated figures, such as children and decorators. The cloned figure does not clone the list of FigureListeners from its original.- Specified by:
clonein interfaceFigure- Overrides:
clonein classLineConnectionFigure
-
getLayer
public int getLayer()
Description copied from class:AbstractFigureAbstractFigure always returns 0. Override this method if your figure needs to be on a different layer.- Specified by:
getLayerin interfaceFigure- Overrides:
getLayerin classAbstractFigure
-
removeNotify
public void removeNotify(Drawing d)
Description copied from class:LineConnectionFigureThis method is invoked, when the Figure is being removed from a Drawing. This method invokes handleDisconnect, if the Figure is connected.- Specified by:
removeNotifyin interfaceFigure- Overrides:
removeNotifyin classLineConnectionFigure- See Also:
LineConnectionFigure.handleDisconnect(org.jhotdraw.draw.connector.Connector, org.jhotdraw.draw.connector.Connector)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG