public abstract class AbstractDrawing extends AbstractAttributedCompositeFigure implements Drawing
Drawing
.AbstractCompositeFigure.EventHandler
cachedBounds, cachedDrawingArea, children, eventHandler, layouter
changingDepth, listenerList
propertySupport
LAYOUT_INSETS
CONNECTABLE_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, writeAttributes
add, 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, willChange
addFigureListener, 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, toString
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, basicAdd, basicAdd, basicAddAll, basicRemove, basicRemoveAll, bringToFront, drawCanvas, findFigure, findFigureBehind, findFigureBehind, findFigureExcept, findFigureExcept, findFigureInside, findFigures, findFiguresWithin, getFiguresFrontToBack, remove, removeAll, sendToBack, sort
addCompositeFigureListener, basicRemoveAllChildren, basicRemoveChild, contains, getChild, getChildCount, getChildren, getLayouter, indexOf, layout, removeAllChildren, removeChild, removeCompositeFigureListener, setLayouter
addFigureListener, 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, willChange
public void addUndoableEditListener(javax.swing.event.UndoableEditListener l)
Drawing
addUndoableEditListener
in interface Drawing
public void removeUndoableEditListener(javax.swing.event.UndoableEditListener l)
Drawing
removeUndoableEditListener
in interface Drawing
public void fireUndoableEditHappened(javax.swing.undo.UndoableEdit edit)
fireUndoableEditHappened
in interface Drawing
fireUndoableEditHappened
in class AbstractFigure
public java.awt.font.FontRenderContext getFontRenderContext()
Drawing
getFontRenderContext
in interface Drawing
getFontRenderContext
in class AbstractFigure
public void setFontRenderContext(java.awt.font.FontRenderContext frc)
Drawing
setFontRenderContext
in interface Drawing
public void read(DOMInput in) throws java.io.IOException
read
in interface DOMStorable
read
in class AbstractAttributedCompositeFigure
java.io.IOException
public void write(DOMOutput out) throws java.io.IOException
write
in interface DOMStorable
write
in class AbstractAttributedCompositeFigure
java.io.IOException
public java.lang.Object getLock()
getLock
in interface Drawing
getLock
in class AbstractFigure
public void addInputFormat(InputFormat format)
Drawing
addInputFormat
in interface Drawing
public void addOutputFormat(OutputFormat format)
Drawing
addOutputFormat
in interface Drawing
public void setOutputFormats(java.util.List<OutputFormat> formats)
Drawing
The 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 Drawing
public void setInputFormats(java.util.List<InputFormat> formats)
Drawing
The input formats are used for loading the Drawing from a file and for pasting Figures from the clipboard into the Drawing.
setInputFormats
in interface Drawing
public java.util.List<InputFormat> getInputFormats()
Drawing
getInputFormats
in interface Drawing
public java.util.List<OutputFormat> getOutputFormats()
Drawing
getOutputFormats
in interface Drawing
public Drawing getDrawing()
getDrawing
in class AbstractFigure
public AbstractDrawing clone()
Figure
clone
in interface Figure
clone
in class AbstractAttributedCompositeFigure