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
-
StandardDrawing()
- Constructs the Drawing.
-
addDrawingChangeListener(DrawingChangeListener)
- Adds a listener for this drawing.
-
basicDisplayBox(Point, Point)
- Sets the display box of a figure.
-
displayBox()
- Gets the display box.
-
drawingChangeListeners()
- Adds a listener for this drawing.
-
figureInvalidated(FigureChangeEvent)
- Invalidates a rectangle and merges it with the
existing damaged area.
-
figureRequestRemove(FigureChangeEvent)
- Handles a removeFromDrawing request that
is passed up the figure container hierarchy.
-
figureRequestUpdate(FigureChangeEvent)
- Forces an update
-
handles()
- Return's the figure's handles.
-
lock()
- Acquires the drawing lock.
-
remove(Figure)
- Removes the figure from the drawing and releases it.
-
removeDrawingChangeListener(DrawingChangeListener)
- Removes a listener from this drawing.
-
unlock()
- Releases the drawing lock.
StandardDrawing
public StandardDrawing()
- Constructs the Drawing.
addDrawingChangeListener
public void addDrawingChangeListener(DrawingChangeListener listener)
- Adds a listener for this drawing.
removeDrawingChangeListener
public void removeDrawingChangeListener(DrawingChangeListener listener)
- Removes a listener from this drawing.
drawingChangeListeners
public Enumeration drawingChangeListeners()
- Adds a listener for this drawing.
remove
public synchronized Figure remove(Figure figure)
- Removes the figure from the drawing and releases it.
- Overrides:
- remove in class CompositeFigure
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
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
figureRequestUpdate
public void figureRequestUpdate(FigureChangeEvent e)
- Forces an update
- Overrides:
- figureRequestUpdate in class CompositeFigure
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
displayBox
public Rectangle displayBox()
- Gets the display box. This is the union of all figures.
- Overrides:
- displayBox in class AbstractFigure
basicDisplayBox
public void basicDisplayBox(Point p1,
Point p2)
- Sets the display box of a figure.
- Overrides:
- basicDisplayBox in class AbstractFigure
lock
public synchronized void lock()
- Acquires the drawing lock.
unlock
public synchronized void unlock()
- Releases the drawing lock.
All Packages Class Hierarchy This Package Previous Next Index