Package hm.zelha.particlesfx.util
Enum Class ShapeDisplayMechanic.Phase
- All Implemented Interfaces:
Serializable,Comparable<ShapeDisplayMechanic.Phase>,Constable
- Enclosing interface:
ShapeDisplayMechanic
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRan after all particles are displayed on every call of the display() method.Ran after all particles are displayed on every full display of the shape.Ran after a particle is displayed at the current location.Ran after rotation is applied to the location the particle will be displayed to.Ran before any particles are displayed on every call of the display() method.Ran before any particles are displayed on every full display of the shape.Ran before rotation is applied to the location the particle will be displayed to. -
Method Summary
Modifier and TypeMethodDescriptionstatic ShapeDisplayMechanic.PhaseReturns the enum constant of this class with the specified name.static ShapeDisplayMechanic.Phase[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BEFORE_DISPLAY
Ran before any particles are displayed on every call of the display() method. -
BEFORE_DISPLAY_FULL
Ran before any particles are displayed on every full display of the shape. -
BEFORE_ROTATION
Ran before rotation is applied to the location the particle will be displayed to.
Always ran before the particle is displayed regardless of if rotation is applied in this class or not. -
AFTER_ROTATION
Ran after rotation is applied to the location the particle will be displayed to.
Only ran if rotation is applied in this class. (ex.ParticleCircle) -
AFTER_DISPLAY_PARTICLE
Ran after a particle is displayed at the current location. -
AFTER_DISPLAY
Ran after all particles are displayed on every call of the display() method. -
AFTER_DISPLAY_FULL
Ran after all particles are displayed on every full display of the shape.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-