JHotDraw 7.4.1

org.jhotdraw.draw.connector
Class ChopDiamondConnector

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

public class ChopDiamondConnector
extends ChopRectangleConnector

A Connector which locates a connection point at the bounds of any figure which has a diamond shape, such as DiamondFigure.

Version:
$Id: ChopDiamondConnector.java 604 2010-01-09 12:00:29Z rawcoder $
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.connector.ChopRectangleConnector
findEnd, findStart
 
Methods inherited from class org.jhotdraw.draw.connector.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-2010 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.