Package org.pushingpixels.trident.swt
Class SWTRepaintCallback
java.lang.Object
org.pushingpixels.trident.swt.SWTRepaintCallback
- All Implemented Interfaces:
TimelineCallback
-
Constructor Summary
ConstructorsConstructorDescriptionSWTRepaintCallback
(org.eclipse.swt.widgets.Control control) SWTRepaintCallback
(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Rectangle rect) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
onTimelinePulse
(float durationFraction, float timelinePosition) Indicates that the timeline pulse has happened.void
onTimelineStateChanged
(Timeline.TimelineState oldState, Timeline.TimelineState newState, float durationFraction, float timelinePosition) Indicates that the timeline state has changed.void
setAutoRepaintMode
(boolean autoRepaintMode) void
setRepaintRectangle
(org.eclipse.swt.graphics.Rectangle rect)
-
Constructor Details
-
SWTRepaintCallback
public SWTRepaintCallback(org.eclipse.swt.widgets.Control control) -
SWTRepaintCallback
public SWTRepaintCallback(org.eclipse.swt.widgets.Control control, org.eclipse.swt.graphics.Rectangle rect)
-
-
Method Details
-
setAutoRepaintMode
public void setAutoRepaintMode(boolean autoRepaintMode) -
forceRepaintOnNextPulse
public void forceRepaintOnNextPulse() -
setRepaintRectangle
public void setRepaintRectangle(org.eclipse.swt.graphics.Rectangle rect) -
onTimelinePulse
public void onTimelinePulse(float durationFraction, float timelinePosition) Description copied from interface:TimelineCallback
Indicates that the timeline pulse has happened.- Specified by:
onTimelinePulse
in interfaceTimelineCallback
- Parameters:
durationFraction
- The current timeline duration fraction.Is guaranteed to be in 0.0-1.0 range. The rate of change of this value is linear, and the value is proportional toTimeline.setDuration(long)
.timelinePosition
- The current timeline position. Is guaranteed to be in 0.0-1.0 range. The rate of change of this value is not necessarily linear and is affected by theTimeline.setEase(org.pushingpixels.trident.ease.TimelineEase)
.
-
onTimelineStateChanged
public void onTimelineStateChanged(Timeline.TimelineState oldState, Timeline.TimelineState newState, float durationFraction, float timelinePosition) Description copied from interface:TimelineCallback
Indicates that the timeline state has changed.- Specified by:
onTimelineStateChanged
in interfaceTimelineCallback
- Parameters:
oldState
- The old timeline state.newState
- The new timeline state.durationFraction
- The current timeline duration fraction.Is guaranteed to be in 0.0-1.0 range. The rate of change of this value is linear, and the value is proportional toTimeline.setDuration(long)
.timelinePosition
- The current timeline position. Is guaranteed to be in 0.0-1.0 range. The rate of change of this value is not necessarily linear and is affected by theTimeline.setEase(org.pushingpixels.trident.ease.TimelineEase)
.
-