Back to index

moin  1.9.0~rc2
ConnectionFigure.java
Go to the documentation of this file.
00001 /*
00002  * @(#)ConnectionFigure.java 5.1
00003  *
00004  */
00005 
00006 package CH.ifa.draw.framework;
00007 
00008 import java.awt.Point;
00009 import java.io.Serializable;
00010 import CH.ifa.draw.util.*;
00011 import CH.ifa.draw.framework.*;
00012 
00036 public interface ConnectionFigure extends Figure, FigureChangeListener {
00037 
00042     public void connectStart(Connector start);
00043 
00048     public void connectEnd(Connector end);
00049 
00053     public void updateConnection();
00054 
00058     public void disconnectStart();
00059 
00063     public void disconnectEnd();
00064 
00068     public Connector start();
00069 
00073     public Connector end();
00074 
00079     public boolean canConnect(Figure start, Figure end);
00080 
00084     public boolean connectsSame(ConnectionFigure other);
00085 
00089     public void startPoint(int x, int y);
00090 
00094     public void endPoint(int x, int y);
00095 
00099     public Point startPoint();
00100 
00104     public Point endPoint();
00105 
00109     public void setPointAt(Point p, int index);
00110 
00114     public Point pointAt(int index);
00115 
00119     public int pointCount();
00120 
00126     public int splitSegment(int x, int y);
00127 
00128 
00134     public boolean joinSegments(int x, int y);
00135 }