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 Summary
Enum ConstantsEnum ConstantDescriptionConfigure by (x, y) coordinates.Configure by fraction.Configure by name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this type with the specified name.static PlacedObject2DFactory.RefPointMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BY_NAME
Configure by name. The location of the reference point is determined by the "refPointName" parameter. -
BY_COORD
Configure by (x, y) coordinates. The location of the reference point is determined by the parameters "refPointX" and "refPointY". -
BY_FRACTION
Configure by fraction. The location of the reference point is determined by the parameters "refPointFractX" and "refPointFractY"
-
-
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
-