Class Timeline.BaseBuilder<T extends Timeline,B extends Timeline.BaseBuilder<?,?,?>,M>
- java.lang.Object
-
- org.pushingpixels.radiance.animation.api.Timeline.BaseBuilder<T,B,M>
-
- Direct Known Subclasses:
SwingComponentTimeline.Builder
,SwingRepaintTimeline.Builder
,Timeline.Builder
- Enclosing class:
- Timeline
public abstract static class Timeline.BaseBuilder<T extends Timeline,B extends Timeline.BaseBuilder<?,?,?>,M> extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<TimelineCallback>
callbacks
protected long
cycleDelay
protected long
duration
protected TimelineEase
ease
protected long
initialDelay
protected M
mainObject
protected java.lang.String
name
protected java.util.List<TimelinePropertyBuilder.AbstractFieldInfo<?>>
propertiesToInterpolate
protected Timeline.RepeatBehavior
repeatBehavior
protected int
repeatCount
protected java.lang.Comparable<?>
secondaryId
-
Constructor Summary
Constructors Constructor Description BaseBuilder()
BaseBuilder(M mainObject)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description B
addCallback(TimelineCallback callback)
<P> B
addPropertyToInterpolate(java.lang.String propName, java.util.function.Supplier<P> fromSupplier, java.util.function.Supplier<P> toSupplier)
<P> B
addPropertyToInterpolate(java.lang.String propName, KeyFrames<P> keyFrames)
<P> B
addPropertyToInterpolate(java.lang.String propName, P from, P to)
<P> B
addPropertyToInterpolate(TimelinePropertyBuilder<P> propertyBuilder)
abstract T
build()
protected void
configureBaseTimeline(Timeline timeline)
long
getDuration()
void
play()
A shortcut forbuild()
chained withTimeline.play()
void
playLoop(int loopCount, Timeline.RepeatBehavior repeatBehavior)
A shortcut forbuild()
chained withTimeline.playLoop(int, RepeatBehavior)
void
playLoop(Timeline.RepeatBehavior repeatBehavior)
A shortcut forbuild()
chained withTimeline.playLoop(RepeatBehavior)
void
playLoopSkipping(int loopCount, Timeline.RepeatBehavior repeatBehavior, long msToSkip)
A shortcut forbuild()
chained withTimeline.playLoopSkipping(int, RepeatBehavior, long)
void
playLoopSkipping(Timeline.RepeatBehavior repeatBehavior, long msToSkip)
A shortcut forbuild()
chained withTimeline.playLoopSkipping(RepeatBehavior, long)
void
playReverse()
A shortcut forbuild()
chained withTimeline.playReverse()
void
playReverseSkipping(long msToSkip)
A shortcut forbuild()
chained withTimeline.playReverseSkipping(long)
void
playSkipping(long msToSkip)
A shortcut forbuild()
chained withTimeline.playSkipping(long)
B
setCycleDelay(long cycleDelay)
B
setDuration(long duration)
B
setEase(TimelineEase ease)
B
setInitialDelay(long initialDelay)
B
setName(java.lang.String name)
B
setRepeatBehavior(Timeline.RepeatBehavior repeatBehavior)
B
setRepeatCount(int repeatCount)
B
setSecondaryId(java.lang.Comparable<?> secondaryId)
-
-
-
Field Detail
-
mainObject
protected M mainObject
-
secondaryId
protected java.lang.Comparable<?> secondaryId
-
duration
protected long duration
-
initialDelay
protected long initialDelay
-
cycleDelay
protected long cycleDelay
-
repeatCount
protected int repeatCount
-
repeatBehavior
protected Timeline.RepeatBehavior repeatBehavior
-
callbacks
protected java.util.List<TimelineCallback> callbacks
-
name
protected java.lang.String name
-
propertiesToInterpolate
protected java.util.List<TimelinePropertyBuilder.AbstractFieldInfo<?>> propertiesToInterpolate
-
ease
protected TimelineEase ease
-
-
Constructor Detail
-
BaseBuilder
public BaseBuilder()
-
BaseBuilder
public BaseBuilder(M mainObject)
-
-
Method Detail
-
configureBaseTimeline
protected void configureBaseTimeline(Timeline timeline)
-
setSecondaryId
public B setSecondaryId(java.lang.Comparable<?> secondaryId)
-
setDuration
public B setDuration(long duration)
-
getDuration
public long getDuration()
-
setInitialDelay
public B setInitialDelay(long initialDelay)
-
setCycleDelay
public B setCycleDelay(long cycleDelay)
-
setRepeatCount
public B setRepeatCount(int repeatCount)
-
setRepeatBehavior
public B setRepeatBehavior(Timeline.RepeatBehavior repeatBehavior)
-
setName
public B setName(java.lang.String name)
-
setEase
public B setEase(TimelineEase ease)
-
addPropertyToInterpolate
public <P> B addPropertyToInterpolate(TimelinePropertyBuilder<P> propertyBuilder)
-
addPropertyToInterpolate
public <P> B addPropertyToInterpolate(java.lang.String propName, KeyFrames<P> keyFrames)
-
addPropertyToInterpolate
public <P> B addPropertyToInterpolate(java.lang.String propName, P from, P to)
-
addPropertyToInterpolate
public <P> B addPropertyToInterpolate(java.lang.String propName, java.util.function.Supplier<P> fromSupplier, java.util.function.Supplier<P> toSupplier)
-
addCallback
public B addCallback(TimelineCallback callback)
-
build
public abstract T build()
-
play
public void play()
A shortcut forbuild()
chained withTimeline.play()
-
playSkipping
public void playSkipping(long msToSkip)
A shortcut forbuild()
chained withTimeline.playSkipping(long)
-
playReverse
public void playReverse()
A shortcut forbuild()
chained withTimeline.playReverse()
-
playReverseSkipping
public void playReverseSkipping(long msToSkip)
A shortcut forbuild()
chained withTimeline.playReverseSkipping(long)
-
playLoop
public void playLoop(Timeline.RepeatBehavior repeatBehavior)
A shortcut forbuild()
chained withTimeline.playLoop(RepeatBehavior)
-
playLoopSkipping
public void playLoopSkipping(Timeline.RepeatBehavior repeatBehavior, long msToSkip)
A shortcut forbuild()
chained withTimeline.playLoopSkipping(RepeatBehavior, long)
-
playLoop
public void playLoop(int loopCount, Timeline.RepeatBehavior repeatBehavior)
A shortcut forbuild()
chained withTimeline.playLoop(int, RepeatBehavior)
-
playLoopSkipping
public void playLoopSkipping(int loopCount, Timeline.RepeatBehavior repeatBehavior, long msToSkip)
A shortcut forbuild()
chained withTimeline.playLoopSkipping(int, RepeatBehavior, long)
-
-