Back to index

moin  1.9.0~rc2
Figure.java
Go to the documentation of this file.
00001 /*
00002  * @(#)Figure.java 5.1
00003  *
00004  */
00005 
00006 package CH.ifa.draw.framework;
00007 
00008 import CH.ifa.draw.util.*;
00009 import java.awt.*;
00010 import java.util.*;
00011 import java.io.Serializable;
00012 
00031 public interface Figure
00032                 extends Storable, Cloneable, Serializable {
00033 
00039     public void moveBy(int dx, int dy);
00040 
00052     public void basicDisplayBox(Point origin, Point corner);
00053 
00062     public void displayBox(Point origin, Point corner);
00063 
00068     public Rectangle displayBox();
00069 
00074     public void draw(Graphics g, boolean showGuides);
00075 
00084     public Vector handles();
00085 
00089     public Dimension size();
00090 
00094     public Point center();
00095 
00099     public boolean isEmpty();
00100 
00104     public FigureEnumeration figures();
00105 
00109     public Figure findFigureInside(int x, int y);
00110 
00114     public boolean containsPoint(int x, int y);
00115 
00119     public Object clone();
00120 
00127     public void displayBox(Rectangle r);
00128 
00132     public boolean includes(Figure figure);
00133 
00138     public FigureEnumeration decompose();
00139 
00146     public void addToContainer(FigureChangeListener c);
00147 
00152     public void removeFromContainer(FigureChangeListener c);
00153 
00157     public FigureChangeListener listener();
00158 
00162     public void addFigureChangeListener(FigureChangeListener l);
00163 
00167     public void removeFigureChangeListener(FigureChangeListener l);
00168 
00174     public void release();
00175 
00181     public void invalidate();
00182 
00197     public void willChange();
00198 
00207     public void changed();
00208 
00212     public boolean canConnect();
00213 
00218     public Connector connectorAt(int x, int y);
00219 
00226     public void connectorVisibility(boolean isVisible);
00227 
00235     public Insets connectionInsets();
00236 
00240     public Locator connectedTextLocator(Figure text);
00241 
00248     public Object getAttribute(String name);
00249 
00253     public void setAttribute(String name, Object value);
00254 }