|
|||||||||
| 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 Form| Field 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 Drawingpublic void removeDrawingChangeListener(DrawingChangeListener listener)
removeDrawingChangeListener in interface Drawingpublic java.util.Enumeration drawingChangeListeners()
drawingChangeListeners in interface Drawingpublic Figure remove(Figure figure)
remove in interface Drawingremove in class CompositeFigureCompositeFigure.removeAll(java.util.Vector)public void figureRequestRemove(FigureChangeEvent e)
figureRequestRemove in interface DrawingfigureRequestRemove in interface FigureChangeListenerfigureRequestRemove in class CompositeFigureFigureChangeListenerpublic void figureInvalidated(FigureChangeEvent e)
figureInvalidated in interface DrawingfigureInvalidated in interface FigureChangeListenerfigureInvalidated in class CompositeFigureFigureChangeListenerpublic void figureRequestUpdate(FigureChangeEvent e)
figureRequestUpdate in interface DrawingfigureRequestUpdate in interface FigureChangeListenerfigureRequestUpdate in class CompositeFigureFigureChangeListenerpublic java.util.Vector handles()
handles in interface Figurehandles in class AbstractFigureHandlepublic java.awt.Rectangle displayBox()
displayBox in interface FiguredisplayBox in class AbstractFigureFigure.basicDisplayBox(java.awt.Point, java.awt.Point)
public void basicDisplayBox(java.awt.Point p1,
java.awt.Point p2)
AbstractFigure
basicDisplayBox in interface FigurebasicDisplayBox in class AbstractFigurep1 - the new originp2 - the new cornerAbstractFigure.displayBox(java.awt.Point, java.awt.Point)public void lock()
lock in interface Drawingpublic void unlock()
unlock in interface Drawing
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||