JHotDraw 6.0b1

org.jhotdraw.contrib
Class ChopDiamondConnector

java.lang.Object
  extended by org.jhotdraw.standard.AbstractConnector
      extended by org.jhotdraw.standard.ChopBoxConnector
          extended by org.jhotdraw.contrib.ChopDiamondConnector
All Implemented Interfaces:
java.io.Serializable, Connector, Storable

public class ChopDiamondConnector
extends ChopBoxConnector

A ChopDiamondConnector locates connection points by choping the connection between the centers of the two figures at the edge of a diamond figure.

See Also:
Connector, Serialized Form

Field Summary
 
Fields inherited from class org.jhotdraw.standard.AbstractConnector
fOwner
 
Constructor Summary
ChopDiamondConnector()
           
ChopDiamondConnector(Figure owner)
           
 
Method Summary
protected  java.awt.Point chop(Figure target, java.awt.Point from)
          Return an appropriate connection point on the edge of a diamond figure
 
Methods inherited from class org.jhotdraw.standard.ChopBoxConnector
findEnd, findStart
 
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

ChopDiamondConnector

public ChopDiamondConnector()

ChopDiamondConnector

public ChopDiamondConnector(Figure owner)
Method Detail

chop

protected java.awt.Point chop(Figure target,
                              java.awt.Point from)
Return an appropriate connection point on the edge of a diamond figure

Overrides:
chop in class ChopBoxConnector

JHotDraw 6.0b1