jpicedt.graphic.toolkit
Class DrawToolFactory
java.lang.Object
jpicedt.graphic.toolkit.DrawToolFactory
public class DrawToolFactory
- extends 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.44 2013/03/27 06:58:11 vincentb1 Exp $
- Author:
- Sylvain Reynal
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LINE
public static final String LINE
- See Also:
- Constant Field Values
RECTANGLE
public static final String RECTANGLE
- See Also:
- Constant Field Values
PARALLELOGRAM
public static final String PARALLELOGRAM
- See Also:
- Constant Field Values
ELLIPSE_FROM_PARALLELO
public static final String ELLIPSE_FROM_PARALLELO
- See Also:
- Constant Field Values
ARC_CHORD_FROM_PARALLELO
public static final String ARC_CHORD_FROM_PARALLELO
- See Also:
- Constant Field Values
ARC_PIE_FROM_PARALLELO
public static final String ARC_PIE_FROM_PARALLELO
- See Also:
- Constant Field Values
ARC_OPEN_FROM_PARALLELO
public static final String ARC_OPEN_FROM_PARALLELO
- See Also:
- Constant Field Values
ELLIPSE
public static final String ELLIPSE
- See Also:
- Constant Field Values
ARC_CHORD
public static final String ARC_CHORD
- See Also:
- Constant Field Values
ARC_PIE
public static final String ARC_PIE
- See Also:
- Constant Field Values
ARC_OPEN
public static final String ARC_OPEN
- See Also:
- Constant Field Values
CIRCLE_FROM_3PTS
public static final String CIRCLE_FROM_3PTS
- See Also:
- Constant Field Values
ARC_CHORD_FROM_3PTS
public static final String ARC_CHORD_FROM_3PTS
- See Also:
- Constant Field Values
ARC_PIE_FROM_3PTS
public static final String ARC_PIE_FROM_3PTS
- See Also:
- Constant Field Values
ARC_OPEN_FROM_3PTS
public static final String ARC_OPEN_FROM_3PTS
- See Also:
- Constant Field Values
MULTI_CURVE
public static final String MULTI_CURVE
- See Also:
- Constant Field Values
CLOSED_MULTI_CURVE
public static final String CLOSED_MULTI_CURVE
- See Also:
- Constant Field Values
SMOOTH_POLY
public static final String SMOOTH_POLY
- See Also:
- Constant Field Values
CLOSED_SMOOTH_POLY
public static final String CLOSED_SMOOTH_POLY
- See Also:
- Constant Field Values
PS_CURVE
public static final String PS_CURVE
- See Also:
- Constant Field Values
CLOSED_PS_CURVE
public static final String CLOSED_PS_CURVE
- See Also:
- Constant Field Values
TEXT
public static final String TEXT
- See Also:
- Constant Field Values
DrawToolFactory
public DrawToolFactory(EditorKit editorKit)
- Parameters:
editorKit
- the EditorKit
getAvailableToolNames
public static 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(String type)
- Returns a
MouseTool
of the given type.
- Parameters:
type
- one of LINE, RECTANGLE,… constant fields.- Since:
- jpicedt 1.3.2
Submit a bug : syd@jpicedt.org