Package com.itextpdf.svg
Enum MarkerVertexType
- java.lang.Object
-
- java.lang.Enum<MarkerVertexType>
-
- com.itextpdf.svg.MarkerVertexType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MarkerVertexType>
public enum MarkerVertexType extends java.lang.Enum<MarkerVertexType>
Defines a property of markable elements (<path>, <line>, <polyline> or <polygon>) which is used to determine at which verticies a marker should be drawn.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MARKER_END
Specifies that marker will be drawn only at the last vertex of element.MARKER_MID
Specifies that marker will be drawn at every vertex except the first and last.MARKER_START
Specifies that marker will be drawn only at the first vertex of element.
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
-
Constructor Summary
Constructors Modifier Constructor Description private
MarkerVertexType(java.lang.String s)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
static MarkerVertexType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MarkerVertexType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MARKER_START
public static final MarkerVertexType MARKER_START
Specifies that marker will be drawn only at the first vertex of element.
-
MARKER_MID
public static final MarkerVertexType MARKER_MID
Specifies that marker will be drawn at every vertex except the first and last.
-
MARKER_END
public static final MarkerVertexType MARKER_END
Specifies that marker will be drawn only at the last vertex of element.
-
-
Method Detail
-
values
public static MarkerVertexType[] 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 (MarkerVertexType c : MarkerVertexType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MarkerVertexType 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<MarkerVertexType>
-
-