public abstract class AbstractDrawing extends AbstractAttributedCompositeFigure implements Drawing
Drawing.AbstractCompositeFigure.EventHandlercachedBounds, cachedDrawingArea, children, eventHandler, layouterchangingDepth, listenerListpropertySupportLAYOUT_INSETSCONNECTABLE_PROPERTY, REMOVABLE_PROPERTY, SELECTABLE_PROPERTY, TRANSFORMABLE_PROPERTY| Constructor and Description |
|---|
AbstractDrawing()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
AbstractDrawing |
clone()
Returns a clone of the figure, with clones of all aggregated figures,
such as children and decorators.
|
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) |
applyAttributesTo, drawChildren, drawFigure, drawFill, drawStroke, drawText, get, getAttributeKey, getAttributes, getAttributesRestoreData, getFigureDrawBounds, getStroke, getStrokeMiterLimitFactor, hasAttribute, isAttributeEnabled, readAttributes, removeAttribute, restoreAttributesTo, set, setAttributeEnabled, setAttributeOnChildren, setAttributes, writeAttributesadd, add, addAll, addAll, addCompositeFigureListener, addNotify, basicAdd, basicAdd, basicAddAll, basicRemove, basicRemoveAll, basicRemoveAllChildren, basicRemoveChild, bringToFront, changed, contains, contains, createEventHandler, createHandles, draw, findChild, findChildIndex, findFigureInside, fireFigureAdded, fireFigureRemoved, getBounds, getChild, getChildCount, getChildren, getChildrenFrontToBack, getDecomposition, getDrawingArea, getLayouter, getPreferredSize, getTransformRestoreData, indexOf, invalidate, layout, remove, removeAll, removeAllChildren, removeChild, removeCompositeFigureListener, removeNotify, restoreTransformTo, sendToBack, setBounds, setLayouter, transform, validate, willChangeaddFigureListener, findCompatibleConnector, findConnector, fireAreaInvalidated, fireAreaInvalidated, fireAreaInvalidated, fireAttributeChanged, fireFigureAdded, fireFigureChanged, fireFigureChanged, fireFigureChanged, fireFigureHandlesChanged, fireFigureRemoved, fireFigureRequestRemove, getActions, getChangingDepth, getConnectors, getCursor, getEndPoint, getLayer, getStartPoint, getTool, getToolTipText, handleDrop, handleMouseClick, includes, isChanging, isConnectable, isRemovable, isSelectable, isTransformable, isVisible, remap, removeFigureListener, requestRemove, setBounds, setConnectable, setRemovable, setSelectable, setTransformable, setVisible, toStringaddPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListenerequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitadd, add, addAll, addAll, basicAdd, basicAdd, basicAddAll, basicRemove, basicRemoveAll, bringToFront, drawCanvas, findFigure, findFigureBehind, findFigureBehind, findFigureExcept, findFigureExcept, findFigureInside, findFigures, findFiguresWithin, getFiguresFrontToBack, remove, removeAll, sendToBack, sortaddCompositeFigureListener, basicRemoveAllChildren, basicRemoveChild, contains, getChild, getChildCount, getChildren, getLayouter, indexOf, layout, removeAllChildren, removeChild, removeCompositeFigureListener, setLayouteraddFigureListener, addNotify, addPropertyChangeListener, changed, contains, createHandles, draw, findCompatibleConnector, findConnector, get, getActions, getAttributes, getAttributesRestoreData, getBounds, getConnectors, getCursor, getDecomposition, getDrawingArea, getEndPoint, getLayer, getPreferredSize, getStartPoint, getTool, getToolTipText, getTransformRestoreData, handleDrop, handleMouseClick, includes, isConnectable, isRemovable, isSelectable, isTransformable, isVisible, remap, removeFigureListener, removeNotify, removePropertyChangeListener, requestRemove, restoreAttributesTo, restoreTransformTo, set, setBounds, transform, willChangepublic void addUndoableEditListener(javax.swing.event.UndoableEditListener l)
DrawingaddUndoableEditListener in interface Drawingpublic void removeUndoableEditListener(javax.swing.event.UndoableEditListener l)
DrawingremoveUndoableEditListener in interface Drawingpublic void fireUndoableEditHappened(javax.swing.undo.UndoableEdit edit)
fireUndoableEditHappened in interface DrawingfireUndoableEditHappened in class AbstractFigurepublic java.awt.font.FontRenderContext getFontRenderContext()
DrawinggetFontRenderContext in interface DrawinggetFontRenderContext in class AbstractFigurepublic void setFontRenderContext(java.awt.font.FontRenderContext frc)
DrawingsetFontRenderContext in interface Drawingpublic void read(DOMInput in) throws java.io.IOException
read in interface DOMStorableread in class AbstractAttributedCompositeFigurejava.io.IOExceptionpublic 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)
DrawingaddInputFormat in interface Drawingpublic void addOutputFormat(OutputFormat format)
DrawingaddOutputFormat 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()
DrawinggetInputFormats in interface Drawingpublic java.util.List<OutputFormat> getOutputFormats()
DrawinggetOutputFormats in interface Drawingpublic Drawing getDrawing()
getDrawing in class AbstractFigurepublic AbstractDrawing clone()
Figureclone in interface Figureclone in class AbstractAttributedCompositeFigure