public static enum MapControllerOld.AnimationType extends Enum<MapControllerOld.AnimationType>
LINEAR
EXPONENTIALDECELERATING
QUARTERCOSINUSALDECELERATING
HALFCOSINUSALDECELERATING
MIDDLEPEAKSPEED
Enum Constant and Description |
---|
EXPONENTIALDECELERATING
EXPONENTIALDECELERATING
Uses a exponential interpolation/li>
Values produced: 50%, 75%, 87.5%, 93.5%, ...
Style: Starts very fast, really slow in the end.
|
HALFCOSINUSALDECELERATING
HALFCOSINUSALDECELERATING
Uses the first half of the cos curve (from zero to PI) for interpolation
Values produced: See cos curve :)
Style: Average speed, slows out smoothly.
|
LINEAR
LINEAR
Uses ses linear interpolation
Values produced: 10%, 20%, 30%, 40%, 50%, ...
Style: Always average speed.
|
MIDDLEPEAKSPEED
MIDDLEPEAKSPEED
Uses the values of cos around the 0 (from -PI/2 to +PI/2) for interpolation
Values produced: See cos curve :)
Style: Starts medium, speeds high in middle, slows out medium.
|
QUARTERCOSINUSALDECELERATING
QUARTERCOSINUSALDECELERATING
Uses the first quarter of the cos curve (from zero to PI/2) for interpolation.
Values produced: See cos curve :)
Style: Average speed, slows out medium.
|
Modifier and Type | Method and Description |
---|---|
static MapControllerOld.AnimationType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MapControllerOld.AnimationType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MapControllerOld.AnimationType LINEAR
LINEAR
public static final MapControllerOld.AnimationType EXPONENTIALDECELERATING
EXPONENTIALDECELERATING
public static final MapControllerOld.AnimationType QUARTERCOSINUSALDECELERATING
QUARTERCOSINUSALDECELERATING
public static final MapControllerOld.AnimationType HALFCOSINUSALDECELERATING
HALFCOSINUSALDECELERATING
public static final MapControllerOld.AnimationType MIDDLEPEAKSPEED
MIDDLEPEAKSPEED
public static MapControllerOld.AnimationType[] values()
for (MapControllerOld.AnimationType c : MapControllerOld.AnimationType.values()) System.out.println(c);
public static MapControllerOld.AnimationType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullCopyright © 2014. All Rights Reserved.