Package org.apache.fop.afp.modca
Enum AxisOrientation
- All Implemented Interfaces:
Serializable
,Comparable<AxisOrientation>
,java.lang.constant.Constable
Represents the 4 bytes that specify the axis-area rotation reference coordinate system
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AxisOrientation
getRightHandedAxisOrientationFor
(int orientation) Gets the right-handed axis orientation object for a given orientation in degrees.static AxisOrientation
Returns the enum constant of this type with the specified name.static AxisOrientation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.void
writeTo
(byte[] out, int offset) void
writeTo
(OutputStream stream) Writes the axis orientation area bytes to the output stream.
-
Enum Constant Details
-
RIGHT_HANDED_0
-
RIGHT_HANDED_90
-
RIGHT_HANDED_180
-
RIGHT_HANDED_270
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
writeTo
public void writeTo(byte[] out, int offset) -
writeTo
Writes the axis orientation area bytes to the output stream.- Parameters:
stream
- the output stream to write to- Throws:
IOException
- if an I/O error occurs
-
getRightHandedAxisOrientationFor
Gets the right-handed axis orientation object for a given orientation in degrees.- Parameters:
orientation
- the orientation in degrees- Returns:
- the
AxisOrientation
object
-