Back to index

moin  1.9.0~rc2
ChangeConnectionEndHandle.java
Go to the documentation of this file.
00001 /*
00002  * @(#)ChangeConnectionEndHandle.java 5.1
00003  *
00004  */
00005 
00006 package CH.ifa.draw.standard;
00007 
00008 import java.awt.Point;
00009 
00010 import CH.ifa.draw.framework.*;
00011 
00017 public class ChangeConnectionEndHandle extends ChangeConnectionHandle {
00018 
00022     public ChangeConnectionEndHandle(Figure owner) {
00023         super(owner);
00024     }
00025 
00029     protected Connector target() {
00030         return fConnection.end();
00031     }
00032 
00036     protected void disconnect() {
00037         fConnection.disconnectEnd();
00038     }
00039 
00043     protected void connect(Connector c) {
00044         fConnection.connectEnd(c);
00045     }
00046 
00050     protected void setPoint(int x, int y) {
00051         fConnection.endPoint(x, y);
00052     }
00053 
00057     public Point locate() {
00058         return fConnection.endPoint();
00059     }
00060 }
00061