JHotDraw 7.1

org.jhotdraw.draw
Class ChopDiamondConnector

java.lang.Object
  extended by org.jhotdraw.draw.AbstractConnector
      extended by org.jhotdraw.draw.ChopRectangleConnector
          extended by org.jhotdraw.draw.ChopDiamondConnector
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Connector, DOMStorable

public class ChopDiamondConnector
extends ChopRectangleConnector

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

Version:
1.0 27. March 2006 Created.
Author:
Werner Randelshofer
See Also:
Serialized Form

Constructor Summary
ChopDiamondConnector()
           
ChopDiamondConnector(Figure owner)
           
 
Method Summary
protected  java.awt.geom.Point2D.Double chop(Figure target, java.awt.geom.Point2D.Double from)
          Return an appropriate connection point on the edge of a diamond figure
 
Methods inherited from class org.jhotdraw.draw.ChopRectangleConnector
findEnd, findStart
 
Methods inherited from class org.jhotdraw.draw.AbstractConnector
clone, contains, draw, findPoint, getAnchor, getBounds, getConnectorTarget, getDrawingArea, getOwner, isConnectToDecorator, read, setConnectToDecorator, setOwner, updateAnchor, updateEndLocation, updateStartLocation, write
 
Methods inherited from class java.lang.Object
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.geom.Point2D.Double chop(Figure target,
                                            java.awt.geom.Point2D.Double from)
Return an appropriate connection point on the edge of a diamond figure

Overrides:
chop in class ChopRectangleConnector

Copyright 1996-2007 (c) JHotDraw.org.
Some rights reserved.