Enum PlacedObject2DFactory.RefPointMode

java.lang.Object
java.lang.Enum<PlacedObject2DFactory.RefPointMode>
org.bzdev.anim2d.PlacedObject2DFactory.RefPointMode
All Implemented Interfaces:
Serializable, Comparable<PlacedObject2DFactory.RefPointMode>
Enclosing class:
PlacedObject2DFactory<Obj extends PlacedAnimationObject2D>

public static enum PlacedObject2DFactory.RefPointMode extends Enum<PlacedObject2DFactory.RefPointMode>
ReferencePoint2D factory configuration mode. This is used to determine which variables are used in the configuration.
  • Enum Constant Details

    • BY_NAME

      public static final PlacedObject2DFactory.RefPointMode BY_NAME
      Configure by name. The location of the reference point is determined by the "refPointName" parameter.
    • BY_COORD

      public static final PlacedObject2DFactory.RefPointMode BY_COORD
      Configure by (x, y) coordinates. The location of the reference point is determined by the parameters "refPointX" and "refPointY".
    • BY_FRACTION

      public static final PlacedObject2DFactory.RefPointMode BY_FRACTION
      Configure by fraction. The location of the reference point is determined by the parameters "refPointFractX" and "refPointFractY"
  • Method Details

    • values

      public static PlacedObject2DFactory.RefPointMode[] 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 PlacedObject2DFactory.RefPointMode 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