JHotDraw 7.2

org.jhotdraw.draw
Class ChopRoundRectangleConnector

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

public class ChopRoundRectangleConnector
extends ChopRectangleConnector

A ChopRoundRectangleConnector locates a connection Point2D.Double by chopping the connection at the horizontal and vertica lines defined by the display box of a RoundRectangleFigure.

Version:
2.2 2006-12-23 Renamed from ChopRoundRectConnector to ChopRoundRectangleConnector.
2.0 2006-01-14 Changed to support double precison coordinates.
1.0 2004-03-02 Derived from class ShortestDistanceConnector of JHotDraw 6.0b1.
Author:
Werner Randelshofer
See Also:
Serialized Form

Constructor Summary
ChopRoundRectangleConnector()
          Only used for DOMStorable input.
ChopRoundRectangleConnector(Figure owner)
           
 
Method Summary
protected  java.awt.geom.Point2D.Double chop(Figure target, java.awt.geom.Point2D.Double from)
           
 
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

ChopRoundRectangleConnector

public ChopRoundRectangleConnector()
Only used for DOMStorable input.


ChopRoundRectangleConnector

public ChopRoundRectangleConnector(Figure owner)
Method Detail

chop

protected java.awt.geom.Point2D.Double chop(Figure target,
                                            java.awt.geom.Point2D.Double from)
Overrides:
chop in class ChopRectangleConnector

Copyright 1996-2009 (c) by the authors and contributors of the JHotDraw project.
Some rights reserved.