Documentation of 'org.jhotdraw.draw.AbstractDrawing' Java class
AbstractDrawing
org.jhotdraw.draw

Class AbstractDrawing

    • Constructor Detail

      • AbstractDrawing

        public AbstractDrawing()
        Creates a new instance.
    • Method Detail

      • addUndoableEditListener

        public void addUndoableEditListener(javax.swing.event.UndoableEditListener l)
        Description copied from interface: Drawing
        Adds a listener for undooable edit events.
        Specified by:
        addUndoableEditListener in interface Drawing
      • removeUndoableEditListener

        public void removeUndoableEditListener(javax.swing.event.UndoableEditListener l)
        Description copied from interface: Drawing
        Removes a listener for undoable edit events.
        Specified by:
        removeUndoableEditListener in interface Drawing
      • fireUndoableEditHappened

        public void fireUndoableEditHappened(javax.swing.undo.UndoableEdit edit)
        Notify all listenerList that have registered interest for notification on this event type.
        Specified by:
        fireUndoableEditHappened in interface Drawing
      • getFontRenderContext

        public java.awt.font.FontRenderContext getFontRenderContext()
        Description copied from interface: Drawing
        Returns the font render context used to do text leyout and text drawing.
        Specified by:
        getFontRenderContext in interface Drawing
      • setFontRenderContext

        public void setFontRenderContext(java.awt.font.FontRenderContext frc)
        Description copied from interface: Drawing
        Sets the font render context used to do text leyout and text drawing.
        Specified by:
        setFontRenderContext in interface Drawing
      • getLock

        public java.lang.Object getLock()
        The drawing view synchronizes on the lock when drawing a drawing.
        Specified by:
        getLock in interface Drawing
      • addInputFormat

        public void addInputFormat(InputFormat format)
        Description copied from interface: Drawing
        Adds an input format to the drawing.
        Specified by:
        addInputFormat in interface Drawing
      • setOutputFormats

        public void setOutputFormats(java.util.List<OutputFormat> formats)
        Description copied from interface: Drawing
        Sets output formats for the Drawing in order of preferred formats.

        The output formats are used for saving the Drawing into a file and for cutting and copying Figures from the Drawing into the clipboard.

        Specified by:
        setOutputFormats in interface Drawing
      • setInputFormats

        public void setInputFormats(java.util.List<InputFormat> formats)
        Description copied from interface: Drawing
        Sets input formats for the Drawing in order of preferred formats.

        The input formats are used for loading the Drawing from a file and for pasting Figures from the clipboard into the Drawing.

        Specified by:
        setInputFormats in interface Drawing
      • getInputFormats

        public java.util.List<InputFormat> getInputFormats()
        Description copied from interface: Drawing
        Gets input formats for the Drawing in order of preferred formats.
        Specified by:
        getInputFormats in interface Drawing
      • getOutputFormats

        public java.util.List<OutputFormat> getOutputFormats()
        Description copied from interface: Drawing
        Gets output formats for the Drawing in order of preferred formats.
        Specified by:
        getOutputFormats in interface Drawing
      • getDrawing

        public Drawing getDrawing()
      • clone

        public AbstractDrawing clone()
        Description copied from interface: Figure
        Returns a clone of the figure, with clones of all aggregated figures, such as children and decorators. The cloned figure does not clone the list of FigureListeners from its original.
        Specified by:
        clone in interface Figure
        Overrides:
        clone in class AbstractAttributedCompositeFigure

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.