public interface ViewerUpdateData
Viewer.update()
.Modifier and Type | Method and Description |
---|---|
void |
changeIndexes(String indexes)
Changes the index expressions.
|
int |
getAnimationStep()
Gets the current animation step.
|
int |
getAnimationSteps()
Gets the number of animation steps if this is an animation update.
|
ViewerUpdateType |
getUpdateType()
Determines the reason the update was called.
|
boolean |
isDebug()
Determines if this update is "natural".
|
boolean |
isReset()
Determines if this update is a "reset".
|
void |
killAnimations()
Ends all active animations for the viewer.
|
void |
setAnimationKey(Object key)
Sets an arbitrary key that will be passed to
Viewer.update() calls during an animation sequence. |
void |
setAnimationSteps(int steps)
Sets the number of animation steps for a
Viewer.update() call. |
void |
setDelay(int delayMs)
Sets the total animation time or delay between a
Viewer.update() call and the time the thread
for the update will resume. |
void |
setFinalDelay(int delayMs)
Sets a different delay for the last step in an animation.
|
void |
setInitialDelay(int delayMs)
Sets a different delay for the first step in an animation.
|
void changeIndexes(String indexes)
indexes
- the new index expressions, separated by hashes (#).int getAnimationStep()
int getAnimationSteps()
ViewerUpdateType getUpdateType()
boolean isDebug()
boolean isReset()
void killAnimations()
void setAnimationKey(Object key)
Viewer.update()
calls during an animation sequence.key
- the key.void setAnimationSteps(int steps)
Viewer.update()
call. Each step will be a Viewer.update()
call with type ViewerUpdateType.ANIMATE
. By default there are no
steps.steps
- the number of animation steps.void setDelay(int delayMs)
Viewer.update()
call and the time the thread
for the update will resume. By default there is no delay.delayMs
- the delay time in milliseconds.void setFinalDelay(int delayMs)
delayMs
- the delay time in milliseconds.void setInitialDelay(int delayMs)
delayMs
- the delay time in milliseconds.