Class SwingComponentTimeline
- java.lang.Object
-
- org.pushingpixels.radiance.animation.api.Timeline
-
- org.pushingpixels.radiance.animation.api.swing.SwingComponentTimeline
-
- All Implemented Interfaces:
TimelineScenario.TimelineScenarioActor
public class SwingComponentTimeline extends Timeline
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSwingComponentTimeline.Builder-
Nested 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
Fields Modifier and Type Field Description private booleanforceUiUpdate-
Fields inherited from class org.pushingpixels.radiance.animation.api.Timeline
DEFAULT_DURATION, DEFAULT_EASE
-
-
Constructor Summary
Constructors Modifier Constructor Description privateSwingComponentTimeline(java.awt.Component mainTimelineComp, boolean forceUiUpdate)Constructs a new timeline associated with a Swing component.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SwingComponentTimeline.BuildercomponentBuilder(java.awt.Component component)protected booleanshouldForceUiUpdate()-
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
-
-
-
-
Constructor Detail
-
SwingComponentTimeline
private SwingComponentTimeline(java.awt.Component mainTimelineComp, boolean forceUiUpdate)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 Detail
-
componentBuilder
public static SwingComponentTimeline.Builder componentBuilder(java.awt.Component component)
-
shouldForceUiUpdate
protected boolean shouldForceUiUpdate()
- Overrides:
shouldForceUiUpdatein classTimeline
-
-