JHotDraw 6.0b1

org.jhotdraw.standard
Class ChopBoxConnector

java.lang.Object
  extended by org.jhotdraw.standard.AbstractConnector
      extended by org.jhotdraw.standard.ChopBoxConnector
All Implemented Interfaces:
java.io.Serializable, Connector, Storable
Direct Known Subclasses:
ChopDiamondConnector, ChopEllipseConnector, ChopPolygonConnector, PolyLineConnector

public class ChopBoxConnector
extends AbstractConnector

A ChopBoxConnector locates connection points by choping the connection between the centers of the two figures at the display box.

See Also:
Connector, Serialized Form

Field Summary
 
Fields inherited from class org.jhotdraw.standard.AbstractConnector
fOwner
 
Constructor Summary
ChopBoxConnector()
           
ChopBoxConnector(Figure owner)
           
 
Method Summary
protected  java.awt.Point chop(Figure target, java.awt.Point from)
           
 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
connectorMovedTo, connectorVisibility, containsPoint, displayBox, draw, finalizeConnector, findPoint, owner, read, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChopBoxConnector

public ChopBoxConnector()

ChopBoxConnector

public ChopBoxConnector(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

chop

protected java.awt.Point chop(Figure target,
                              java.awt.Point from)

JHotDraw 6.0b1