|
JHotDraw 7.1 | ||||||||
| 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.AbstractFigure
org.jhotdraw.draw.AbstractCompositeFigure
org.jhotdraw.draw.AbstractAttributedCompositeFigure
org.jhotdraw.draw.AbstractDrawing
public abstract class AbstractDrawing
AbstractDrawing.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jhotdraw.draw.AbstractCompositeFigure |
|---|
AbstractCompositeFigure.EventHandler |
| Field Summary |
|---|
| Fields inherited from class org.jhotdraw.draw.AbstractCompositeFigure |
|---|
cachedBounds, cachedDrawingArea, children, eventHandler, layouter |
| Fields inherited from class org.jhotdraw.draw.AbstractFigure |
|---|
changingDepth, listenerList |
| Fields inherited from class org.jhotdraw.beans.AbstractBean |
|---|
propertySupport |
| Fields inherited from interface org.jhotdraw.draw.CompositeFigure |
|---|
LAYOUT_INSETS |
| Constructor Summary | |
|---|---|
AbstractDrawing()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
addInputFormat(InputFormat format)
Adds an input format to the drawing. |
void |
addOutputFormat(OutputFormat format)
Adds an output format to the drawing. |
void |
addUndoableEditListener(javax.swing.event.UndoableEditListener l)
Adds a listener for undooable edit events. |
void |
fireUndoableEditHappened(javax.swing.undo.UndoableEdit edit)
Notify all listenerList that have registered interest for notification on this event type. |
Drawing |
getDrawing()
|
java.awt.font.FontRenderContext |
getFontRenderContext()
Returns the font render context used to do text leyout and text drawing. |
java.util.List<InputFormat> |
getInputFormats()
Gets input formats for the Drawing in order of preferred formats. |
java.lang.Object |
getLock()
The drawing view synchronizes on the lock when drawing a drawing. |
java.util.List<OutputFormat> |
getOutputFormats()
Gets output formats for the Drawing in order of preferred formats. |
void |
read(DOMInput in)
|
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 |
setInputFormats(java.util.List<InputFormat> formats)
Sets input formats for the Drawing in order of preferred formats. |
void |
setOutputFormats(java.util.List<OutputFormat> formats)
Sets output formats for the Drawing in order of preferred formats. |
void |
write(DOMOutput out)
|
| Methods inherited from class org.jhotdraw.beans.AbstractBean |
|---|
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jhotdraw.draw.Drawing |
|---|
add, add, addAll, addAll, basicAdd, basicAdd, basicAddAll, basicRemove, basicRemoveAll, bringToFront, draw, findFigure, findFigureBehind, findFigureBehind, findFigureExcept, findFigureExcept, findFigureInside, findFigures, findFiguresWithin, getCanvasSize, getChildCount, getChildren, getFiguresFrontToBack, indexOf, remove, removeAll, sendToBack, setCanvasSize, sort |
| Methods inherited from interface org.jhotdraw.draw.CompositeFigure |
|---|
addCompositeFigureListener, basicRemoveAllChildren, basicRemoveChild, contains, getChild, getLayouter, layout, removeAllChildren, removeChild, removeCompositeFigureListener, setLayouter |
| Methods inherited from interface org.jhotdraw.draw.Figure |
|---|
addFigureListener, addNotify, canConnect, changed, clone, contains, createHandles, findCompatibleConnector, findConnector, getActions, getAttribute, getAttributes, getAttributesRestoreData, getBounds, getConnectors, getCursor, getDecomposition, getDrawingArea, getEndPoint, getLayer, getPreferredSize, getStartPoint, getTool, getToolTipText, getTransformRestoreData, handleDrop, handleMouseClick, includes, isRemovable, isSelectable, isTransformable, isVisible, remap, removeFigureListener, removeNotify, requestRemove, restoreAttributesTo, restoreTransformTo, setAttribute, setBounds, transform, willChange |
| Constructor Detail |
|---|
public AbstractDrawing()
| Method Detail |
|---|
public 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 fireUndoableEditHappened(javax.swing.undo.UndoableEdit edit)
fireUndoableEditHappened in interface DrawingfireUndoableEditHappened in class AbstractFigurepublic java.awt.font.FontRenderContext getFontRenderContext()
Drawing
getFontRenderContext in interface DrawinggetFontRenderContext in class AbstractFigurepublic void setFontRenderContext(java.awt.font.FontRenderContext frc)
Drawing
setFontRenderContext in interface Drawing
public void read(DOMInput in)
throws java.io.IOException
read in interface DOMStorableread in class AbstractAttributedCompositeFigurejava.io.IOException
public void write(DOMOutput out)
throws java.io.IOException
write in interface DOMStorablewrite in class AbstractAttributedCompositeFigurejava.io.IOExceptionpublic java.lang.Object getLock()
getLock in interface DrawinggetLock in class AbstractFigurepublic void addInputFormat(InputFormat format)
Drawing
addInputFormat in interface Drawingpublic void addOutputFormat(OutputFormat format)
Drawing
addOutputFormat in interface Drawingpublic void setOutputFormats(java.util.List<OutputFormat> formats)
DrawingThe output formats are used for saving the Drawing into a file and for cutting and copying Figures from the Drawing into the clipboard.
setOutputFormats in interface Drawingpublic void setInputFormats(java.util.List<InputFormat> formats)
DrawingThe input formats are used for loading the Drawing from a file and for pasting Figures from the clipboard into the Drawing.
setInputFormats in interface Drawingpublic java.util.List<InputFormat> getInputFormats()
Drawing
getInputFormats in interface Drawingpublic java.util.List<OutputFormat> getOutputFormats()
Drawing
getOutputFormats in interface Drawingpublic Drawing getDrawing()
getDrawing in class AbstractFigure
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||