T
- the generic typepublic class SizeTransform<T> extends Transformation<SizeTransform,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> |
to(int width,
int height)
Sets the target size.
|
completion, delay, forTicks, forTicks, getDelay, getDuration, getLoopDuration, getLoops, loop, loop, movement, reversed, totalDuration, transform, transform
protected 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)
SizeTransform
fromWidth
- the from widthfromHeight
- the from heighttoWidth
- the to widthtoHeight
- the to heightpublic SizeTransform<T> from(int width, int height)
width
- the widthheight
- the heightSizeTransform
public SizeTransform<T> to(int width, int height)
width
- the widthheight
- the heightSizeTransform
protected void doTransform(ITransformable.Size<T> transformable, float comp)
doTransform
in class Transformation<SizeTransform,ITransformable.Size<T>>
transformable
- the transformablecomp
- the comp