Enum Class AxisOrientation

java.lang.Object
java.lang.Enum<AxisOrientation>
org.apache.fop.afp.modca.AxisOrientation
All Implemented Interfaces:
Serializable, Comparable<AxisOrientation>, Constable

public enum AxisOrientation extends Enum<AxisOrientation>
Represents the 4 bytes that specify the axis-area rotation reference coordinate system
  • Enum Constant Details

  • Field Details

    • xoaOrent

      private final Rotation xoaOrent
      The object area's X-axis rotation from the X axis of the reference coordinate system
    • yoaOrent

      private final Rotation yoaOrent
      The object area's Y-axis rotation from the Y axis of the reference coordinate system
  • Constructor Details

    • AxisOrientation

      private AxisOrientation(Rotation xoaOrent, Rotation yoaOrent)
  • Method Details

    • values

      public static AxisOrientation[] 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

      public static AxisOrientation valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • writeTo

      public void writeTo(byte[] out, int offset)
    • writeTo

      public void writeTo(OutputStream stream) throws IOException
      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

      public static AxisOrientation getRightHandedAxisOrientationFor(int orientation)
      Gets the right-handed axis orientation object for a given orientation in degrees.
      Parameters:
      orientation - the orientation in degrees
      Returns:
      the AxisOrientation object