Class SwingComponentTimeline
java.lang.Object
org.pushingpixels.radiance.animation.api.Timeline
org.pushingpixels.radiance.animation.api.swing.SwingComponentTimeline
- All Implemented Interfaces:
TimelineScenario.TimelineScenarioActor
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.pushingpixels.radiance.animation.api.Timeline
Timeline.BaseBuilder<T extends Timeline,
B extends Timeline.BaseBuilder<?, ?, ?>, M>, Timeline.RepeatBehavior, Timeline.TimelineState -
Field Summary
FieldsFields inherited from class org.pushingpixels.radiance.animation.api.Timeline
DEFAULT_DURATION, DEFAULT_EASE
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
SwingComponentTimeline
(Component mainTimelineComp, boolean forceUiUpdate) Constructs a new timeline associated with a Swing component. -
Method Summary
Methods inherited from class org.pushingpixels.radiance.animation.api.Timeline
abort, addCallback, builder, builder, cancel, cancelAtCycleBreak, end, getCycleDelay, getDuration, getDurationFraction, getEase, getId, getInitialDelay, getMainObject, getName, getRepeatBehavior, getSecondaryId, getState, getTimelinePosition, isDone, play, playLoop, playLoop, playLoopSkipping, playLoopSkipping, playReverse, playReverseSkipping, playSkipping, property, replay, replayReverse, resetDoneFlag, resume, supportsReplay, suspend, toString
-
Field Details
-
forceUiUpdate
private boolean forceUiUpdate
-
-
Constructor Details
-
SwingComponentTimeline
Constructs a new timeline associated with a Swing component.- Parameters:
mainTimelineComp
- Main component for this timeline. Must not benull
, otherwise an exception will be thrown.forceUiUpdate
- If this istrue
, updates to the timeline (pulse and state changes) will be forced to run even if main component is not displayable.
-
-
Method Details
-
componentBuilder
-
shouldForceUiUpdate
protected boolean shouldForceUiUpdate()- Overrides:
shouldForceUiUpdate
in classTimeline
-