/*PLEASE DO NOT EDIT THIS CODE*/
/*This code was generated using the Java Umplificator!*/

namespace org.jhotdraw.draw.handle ;

class ConnectionEndHandle 
{
depend org.jhotdraw.draw.connector.Connector;
depend org.jhotdraw.draw.*;
depend java.awt.geom.*;
  isA AbstractConnectionHandle;

  /**
     * Sets the start of the connection.
     */
    @Override
    protected void connect(Connector c) {
        getOwner().setEndConnector(c);
    }
/**
     * Disconnects the start figure.
     */
    @Override
    protected void disconnect() {
        getOwner().setEndConnector(null);
    }
@Override
    protected Connector getTarget() {
        return getOwner().getEndConnector();
    }
/**
     * Sets the start point of the connection.
     */
    @Override
    protected void setLocation(Point2D.Double p) {
        getOwner().willChange();
        getOwner().setEndPoint(p);
        getOwner().changed();
    }
/**
     * Returns the start point of the connection.
     */
    @Override
    protected Point2D.Double getLocation() {
        return getOwner().getEndPoint();
    }
@Override
    protected boolean canConnect(Connector existingEnd, Connector targetEnd) {
        return getOwner().canConnect(existingEnd, targetEnd);
    }
@Override
    protected int getBezierNodeIndex() {
        return getBezierFigure().getNodeCount() - 1;
    }

}