T - the generic typepublic class SizeTransform<T> extends Transformation<SizeTransform<T>,ITransformable.Size<T>>
| Modifier and Type | Field and Description |
|---|---|
protected int |
fromHeight
Starting size.
|
protected int |
fromWidth
Starting size.
|
protected int |
toHeight
Target size.
|
protected int |
toWidth
Target size.
|
delay, duration, elapsedTimeCurrentLoop, LINEAR, loopResetDelay, loops, loopStartDelay, movement, reversed, SINUSOIDAL| Constructor and Description |
|---|
SizeTransform(int width,
int height)
Instantiates a new
SizeTransform. |
SizeTransform(int fromWidth,
int fromHeight,
int toWidth,
int toHeight)
Instantiates a new
SizeTransform |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doTransform(ITransformable.Size<T> transformable,
float comp)
Calculates the transformation
|
SizeTransform<T> |
from(int width,
int height)
Sets the starting size.
|
SizeTransform<T> |
self()
Gets this
SizeTransform. |
SizeTransform<T> |
to(int width,
int height)
Sets the target size.
|
completion, delay, forTicks, forTicks, getDelay, getDuration, getLoopDuration, getLoops, loop, loop, movement, reversed, totalDuration, transform, transformprotected int fromWidth
protected int fromHeight
protected int toWidth
protected int toHeight
public SizeTransform(int width,
int height)
SizeTransform.width - the widthheight - the heightpublic SizeTransform(int fromWidth,
int fromHeight,
int toWidth,
int toHeight)
SizeTransformfromWidth - the from widthfromHeight - the from heighttoWidth - the to widthtoHeight - the to heightpublic SizeTransform<T> self()
SizeTransform.self in class Transformation<SizeTransform<T>,ITransformable.Size<T>>public SizeTransform<T> from(int width, int height)
width - the widthheight - the heightSizeTransformpublic SizeTransform<T> to(int width, int height)
width - the widthheight - the heightSizeTransformprotected void doTransform(ITransformable.Size<T> transformable, float comp)
doTransform in class Transformation<SizeTransform<T>,ITransformable.Size<T>>transformable - the transformablecomp - the comp