|
JHotDraw 7.0.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jhotdraw.beans.AbstractBean
org.jhotdraw.draw.AbstractDrawing
public abstract class AbstractDrawing
AbstractDrawing.
| Field Summary | |
|---|---|
protected javax.swing.event.EventListenerList |
listenerList
|
| Fields inherited from class org.jhotdraw.beans.AbstractBean |
|---|
propertySupport |
| Constructor Summary | |
|---|---|
AbstractDrawing()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
add(Figure figure)
Calls basicAdd and then calls figure.addNotify and firesFigureAdded. |
void |
addAll(java.util.Collection<Figure> figures)
Adds a collection of figures to the drawing. |
void |
addDrawingListener(DrawingListener listener)
Adds a listener for this drawing. |
void |
addUndoableEditListener(javax.swing.event.UndoableEditListener l)
Adds a listener for undooable edit events. |
void |
basicAdd(Figure figure)
Reinserts a figure which was temporarily removed using basicRemove. |
void |
basicAddAll(java.util.Collection<Figure> figures)
Reinssets the specified figures which were temporarily basicRemoveed from the drawing. |
void |
basicRemoveAll(java.util.Collection<Figure> toBeOrphaned)
Removes the specified figures temporarily from the drawing. |
void |
clear()
Removes all figures. |
protected void |
fireAreaInvalidated(java.awt.geom.Rectangle2D.Double dirtyRegion)
Notify all listenerList that have registered interest for notification on this event type. |
protected void |
fireFigureAdded(Figure f)
Notify all listenerList that have registered interest for notification on this event type. |
protected void |
fireFigureRemoved(Figure f)
Notify all listenerList that have registered interest for notification on this event type. |
void |
fireUndoableEditHappened(javax.swing.undo.UndoableEdit edit)
Notify all listenerList that have registered interest for notification on this event type. |
int |
getFigureCount()
Gets the number of figures. |
java.awt.font.FontRenderContext |
getFontRenderContext()
Returns the font render context used to do text leyout and text drawing. |
java.lang.Object |
getLock()
The drawing view synchronizes on the lock when drawing a drawing. |
protected abstract int |
indexOf(Figure figure)
|
void |
read(DOMInput in)
|
void |
remove(Figure figure)
Calls basicRemove and then calls figure.addNotify and firesFigureAdded. |
void |
removeAll(java.util.Collection<Figure> toBeRemoved)
Removes the specified figures from the drawing. |
void |
removeDrawingListener(DrawingListener listener)
Removes a listener from this drawing. |
void |
removeUndoableEditListener(javax.swing.event.UndoableEditListener l)
Removes a listener for undoable edit events. |
void |
setFontRenderContext(java.awt.font.FontRenderContext frc)
Sets the font render context used to do text leyout and text drawing. |
void |
write(DOMOutput out)
|
| Methods inherited from class org.jhotdraw.beans.AbstractBean |
|---|
addPropertyChangeListener, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jhotdraw.draw.Drawing |
|---|
basicAdd, basicRemove, bringToFront, contains, draw, findFigure, findFigureExcept, findFigureExcept, findFigureInside, findFigures, findFiguresWithin, getFigures, getFiguresFrontToBack, sendToBack, sort |
| Field Detail |
|---|
protected javax.swing.event.EventListenerList listenerList
| Constructor Detail |
|---|
public AbstractDrawing()
| Method Detail |
|---|
public void addDrawingListener(DrawingListener listener)
Drawing
addDrawingListener in interface Drawingpublic void removeDrawingListener(DrawingListener listener)
Drawing
removeDrawingListener in interface Drawingpublic void addUndoableEditListener(javax.swing.event.UndoableEditListener l)
Drawing
addUndoableEditListener in interface Drawingpublic void removeUndoableEditListener(javax.swing.event.UndoableEditListener l)
Drawing
removeUndoableEditListener in interface Drawingpublic void addAll(java.util.Collection<Figure> figures)
DrawingaddNotify message to each figure
after it has been added.
addAll in interface Drawingfigures - to be added to the drawingpublic void clear()
clear in interface Drawingpublic int getFigureCount()
getFigureCount in interface Drawingpublic void removeAll(java.util.Collection<Figure> toBeRemoved)
DrawingremoveNotify message to each figure
before it is removed.
removeAll in interface DrawingtoBeRemoved - A collection of figures which are part of the drawing
and should be removedpublic void basicAddAll(java.util.Collection<Figure> figures)
DrawingaddNotify message to the figures.
basicAddAll in interface Drawingfigures - A collection of figures which are part of the drawing
and should be reinserted.Drawing.basicRemoveAll(Collection)public void basicRemoveAll(java.util.Collection<Figure> toBeOrphaned)
Drawing
basicRemoveAll in interface DrawingtoBeOrphaned - A collection of figures which are part of the drawing
and should be removedDrawing.basicAddAll(Collection)public final void add(Figure figure)
add in interface Drawingfigure - to be added to the drawingpublic void basicAdd(Figure figure)
DrawingaddNotify message to the figure.
basicAdd in interface Drawingfigure - that is part of the drawing and should be removedDrawing.basicRemove(Figure)public final void remove(Figure figure)
remove in interface Drawingfigure - that is part of the drawing and should be removedprotected abstract int indexOf(Figure figure)
protected void fireAreaInvalidated(java.awt.geom.Rectangle2D.Double dirtyRegion)
public void fireUndoableEditHappened(javax.swing.undo.UndoableEdit edit)
fireUndoableEditHappened in interface Drawingprotected void fireFigureAdded(Figure f)
protected void fireFigureRemoved(Figure f)
public java.awt.font.FontRenderContext getFontRenderContext()
Drawing
getFontRenderContext in interface Drawingpublic void setFontRenderContext(java.awt.font.FontRenderContext frc)
Drawing
setFontRenderContext in interface Drawing
public void read(DOMInput in)
throws java.io.IOException
read in interface DOMStorablejava.io.IOException
public void write(DOMOutput out)
throws java.io.IOException
write in interface DOMStorablejava.io.IOExceptionpublic java.lang.Object getLock()
getLock in interface Drawing
|
Copyright 1996-2006 © JHotDraw.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||