Documentation of 'org.jhotdraw.samples.svg.SVGCreateFromFileTool' Java class
SVGCreateFromFileTool
org.jhotdraw.samples.svg

Class SVGCreateFromFileTool

  • All Implemented Interfaces:
    java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, Tool


    public class SVGCreateFromFileTool
    extends CreationTool
    A tool to create new figures from an input file. If the file holds a bitmap image, this tool creates a SVGImageFigure. If the file holds a SVG or a SVGZ image, ths tool creates a SVGGroupFigure.

    Immediately, after the ImageTool has been activated, it opens a JFileChooser, letting the user specify a file. The the user then performs the following mouse gesture:

    1. Press the mouse button and drag the mouse over the DrawingView. This defines the bounds of the created Figure.
    See Also:
    Serialized Form
    • Method Detail

      • setUseFileDialog

        public void setUseFileDialog(boolean newValue)
      • isUseFileDialog

        public boolean isUseFileDialog()
      • activate

        public void activate(DrawingEditor editor)
        Description copied from interface: Tool
        Activates the tool for the given editor. This method is called whenever the user switches to this tool.
        Specified by:
        activate in interface Tool
        Overrides:
        activate in class CreationTool

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.