Class GUIAnimation
java.lang.Object
com.blackrook.gui.GUIAnimation
- All Implemented Interfaces:
GUI.Animation<GUIObject>
Describes an animation to be performed on an object in the GUI system.
- Author:
- Matthew Tropiano
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GUIAnimationCreates a new GUI animation that calls an action on the object.static GUIAnimationCreates a new GUI animation that performs an object bounds transition.static GUIAnimationcolor(float red, float green, float blue, float alpha) Creates a new GUI animation that performs a color transition.static GUIAnimationCreates a new GUI animation that performs a color transition.static GUIAnimationCreates a new GUI animation that performs an object dimension transition.static GUIAnimationopacity(float opacity) Creates a new GUI animation that performs an opacity transition.static GUIAnimationCreates a new GUI animation that performs an object position transition.static GUIAnimationrotation(float rotation) Creates a new GUI animation that performs a rotation transition.static GUIAnimationCreates a new GUI animation that sets a texture on the object.static GUIAnimationvisible(boolean visible) Creates a new GUI animation that performs an object visibility change.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GUI.Animation
createState
-
Constructor Details
-
GUIAnimation
public GUIAnimation()
-
-
Method Details
-
color
Creates a new GUI animation that performs a color transition.- Parameters:
color- the new color.- Returns:
- the created animation.
-
color
Creates a new GUI animation that performs a color transition.- Parameters:
red- the red color component (0 to 1).green- the green color component (0 to 1).blue- the blue color component (0 to 1).alpha- the alpha color component (0 to 1).- Returns:
- the created animation.
-
opacity
Creates a new GUI animation that performs an opacity transition.- Parameters:
opacity- the new opacity (0 to 1).- Returns:
- the created animation.
-
position
Creates a new GUI animation that performs an object position transition. Either of the following parameters can be null to designate no change.- Parameters:
x- the new x-coordinate.y- the new y-coordinate.- Returns:
- the created animation.
-
dimension
Creates a new GUI animation that performs an object dimension transition. Either of the following parameters can be null to designate no change.- Parameters:
width- the new width.height- the new height.- Returns:
- the created animation.
-
bounds
Creates a new GUI animation that performs an object bounds transition. Any of the following parameters can be null to designate no change.- Parameters:
x- the new x-coordinate.y- the new y-coordinate.width- the new width.height- the new height.- Returns:
- the created animation.
-
rotation
Creates a new GUI animation that performs a rotation transition.- Parameters:
rotation- the new rotation (in degrees).- Returns:
- the created animation.
-
visible
Creates a new GUI animation that performs an object visibility change.- Parameters:
visible- true for visible, false for invisible.- Returns:
- the created animation.
-
texture
Creates a new GUI animation that sets a texture on the object.- Parameters:
textures- the textures to set (in order). Can be null.- Returns:
- the created animation.
-
action
Creates a new GUI animation that calls an action on the object.- Parameters:
action- the GUIAction to call.- Returns:
- the created animation.
-