JHotDraw 6.0b1

org.jhotdraw.samples.pert
Class PertDependency

java.lang.Object
  extended by org.jhotdraw.standard.AbstractFigure
      extended by org.jhotdraw.figures.PolyLineFigure
          extended by org.jhotdraw.figures.LineConnection
              extended by org.jhotdraw.samples.pert.PertDependency
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.EventListener, ConnectionFigure, Figure, FigureChangeListener, Storable

public class PertDependency
extends LineConnection

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jhotdraw.figures.LineConnection
myEndConnector, myStartConnector
 
Fields inherited from class org.jhotdraw.figures.PolyLineFigure
ARROW_TIP_BOTH, ARROW_TIP_END, ARROW_TIP_NONE, ARROW_TIP_START, fEndDecoration, fFrameColor, fPoints, fStartDecoration
 
Constructor Summary
PertDependency()
           
 
Method Summary
 boolean canConnect(Figure start, Figure end)
          Tests whether two figures can be connected.
 void handleConnect(Figure start, Figure end)
          Handles the connection of a connection.
 void handleDisconnect(Figure start, Figure end)
          Handles the disconnection of a connection.
 HandleEnumeration handles()
          Gets the handles of the figure.
 
Methods inherited from class org.jhotdraw.figures.LineConnection
basicMoveBy, canConnect, connectEnd, connectsSame, connectStart, disconnectEnd, disconnectStart, endFigure, endPoint, endPoint, figureChanged, figureInvalidated, figureRemoved, figureRequestRemove, figureRequestUpdate, getEndConnector, getStartConnector, insertPointAt, layoutConnection, read, release, removeFromContainer, removePointAt, setEndConnector, setPointAt, setStartConnector, startFigure, startPoint, startPoint, updateConnection, visit, write
 
Methods inherited from class org.jhotdraw.figures.PolyLineFigure
addPoint, basicDisplayBox, connectorAt, containsPoint, displayBox, draw, drawLine, findSegment, getAttribute, getAttribute, getEndDecoration, getFrameColor, getStartDecoration, invalidateRectangle, isEmpty, joinSegments, locator, pointAt, pointCount, points, setAttribute, setAttribute, setEndDecoration, setFrameColor, setStartDecoration, splitSegment
 
Methods inherited from class org.jhotdraw.standard.AbstractFigure
addDependendFigure, addFigureChangeListener, addToContainer, center, changed, clone, connectedTextLocator, connectionInsets, connectorVisibility, decompose, displayBox, displayBox, figures, findFigureInside, getDecoratedFigure, getDependendFigures, getTextHolder, getZValue, includes, invalidate, listener, moveBy, removeDependendFigure, removeFigureChangeListener, setZValue, size, willChange
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jhotdraw.framework.ConnectionFigure
joinSegments, pointAt, pointCount, splitSegment
 
Methods inherited from interface org.jhotdraw.framework.Figure
addDependendFigure, addFigureChangeListener, addToContainer, basicDisplayBox, center, changed, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, displayBox, draw, figures, findFigureInside, getAttribute, getAttribute, getDecoratedFigure, getDependendFigures, getTextHolder, getZValue, includes, invalidate, isEmpty, listener, moveBy, removeDependendFigure, removeFigureChangeListener, setAttribute, setAttribute, setZValue, size, willChange
 

Constructor Detail

PertDependency

public PertDependency()
Method Detail

handleConnect

public void handleConnect(Figure start,
                          Figure end)
Description copied from class: LineConnection
Handles the connection of a connection. Override this method to handle this event.

Overrides:
handleConnect in class LineConnection

handleDisconnect

public void handleDisconnect(Figure start,
                             Figure end)
Description copied from class: LineConnection
Handles the disconnection of a connection. Override this method to handle this event.

Overrides:
handleDisconnect in class LineConnection

canConnect

public boolean canConnect(Figure start,
                          Figure end)
Description copied from class: LineConnection
Tests whether two figures can be connected.

Specified by:
canConnect in interface ConnectionFigure
Overrides:
canConnect in class LineConnection

handles

public HandleEnumeration handles()
Description copied from class: LineConnection
Gets the handles of the figure. It returns the normal PolyLineHandles but adds ChangeConnectionHandles at the start and end.

Specified by:
handles in interface Figure
Overrides:
handles in class LineConnection
Returns:
a type-safe iterator of handles
See Also:
Handle

JHotDraw 6.0b1