net.sf.latexdraw.glib.models.interfaces
Enum IFreehand.FreeHandType
java.lang.Object
java.lang.Enum<IFreehand.FreeHandType>
net.sf.latexdraw.glib.models.interfaces.IFreehand.FreeHandType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<IFreehand.FreeHandType>
- Enclosing interface:
- IFreehand
public static enum IFreehand.FreeHandType
- extends java.lang.Enum<IFreehand.FreeHandType>
The different types of freehand.
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 |
CURVES
public static final IFreehand.FreeHandType CURVES
LINES
public static final IFreehand.FreeHandType LINES
values
public static IFreehand.FreeHandType[] 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 (IFreehand.FreeHandType c : IFreehand.FreeHandType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static IFreehand.FreeHandType 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
getType
public static IFreehand.FreeHandType getType(java.lang.String type)
- Parameters:
type
- The type to check.
- Returns:
- The corresponding type. Returns CURVES by default.
- Since:
- 3.0