SwingComponentTimeline.Builder, SwingRepaintTimeline.Builder, Timeline.Builderpublic abstract static class Timeline.BaseBuilder<T extends Timeline,B extends Timeline.BaseBuilder<?,?,?>,M>
extends java.lang.Object
| 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<org.pushingpixels.trident.api.TimelinePropertyBuilder.AbstractFieldInfo<?>> |
propertiesToInterpolate |
|
protected Timeline.RepeatBehavior |
repeatBehavior |
|
protected int |
repeatCount |
|
protected java.lang.Comparable<?> |
secondaryId |
| Constructor | Description |
|---|---|
BaseBuilder() |
|
BaseBuilder(M mainObject) |
| 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 for
build() chained with Timeline.play() |
void |
playLoop(int loopCount,
Timeline.RepeatBehavior repeatBehavior) |
A shortcut for
build() chained with
Timeline.playLoop(int, RepeatBehavior) |
void |
playLoop(Timeline.RepeatBehavior repeatBehavior) |
A shortcut for
build() chained with Timeline.playLoop(RepeatBehavior) |
void |
playLoopSkipping(int loopCount,
Timeline.RepeatBehavior repeatBehavior,
long msToSkip) |
A shortcut for
build() chained with
Timeline.playLoopSkipping(int, RepeatBehavior, long) |
void |
playLoopSkipping(Timeline.RepeatBehavior repeatBehavior,
long msToSkip) |
A shortcut for
build() chained with
Timeline.playLoopSkipping(RepeatBehavior, long) |
void |
playReverse() |
A shortcut for
build() chained with Timeline.playReverse() |
void |
playReverseSkipping(long msToSkip) |
A shortcut for
build() chained with Timeline.playReverseSkipping(long) |
void |
playSkipping(long msToSkip) |
A shortcut for
build() chained with Timeline.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) |
protected M mainObject
protected java.lang.Comparable<?> secondaryId
protected long duration
protected long initialDelay
protected long cycleDelay
protected int repeatCount
protected Timeline.RepeatBehavior repeatBehavior
protected java.util.List<TimelineCallback> callbacks
protected java.lang.String name
protected java.util.List<org.pushingpixels.trident.api.TimelinePropertyBuilder.AbstractFieldInfo<?>> propertiesToInterpolate
protected TimelineEase ease
public BaseBuilder()
public BaseBuilder(M mainObject)
protected void configureBaseTimeline(Timeline timeline)
public B setSecondaryId(java.lang.Comparable<?> secondaryId)
public B setDuration(long duration)
public long getDuration()
public B setInitialDelay(long initialDelay)
public B setCycleDelay(long cycleDelay)
public B setRepeatCount(int repeatCount)
public B setRepeatBehavior(Timeline.RepeatBehavior repeatBehavior)
public B setName(java.lang.String name)
public B setEase(TimelineEase ease)
public <P> B addPropertyToInterpolate(TimelinePropertyBuilder<P> propertyBuilder)
public <P> B addPropertyToInterpolate(java.lang.String propName, KeyFrames<P> keyFrames)
public <P> B addPropertyToInterpolate(java.lang.String propName, P from, P to)
public <P> B addPropertyToInterpolate(java.lang.String propName, java.util.function.Supplier<P> fromSupplier, java.util.function.Supplier<P> toSupplier)
public B addCallback(TimelineCallback callback)
public abstract T build()
public void play()
build() chained with Timeline.play()public void playSkipping(long msToSkip)
build() chained with Timeline.playSkipping(long)public void playReverse()
build() chained with Timeline.playReverse()public void playReverseSkipping(long msToSkip)
build() chained with Timeline.playReverseSkipping(long)public void playLoop(Timeline.RepeatBehavior repeatBehavior)
build() chained with Timeline.playLoop(RepeatBehavior)public void playLoopSkipping(Timeline.RepeatBehavior repeatBehavior, long msToSkip)
build() chained with
Timeline.playLoopSkipping(RepeatBehavior, long)public void playLoop(int loopCount,
Timeline.RepeatBehavior repeatBehavior)
build() chained with
Timeline.playLoop(int, RepeatBehavior)public void playLoopSkipping(int loopCount,
Timeline.RepeatBehavior repeatBehavior,
long msToSkip)
build() chained with
Timeline.playLoopSkipping(int, RepeatBehavior, long)