org.jhotdraw.figures
Class ElbowConnection

java.lang.Object
  extended byorg.jhotdraw.standard.AbstractFigure
      extended byorg.jhotdraw.figures.PolyLineFigure
          extended byorg.jhotdraw.figures.LineConnection
              extended byorg.jhotdraw.figures.ElbowConnection
All Implemented Interfaces:
java.lang.Cloneable, ConnectionFigure, java.util.EventListener, Figure, FigureChangeListener, java.io.Serializable, Storable

public class ElbowConnection
extends LineConnection

A LineConnection that constrains a connection to orthogonal lines.

Version:
<$CURRENT_VERSION$>
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
 
Fields inherited from interface org.jhotdraw.framework.Figure
POPUP_MENU
 
Constructor Summary
ElbowConnection()
           
 
Method Summary
 Locator connectedTextLocator(Figure f)
          Returns the locator used to located connected text.
 HandleEnumeration handles()
          Gets the handles of the figure.
 void layoutConnection()
          Lays out the connection.
 void updateConnection()
          Updates the connection.
protected  void updatePoints()
           
 
Methods inherited from class org.jhotdraw.figures.LineConnection
basicMoveBy, canConnect, canConnect, connectEnd, connectsSame, connectStart, disconnectEnd, disconnectStart, endFigure, endPoint, endPoint, figureChanged, figureInvalidated, figureRemoved, figureRequestRemove, figureRequestUpdate, getEndConnector, getStartConnector, handleConnect, handleDisconnect, insertPointAt, read, release, removeFromContainer, removePointAt, setEndConnector, setPointAt, setStartConnector, startFigure, startPoint, startPoint, 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, 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, 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

ElbowConnection

public ElbowConnection()
Method Detail

updateConnection

public void updateConnection()
Description copied from class: LineConnection
Updates the connection.

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

layoutConnection

public void layoutConnection()
Description copied from class: LineConnection
Lays out the connection. This is called when the connection itself changes. By default the connection is recalculated

Overrides:
layoutConnection in class LineConnection

handles

public HandleEnumeration handles()
Gets the handles of the figure.

Specified by:
handles in interface Figure
Overrides:
handles in class LineConnection

connectedTextLocator

public Locator connectedTextLocator(Figure f)
Description copied from interface: Figure
Returns the locator used to located connected text.

Specified by:
connectedTextLocator in interface Figure
Overrides:
connectedTextLocator in class AbstractFigure

updatePoints

protected void updatePoints()