org.jhotdraw.figures
Class ShortestDistanceConnector

java.lang.Object
  extended by org.jhotdraw.standard.AbstractConnector
      extended by org.jhotdraw.figures.ShortestDistanceConnector
All Implemented Interfaces:
java.io.Serializable, Connector, Storable

public class ShortestDistanceConnector
extends AbstractConnector

A ShortestDistance locates connection points by finding the shortest distance between the start and end of the connection. It doesn't connect to the areas defined by Figure.connectionInsets()

Version:
<$CURRENT_VERSION$>
See Also:
Figure.connectionInsets(), Connector, Serialized Form

Constructor Summary
ShortestDistanceConnector()
           
ShortestDistanceConnector(Figure owner)
           
 
Method Summary
 java.awt.Point findEnd(ConnectionFigure connection)
          Finds the end point for the connection.
 java.awt.Point findStart(ConnectionFigure connection)
          Finds the start point for the connection.
 
Methods inherited from class org.jhotdraw.standard.AbstractConnector
connectorVisibility, containsPoint, displayBox, draw, owner, read, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ShortestDistanceConnector

public ShortestDistanceConnector()

ShortestDistanceConnector

public ShortestDistanceConnector(Figure owner)
Method Detail

findStart

public java.awt.Point findStart(ConnectionFigure connection)
Description copied from interface: Connector
Finds the start point for the connection.

Specified by:
findStart in interface Connector
Overrides:
findStart in class AbstractConnector

findEnd

public java.awt.Point findEnd(ConnectionFigure connection)
Description copied from interface: Connector
Finds the end point for the connection.

Specified by:
findEnd in interface Connector
Overrides:
findEnd in class AbstractConnector