Enum USegmentType
- java.lang.Object
-
- java.lang.Enum<USegmentType>
-
- net.sourceforge.plantuml.ugraphic.USegmentType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<USegmentType>
public enum USegmentType extends java.lang.Enum<USegmentType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SEG_ARCTO
SEG_CLOSE
SEG_CUBICTO
SEG_LINETO
SEG_MOVETO
SEG_QUADTO
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static USegmentType
getByCode(int code)
int
getNbPoints()
static USegmentType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static USegmentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SEG_MOVETO
public static final USegmentType SEG_MOVETO
-
SEG_LINETO
public static final USegmentType SEG_LINETO
-
SEG_QUADTO
public static final USegmentType SEG_QUADTO
-
SEG_CUBICTO
public static final USegmentType SEG_CUBICTO
-
SEG_CLOSE
public static final USegmentType SEG_CLOSE
-
SEG_ARCTO
public static final USegmentType SEG_ARCTO
-
-
Method Detail
-
values
public static USegmentType[] 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 (USegmentType c : USegmentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static USegmentType 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 namejava.lang.NullPointerException
- if the argument is null
-
getNbPoints
public int getNbPoints()
-
getByCode
public static USegmentType getByCode(int code)
-
-