Package org.polyfrost.polyui.component
Class DrawableOp
-
- All Implemented Interfaces:
public abstract class DrawableOp
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classDrawableOp.MoveNote: if you are making a UI, you should probably be using scale, rotate, or translate instead of this class.
public abstract classDrawableOp.PersistentAbstract class representing a persistent drawable operation.
A persistent operation is one that remains active indefinitely and does not finish.
These are special as they are not taken into account during removal of a drawable.
public final classDrawableOp.Fadepublic final classDrawableOp.RotateNote: if you are making a UI, you should probably be using scale, rotate, or translate instead of this class.
public final classDrawableOp.Resizepublic final classDrawableOp.Scalepublic final classDrawableOp.Skew
-
Field Summary
Fields Modifier and Type Field Description private final Animationanimationprivate final BooleanisFinished
-
Constructor Summary
Constructors Constructor Description DrawableOp(Drawable drawable)
-
Method Summary
Modifier and Type Method Description AnimationgetAnimation()BooleanisFinished()abstract Unitapply(Renderer renderer)apply this drawable operation. Unitunapply(Renderer renderer)de-apply this operation, if required. Unitupdate(Long deltaTimeNanos)update the underlying animation, if present. -
-
Constructor Detail
-
DrawableOp
DrawableOp(Drawable drawable)
-
-
Method Detail
-
getAnimation
Animation getAnimation()
-
isFinished
Boolean isFinished()
-
apply
abstract Unit apply(Renderer renderer)
apply this drawable operation.
the renderer is provided in case you want to do some transformations. A state will already be pushed for you.
please note that this is NOT intended to be used directly for rendering of objects, and only for transformations.
-
-
-
-