|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCH.ifa.draw.standard.AbstractFigure
CH.ifa.draw.standard.CompositeFigure
CH.ifa.draw.standard.StandardDrawing
public class StandardDrawing
The standard implementation of the Drawing interface.
Drawing
,
Serialized FormField Summary |
---|
Fields inherited from class CH.ifa.draw.standard.CompositeFigure |
---|
fFigures |
Fields inherited from interface CH.ifa.draw.framework.Figure |
---|
POPUP_MENU |
Constructor Summary | |
---|---|
StandardDrawing()
Constructs the Drawing. |
Method Summary | |
---|---|
void |
addDrawingChangeListener(DrawingChangeListener listener)
Adds a listener for this drawing. |
void |
basicDisplayBox(java.awt.Point p1,
java.awt.Point p2)
Sets the display box of a figure. |
java.awt.Rectangle |
displayBox()
Gets the display box. |
java.util.Enumeration |
drawingChangeListeners()
Adds a listener for this drawing. |
void |
figureInvalidated(FigureChangeEvent e)
Invalidates a rectangle and merges it with the existing damaged area. |
void |
figureRequestRemove(FigureChangeEvent e)
Handles a removeFromDrawing request that is passed up the figure container hierarchy. |
void |
figureRequestUpdate(FigureChangeEvent e)
Forces an update |
java.util.Vector |
handles()
Return's the figure's handles. |
void |
lock()
Acquires the drawing lock. |
Figure |
remove(Figure figure)
Removes the figure from the drawing and releases it. |
void |
removeDrawingChangeListener(DrawingChangeListener listener)
Removes a listener from this drawing. |
void |
unlock()
Releases the drawing lock. |
Methods inherited from class CH.ifa.draw.standard.CompositeFigure |
---|
add, addAll, basicMoveBy, bringToFront, draw, figureAt, figureChanged, figureCount, figureRemoved, figures, figuresReverse, findFigure, findFigure, findFigure, findFigureInside, findFigureInsideWithout, findFigureWithout, includes, orphan, orphanAll, read, release, removeAll, removeAll, replace, sendToBack, write |
Methods inherited from class CH.ifa.draw.standard.AbstractFigure |
---|
addFigureChangeListener, addToContainer, canConnect, center, changed, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, getAttribute, invalidate, isEmpty, listener, moveBy, removeFigureChangeListener, removeFromContainer, setAttribute, size, willChange |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface CH.ifa.draw.framework.Drawing |
---|
add, addAll, bringToFront, draw, figures, figuresReverse, findFigure, findFigure, findFigure, findFigureInside, findFigureInsideWithout, findFigureWithout, orphan, orphanAll, release, removeAll, replace, sendToBack |
Methods inherited from interface CH.ifa.draw.util.Storable |
---|
read, write |
Methods inherited from interface CH.ifa.draw.framework.FigureChangeListener |
---|
figureChanged, figureRemoved |
Constructor Detail |
---|
public StandardDrawing()
Method Detail |
---|
public void addDrawingChangeListener(DrawingChangeListener listener)
addDrawingChangeListener
in interface Drawing
public void removeDrawingChangeListener(DrawingChangeListener listener)
removeDrawingChangeListener
in interface Drawing
public java.util.Enumeration drawingChangeListeners()
drawingChangeListeners
in interface Drawing
public Figure remove(Figure figure)
remove
in interface Drawing
remove
in class CompositeFigure
CompositeFigure.removeAll(java.util.Vector)
public void figureRequestRemove(FigureChangeEvent e)
figureRequestRemove
in interface Drawing
figureRequestRemove
in interface FigureChangeListener
figureRequestRemove
in class CompositeFigure
FigureChangeListener
public void figureInvalidated(FigureChangeEvent e)
figureInvalidated
in interface Drawing
figureInvalidated
in interface FigureChangeListener
figureInvalidated
in class CompositeFigure
FigureChangeListener
public void figureRequestUpdate(FigureChangeEvent e)
figureRequestUpdate
in interface Drawing
figureRequestUpdate
in interface FigureChangeListener
figureRequestUpdate
in class CompositeFigure
FigureChangeListener
public java.util.Vector handles()
handles
in interface Figure
handles
in class AbstractFigure
Handle
public java.awt.Rectangle displayBox()
displayBox
in interface Figure
displayBox
in class AbstractFigure
Figure.basicDisplayBox(java.awt.Point, java.awt.Point)
public void basicDisplayBox(java.awt.Point p1, java.awt.Point p2)
AbstractFigure
basicDisplayBox
in interface Figure
basicDisplayBox
in class AbstractFigure
p1
- the new originp2
- the new cornerAbstractFigure.displayBox(java.awt.Point, java.awt.Point)
public void lock()
lock
in interface Drawing
public void unlock()
unlock
in interface Drawing
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |