public abstract class ClipEnvelope extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
aborted |
protected Animation |
animation |
protected double |
currentRate |
protected long |
cycleTicks |
protected long |
deltaTicks |
protected static double |
EPSILON |
protected static long |
INDEFINITE |
protected boolean |
inTimePulse |
protected double |
rate |
protected long |
ticks |
Modifier | Constructor and Description |
---|---|
protected |
ClipEnvelope(Animation animation) |
Modifier and Type | Method and Description |
---|---|
void |
abortCurrentPulse() |
protected abstract double |
calculateCurrentRate() |
protected static long |
checkBounds(long value,
long max) |
static ClipEnvelope |
create(Animation animation) |
double |
getCurrentRate() |
abstract void |
jumpTo(long ticks) |
abstract void |
setAutoReverse(boolean autoReverse) |
protected void |
setCurrentRate(double currentRate) |
abstract ClipEnvelope |
setCycleCount(int cycleCount) |
abstract ClipEnvelope |
setCycleDuration(Duration cycleDuration) |
abstract void |
setRate(double rate) |
void |
start() |
abstract void |
timePulse(long currentTick) |
protected void |
updateCycleTicks(Duration cycleDuration) |
boolean |
wasSynched() |
protected static final long INDEFINITE
protected static final double EPSILON
protected Animation animation
protected double rate
protected long cycleTicks
protected long deltaTicks
protected long ticks
protected double currentRate
protected boolean inTimePulse
protected boolean aborted
protected ClipEnvelope(Animation animation)
public static ClipEnvelope create(Animation animation)
public abstract ClipEnvelope setCycleDuration(Duration cycleDuration)
public abstract void setRate(double rate)
public abstract void setAutoReverse(boolean autoReverse)
public abstract ClipEnvelope setCycleCount(int cycleCount)
protected void updateCycleTicks(Duration cycleDuration)
public boolean wasSynched()
public void start()
public abstract void timePulse(long currentTick)
public abstract void jumpTo(long ticks)
public void abortCurrentPulse()
protected abstract double calculateCurrentRate()
protected void setCurrentRate(double currentRate)
protected static long checkBounds(long value, long max)
public double getCurrentRate()
Copyright © 2020. All rights reserved.