|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jhotdraw.standard.AbstractFigure
org.jhotdraw.standard.CompositeFigure
org.jhotdraw.standard.StandardDrawing
public class StandardDrawing
The standard implementation of the Drawing interface.
Drawing
,
Serialized FormField Summary |
---|
Fields inherited from interface org.jhotdraw.framework.Figure |
---|
POPUP_MENU |
Constructor Summary | |
---|---|
StandardDrawing()
Constructs the Drawing. |
Method Summary | |
---|---|
Figure |
add(Figure figure)
Adds a figure to the list of figures. |
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.Iterator |
drawingChangeListeners()
Gets an enumeration with all listener for this drawing. |
void |
figureInvalidated(FigureChangeEvent e)
Invalidates a rectangle and merges it with the existing damaged area. |
void |
figureRequestUpdate(FigureChangeEvent e)
Forces an update of the drawing change listeners. |
void |
fireDrawingTitleChanged()
Forces an update of the drawing change listeners. |
java.lang.String |
getTitle()
|
HandleEnumeration |
handles()
Return's the figure's handles. |
void |
lock()
Acquires the drawing lock. |
Figure |
orphan(Figure figure)
Removes a figure from the figure list, but doesn't release it. |
void |
removeDrawingChangeListener(DrawingChangeListener listener)
Removes a listener from this drawing. |
void |
setTitle(java.lang.String newTitle)
|
void |
unlock()
Releases the drawing lock. |
Methods inherited from class org.jhotdraw.standard.CompositeFigure |
---|
addAll, addAll, bringToFront, containsFigure, draw, draw, figureAt, figureChanged, figureCount, figureRemoved, figureRequestRemove, figures, figures, figuresReverse, findFigure, findFigure, findFigure, findFigureInside, findFigureInsideWithout, findFigureWithout, getFigureFromLayer, getLayer, includes, init, orphanAll, orphanAll, read, release, remove, removeAll, removeAll, removeAll, replace, sendToBack, sendToLayer, write |
Methods inherited from class org.jhotdraw.standard.AbstractFigure |
---|
addDependendFigure, addFigureChangeListener, addToContainer, canConnect, center, changed, clone, connectedTextLocator, connectionInsets, connectorAt, connectorVisibility, containsPoint, decompose, displayBox, displayBox, getAttribute, getAttribute, getDecoratedFigure, getDependendFigures, getTextHolder, getZValue, invalidate, isEmpty, listener, moveBy, removeDependendFigure, removeFigureChangeListener, removeFromContainer, setAttribute, setAttribute, setZValue, size, visit, willChange |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jhotdraw.framework.Drawing |
---|
addAll, addAll, bringToFront, containsFigure, draw, draw, figures, figures, figuresReverse, findFigure, findFigure, findFigure, findFigureInside, findFigureInsideWithout, findFigureWithout, getFigureFromLayer, getLayer, includes, init, orphanAll, orphanAll, release, remove, removeAll, removeAll, replace, sendToBack, sendToLayer |
Methods inherited from interface org.jhotdraw.util.Storable |
---|
read, write |
Methods inherited from interface org.jhotdraw.framework.FigureChangeListener |
---|
figureChanged, figureRemoved, figureRequestRemove |
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.Iterator drawingChangeListeners()
drawingChangeListeners
in interface Drawing
public Figure orphan(Figure figure)
orphan
in interface Drawing
orphan
in class CompositeFigure
figure
- that is part of the drawing and should be addedpublic Figure add(Figure figure)
CompositeFigure
add
in interface Drawing
add
in class CompositeFigure
figure
- to be added to the drawing
public void figureInvalidated(FigureChangeEvent e)
figureInvalidated
in interface FigureChangeListener
figureInvalidated
in class CompositeFigure
FigureChangeListener
public void fireDrawingTitleChanged()
public void figureRequestUpdate(FigureChangeEvent e)
figureRequestUpdate
in interface FigureChangeListener
figureRequestUpdate
in class CompositeFigure
FigureChangeListener
public HandleEnumeration 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
public java.lang.String getTitle()
getTitle
in interface Drawing
public void setTitle(java.lang.String newTitle)
setTitle
in interface Drawing
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |