Enum AnchorPosition

java.lang.Object
java.lang.Enum<AnchorPosition>
org.scilab.forge.scirenderer.texture.AnchorPosition
All Implemented Interfaces:
Serializable, Comparable<AnchorPosition>, java.lang.constant.Constable

public enum AnchorPosition extends Enum<AnchorPosition>
This is an enumeration of possible sprite anchor position.
Author:
Pierre Lando
  • Enum Constant Details

    • UPPER_LEFT

      public static final AnchorPosition UPPER_LEFT
      Anchor is in the upper left sprite corner.
    • UPPER_RIGHT

      public static final AnchorPosition UPPER_RIGHT
      Anchor is in the upper right sprite corner.
    • LOWER_LEFT

      public static final AnchorPosition LOWER_LEFT
      Anchor is in the lower left sprite corner.
    • LOWER_RIGHT

      public static final AnchorPosition LOWER_RIGHT
      Anchor is in the lower right sprite corner.
    • CENTER

      public static final AnchorPosition CENTER
      Anchor is in the sprite center.
    • LEFT

      public static final AnchorPosition LEFT
      Anchor is in the center of the left edge of the sprite.
    • DOWN

      public static final AnchorPosition DOWN
      Anchor is in the center of the down edge of the sprite.
    • UP

      public static final AnchorPosition UP
      Anchor is in the center of the upper edge of the sprite.
  • Method Details

    • values

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

      public static AnchorPosition valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null