Enum ParticleSystem.Origin
- java.lang.Object
-
- java.lang.Enum<ParticleSystem.Origin>
-
- be.yildizgames.module.graphic.particle.ParticleSystem.Origin
-
- All Implemented Interfaces:
Serializable,Comparable<ParticleSystem.Origin>
- Enclosing class:
- ParticleSystem
public static enum ParticleSystem.Origin extends Enum<ParticleSystem.Origin>
Particle origin.- Author:
- Grégory Van den Borre
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOTTOM_CENTERThe billboard origin is the center of bottom edge.BOTTOM_LEFTThe billboard origin is the bottom-left corner.BOTTOM_RIGHTThe billboard origin is the bottom-right corner.CENTERThe billboard origin is the center.CENTER_LEFTThe billboard origin is the center of left edge.CENTER_RIGHTThe billboard origin is the center of right edge.TOP_CENTERThe billboard origin is the center of top edge.TOP_LEFTThe billboard origin is the top-left corner.TOP_RIGHTThe billboard origin is the top-right corner.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetValue()static ParticleSystem.OriginvalueOf(String name)Returns the enum constant of this type with the specified name.static ParticleSystem.Origin[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOTTOM_CENTER
public static final ParticleSystem.Origin BOTTOM_CENTER
The billboard origin is the center of bottom edge.
-
BOTTOM_LEFT
public static final ParticleSystem.Origin BOTTOM_LEFT
The billboard origin is the bottom-left corner.
-
BOTTOM_RIGHT
public static final ParticleSystem.Origin BOTTOM_RIGHT
The billboard origin is the bottom-right corner.
-
CENTER
public static final ParticleSystem.Origin CENTER
The billboard origin is the center.
-
CENTER_LEFT
public static final ParticleSystem.Origin CENTER_LEFT
The billboard origin is the center of left edge.
-
CENTER_RIGHT
public static final ParticleSystem.Origin CENTER_RIGHT
The billboard origin is the center of right edge.
-
TOP_CENTER
public static final ParticleSystem.Origin TOP_CENTER
The billboard origin is the center of top edge.
-
TOP_LEFT
public static final ParticleSystem.Origin TOP_LEFT
The billboard origin is the top-left corner.
-
TOP_RIGHT
public static final ParticleSystem.Origin TOP_RIGHT
The billboard origin is the top-right corner.
-
-
Method Detail
-
values
public static ParticleSystem.Origin[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ParticleSystem.Origin c : ParticleSystem.Origin.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParticleSystem.Origin 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 nameNullPointerException- if the argument is null
-
getValue
public int getValue()
-
-