/*
* @(#)ChopBezierConnector.java
*
* Copyright (c) 1996-2010 by the original authors of JHotDraw and all its
* contributors. All rights reserved.
*
* You may not use, copy or modify this file, except in compliance with the
* license agreement you entered into with the copyright holders. For details
* see accompanying license terms.
*/
package org.jhotdraw.draw.connector;
import org.jhotdraw.draw.*;
import java.awt.geom.*;
/**
* A {@link Connector} which locates a connection point at the bounds
* of a {@link BezierFigure}.
*
*
* XXX - This connector does not take the stroke width of the polygon into
* account.
*
*
* @author Werner Randelshofer
* @version $Id: ChopBezierConnector.java 718 2010-11-21 17:49:53Z rawcoder $
*/
public class ChopBezierConnector extends ChopRectangleConnector {
/** Creates a new instance. */
public ChopBezierConnector() {
}
public ChopBezierConnector(BezierFigure owner) {
super(owner);
}
@Override
protected Point2D.Double chop(Figure target, Point2D.Double from) {
BezierFigure bf = (BezierFigure) getConnectorTarget(target);
return bf.chop(from);
}
}
Ads help maintain this website.