Class DrawToolFactory


  • public class DrawToolFactory
    extends java.lang.Object
    A factory that produces mouse-tools for drawing (ie adding) graphical element's to a canvas.
    Since:
    jpicedt 1.3.2
    Version:
    $Id: DrawToolFactory.java,v 1.29.2.1 2007/09/02 11:56:28 reynal Exp $
    Author:
    Sylvain Reynal
    • Constructor Detail

      • DrawToolFactory

        public DrawToolFactory​(EditorKit editorKit)
        Parameters:
        editorKit - the EditorKit
    • Method Detail

      • getAvailableToolNames

        public static java.lang.String[][] getAvailableToolNames()
        Returns an array of arrays of String containing the name of each tool this factory can produce, sorted by groups of tightly related tools. This may be useful to register tools with the hosting EditorKit, or to automate the building process for related PEAction's
      • createDrawTool

        public MouseTool createDrawTool​(java.lang.String type)
        Returns a MouseTool of the given type.
        Parameters:
        type - one of LINE, RECTANGLE,... constant fields.
        set - input attribute set for the element to be drawn.
        Since:
        jpicedt 1.3.2