Package org.gnome.gsk
Enum Class PathOperation
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<PathOperation>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum PathOperation
extends Enum<PathOperation>
implements Enumeration
Path operations are used to describe the segments of a
GskPath
.
More values may be added in the future.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA close operation ending the current contour with a line back to the starting point.A rational quadratic Bézier curve with 3 points describing the start point, control point and end point of the curve.A curve-to operation describing a cubic Bézier curve with 4 points describing the start point, the two control points and the end point of the curve.A line-to operation, with 2 points describing the start and end point of a straight line.A move-to operation, with 1 point describing the target point.A curve-to operation describing a quadratic Bézier curve with 3 points describing the start point, the control point and the end point of the curve. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the PathOperation classint
getValue()
Get the numeric value of this enumstatic PathOperation
of
(int value) Create a new PathOperation for the provided valuestatic PathOperation
Returns the enum constant of this class with the specified name.static PathOperation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MOVE
A move-to operation, with 1 point describing the target point. -
CLOSE
A close operation ending the current contour with a line back to the starting point. Two points describe the start and end of the line. -
LINE
A line-to operation, with 2 points describing the start and end point of a straight line. -
QUAD
A curve-to operation describing a quadratic Bézier curve with 3 points describing the start point, the control point and the end point of the curve. -
CUBIC
A curve-to operation describing a cubic Bézier curve with 4 points describing the start point, the two control points and the end point of the curve. -
CONIC
A rational quadratic Bézier curve with 3 points describing the start point, control point and end point of the curve. A weight for the curve will be passed, too.
-
-
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
-
of
Create a new PathOperation for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-
getType
-