All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.standard.StandardDrawing

java.lang.Object
   |
   +----CH.ifa.draw.standard.AbstractFigure
           |
           +----CH.ifa.draw.standard.CompositeFigure
                   |
                   +----CH.ifa.draw.standard.StandardDrawing

public class StandardDrawing
extends CompositeFigure
implements Drawing
The standard implementation of the Drawing interface.

See Also:
Drawing

Constructor Index

 o StandardDrawing()
Constructs the Drawing.

Method Index

 o addDrawingChangeListener(DrawingChangeListener)
Adds a listener for this drawing.
 o basicDisplayBox(Point, Point)
Sets the display box of a figure.
 o displayBox()
Gets the display box.
 o drawingChangeListeners()
Adds a listener for this drawing.
 o figureInvalidated(FigureChangeEvent)
Invalidates a rectangle and merges it with the existing damaged area.
 o figureRequestRemove(FigureChangeEvent)
Handles a removeFromDrawing request that is passed up the figure container hierarchy.
 o figureRequestUpdate(FigureChangeEvent)
Forces an update
 o handles()
Return's the figure's handles.
 o lock()
Acquires the drawing lock.
 o remove(Figure)
Removes the figure from the drawing and releases it.
 o removeDrawingChangeListener(DrawingChangeListener)
Removes a listener from this drawing.
 o unlock()
Releases the drawing lock.

Constructors

 o StandardDrawing
 public StandardDrawing()
Constructs the Drawing.

Methods

 o addDrawingChangeListener
 public void addDrawingChangeListener(DrawingChangeListener listener)
Adds a listener for this drawing.

 o removeDrawingChangeListener
 public void removeDrawingChangeListener(DrawingChangeListener listener)
Removes a listener from this drawing.

 o drawingChangeListeners
 public Enumeration drawingChangeListeners()
Adds a listener for this drawing.

 o remove
 public synchronized Figure remove(Figure figure)
Removes the figure from the drawing and releases it.

Overrides:
remove in class CompositeFigure
 o figureRequestRemove
 public void figureRequestRemove(FigureChangeEvent e)
Handles a removeFromDrawing request that is passed up the figure container hierarchy.

Overrides:
figureRequestRemove in class CompositeFigure
See Also:
FigureChangeListener
 o figureInvalidated
 public void figureInvalidated(FigureChangeEvent e)
Invalidates a rectangle and merges it with the existing damaged area.

Overrides:
figureInvalidated in class CompositeFigure
See Also:
FigureChangeListener
 o figureRequestUpdate
 public void figureRequestUpdate(FigureChangeEvent e)
Forces an update

Overrides:
figureRequestUpdate in class CompositeFigure
 o handles
 public Vector handles()
Return's the figure's handles. This is only used when a drawing is nested inside another drawing.

Overrides:
handles in class AbstractFigure
 o displayBox
 public Rectangle displayBox()
Gets the display box. This is the union of all figures.

Overrides:
displayBox in class AbstractFigure
 o basicDisplayBox
 public void basicDisplayBox(Point p1,
                             Point p2)
Sets the display box of a figure.

Overrides:
basicDisplayBox in class AbstractFigure
 o lock
 public synchronized void lock()
Acquires the drawing lock.

 o unlock
 public synchronized void unlock()
Releases the drawing lock.


All Packages  Class Hierarchy  This Package  Previous  Next  Index