Package eu.webtoolkit.jwt
Enum Class SegmentType
- All Implemented Interfaces:
Serializable
,Comparable<SegmentType>
,Constable
The segment type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionthe sweep of an arccenter of an arcradius of an arc Always followed by an ArcAngleSweep segmentfirst control point of cubic bezier curve.second control point of cubic bezier curveend point of cubic bezier curvelineTo segmentmoveTo segmentcontrol point of quadratic bezier curveend point of quadratic bezier curve -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Returns the numerical representation of this enum.static SegmentType
Returns the enum constant of this class with the specified name.static SegmentType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MoveTo
moveTo segment -
LineTo
lineTo segment -
CubicC1
first control point of cubic bezier curve.Always followed by a CubicC2 and CubicEnd segment
-
CubicC2
second control point of cubic bezier curveAlways followed by a CubicEnd segment
-
CubicEnd
end point of cubic bezier curve -
QuadC
control point of quadratic bezier curve -
QuadEnd
end point of quadratic bezier curve -
ArcC
center of an arcAlways followed by an ArcR and ArcAngleSweep segment
-
ArcR
radius of an arc Always followed by an ArcAngleSweep segment -
ArcAngleSweep
the sweep of an arcx = startAngle, y = spanAngle
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue()Returns the numerical representation of this enum.
-