Back to index

moin  1.9.0~rc2
Connector.java
Go to the documentation of this file.
00001 /*
00002  * @(#)Connector.java 5.1
00003  *
00004  */
00005 
00006 package CH.ifa.draw.framework;
00007 
00008 import java.awt.*;
00009 import java.io.Serializable;
00010 
00011 import CH.ifa.draw.util.*;
00012 
00033 public interface Connector extends Serializable, Storable {
00034 
00038     public abstract Point findStart(ConnectionFigure connection);
00039 
00043     public abstract Point findEnd(ConnectionFigure connection);
00044 
00048     public abstract Figure owner();
00049 
00053     public abstract Rectangle displayBox();
00054 
00058     public abstract boolean containsPoint(int x, int y);
00059 
00064     public abstract void draw(Graphics g);
00065 
00066 }
00067