Back to index

moin  1.9.0~rc2
Drawing.java
Go to the documentation of this file.
00001 /*
00002  * @(#)Drawing.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.*;
00012 
00030 public interface Drawing
00031         extends Storable, FigureChangeListener, Serializable {
00032 
00036     public void release();
00037 
00042     public FigureEnumeration figures();
00043 
00048     public FigureEnumeration figuresReverse();
00049 
00054     public Figure findFigure(int x, int y);
00055 
00059     public Figure findFigure(Rectangle r);
00060 
00070     public Figure findFigureWithout(int x, int y, Figure without);
00071 
00078     public Figure findFigure(Rectangle r, Figure without);
00079 
00086     public Figure findFigureInside(int x, int y);
00087 
00098     public Figure findFigureInsideWithout(int x, int y, Figure without);
00099 
00103     public void addDrawingChangeListener(DrawingChangeListener listener);
00104 
00108     public void removeDrawingChangeListener(DrawingChangeListener listener);
00109 
00113     public Enumeration drawingChangeListeners();
00114 
00120     public Figure add(Figure figure);
00121 
00125     public void addAll(Vector newFigures);
00126 
00130     public Figure remove(Figure figure);
00131 
00137     public Figure orphan(Figure figure);
00138 
00144     public void orphanAll(Vector newFigures);
00145 
00150     public void removeAll(Vector figures);
00151 
00156     public void replace(Figure figure, Figure replacement);
00157 
00161     public void sendToBack(Figure figure);
00162 
00166     public void bringToFront(Figure figure);
00167 
00171     public void draw(Graphics g, boolean showGuides);
00172 
00177     public void figureInvalidated(FigureChangeEvent e);
00178 
00182     public void figureRequestUpdate(FigureChangeEvent e);
00183 
00189     public void figureRequestRemove(FigureChangeEvent e);
00190 
00194     public void lock();
00195 
00199     public void unlock();
00200 
00201 }