net.sf.latexdraw.instruments
Enum EditionChoice
java.lang.Object
java.lang.Enum<EditionChoice>
net.sf.latexdraw.instruments.EditionChoice
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<EditionChoice>
public enum EditionChoice
- extends java.lang.Enum<EditionChoice>
Defines the choices of edition of the canvas.
This file is part of LaTeXDraw
Copyright (c) 2005-2012 Arnaud BLOUIN
LaTeXDraw is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
LaTeXDraw is distributed without any warranty; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
05/14/10
- Since:
- 3.0
- Version:
- 3.0
- Author:
- Arnaud BLOUIN
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
RECT
public static final EditionChoice RECT
DOT
public static final EditionChoice DOT
SQUARE
public static final EditionChoice SQUARE
RHOMBUS
public static final EditionChoice RHOMBUS
FREE_HAND
public static final EditionChoice FREE_HAND
TRIANGLE
public static final EditionChoice TRIANGLE
LINES
public static final EditionChoice LINES
CIRCLE
public static final EditionChoice CIRCLE
GRID
public static final EditionChoice GRID
AXES
public static final EditionChoice AXES
ELLIPSE
public static final EditionChoice ELLIPSE
POLYGON
public static final EditionChoice POLYGON
WEDGE
public static final EditionChoice WEDGE
CIRCLE_ARC
public static final EditionChoice CIRCLE_ARC
CHORD
public static final EditionChoice CHORD
BEZIER_CURVE
public static final EditionChoice BEZIER_CURVE
BEZIER_CURVE_CLOSED
public static final EditionChoice BEZIER_CURVE_CLOSED
TEXT
public static final EditionChoice TEXT
PICTURE
public static final EditionChoice PICTURE
values
public static EditionChoice[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (EditionChoice c : EditionChoice.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static EditionChoice valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
createShapeInstance
public abstract IShape createShapeInstance()
- Returns:
- A new shape instance corresponding to the editing choice.
- Since:
- 3.0