CH.ifa.draw.samples.pert
Class PertDependency

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

public class PertDependency
extends LineConnection

See Also:
Serialized Form

Field Summary
 
Fields inherited from class CH.ifa.draw.figures.LineConnection
fEnd, fStart
 
Fields inherited from class CH.ifa.draw.figures.PolyLineFigure
ARROW_TIP_BOTH, ARROW_TIP_END, ARROW_TIP_NONE, ARROW_TIP_START, fEndDecoration, fFrameColor, fPoints, fStartDecoration
 
Fields inherited from interface CH.ifa.draw.framework.Figure
POPUP_MENU
 
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.
 java.util.Vector handles()
          Gets the handles of the figure.
 
Methods inherited from class CH.ifa.draw.figures.LineConnection
basicMoveBy, canConnect, connectEnd, connectsSame, connectStart, disconnectEnd, disconnectStart, end, endFigure, endPoint, endPoint, figureChanged, figureInvalidated, figureRemoved, figureRequestRemove, figureRequestUpdate, insertPointAt, layoutConnection, read, release, removePointAt, setPointAt, start, startFigure, startPoint, startPoint, updateConnection, write
 
Methods inherited from class CH.ifa.draw.figures.PolyLineFigure
addPoint, basicDisplayBox, connectorAt, containsPoint, displayBox, draw, drawLine, findSegment, getAttribute, getEndDecoration, getFrameColor, getStartDecoration, isEmpty, joinSegments, locator, pointAt, pointCount, points, setAttribute, setEndDecoration, setFrameColor, setStartDecoration, splitSegment
 
Methods inherited from class CH.ifa.draw.standard.AbstractFigure
addFigureChangeListener, addToContainer, center, changed, clone, connectedTextLocator, connectionInsets, connectorVisibility, decompose, displayBox, displayBox, figures, findFigureInside, includes, invalidate, listener, moveBy, removeFigureChangeListener, removeFromContainer, size, willChange
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface CH.ifa.draw.framework.ConnectionFigure
joinSegments, pointAt, pointCount, splitSegment
 
Methods inherited from interface CH.ifa.draw.framework.Figure
addFigureChangeListener, addToContainer, basicDisplayBox, center, changed, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, displayBox, draw, figures, findFigureInside, getAttribute, includes, invalidate, isEmpty, listener, moveBy, removeFigureChangeListener, removeFromContainer, setAttribute, 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 java.util.Vector 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 Vector of handles
See Also:
Handle