Timing

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.ITiming, com.aspose.slides.IDOMObject

public class Timing implements ITiming, IDOMObject

Represents animation timing.

Methods

MethodDescription
getAccelerate()Describes the percentage of duration accelerate behavior effect.
setAccelerate(float value)Describes the percentage of duration accelerate behavior effect.
getDecelerate()Describes the percentage of duration decelerate behavior effect.
setDecelerate(float value)Describes the percentage of duration decelerate behavior effect.
getAutoReverse()Describes whether to automatically play the animation in reverse after playing it in the forward direction.
setAutoReverse(boolean value)Describes whether to automatically play the animation in reverse after playing it in the forward direction.
getDuration()Describes the duration of animation effect.
setDuration(float value)Describes the duration of animation effect.
getRepeatCount()Describes the number of times the effect should repeat.
setRepeatCount(float value)Describes the number of times the effect should repeat.
getRepeatUntilEndSlide()This attribute specifies if the effect will repeat until the end of the slide.
setRepeatUntilEndSlide(boolean value)This attribute specifies if the effect will repeat until the end of the slide.
getRepeatUntilNextClick()This attribute specifies if the effect will repeat until the next click.
setRepeatUntilNextClick(boolean value)This attribute specifies if the effect will repeat until the next click.
getRepeatDuration()Describes the number of times the effect should repeat.
setRepeatDuration(float value)Describes the number of times the effect should repeat.
getRestart()Specifies if a effect is to restart after complete.
setRestart(int value)Specifies if a effect is to restart after complete.
getRewind()This attribute specifies if the effect will rewind when done playing.
setRewind(boolean value)This attribute specifies if the effect will rewind when done playing.
getSpeed()Specifies the percentage by which to speed up (or slow down) the timing.
setSpeed(float value)Specifies the percentage by which to speed up (or slow down) the timing.
getTriggerDelayTime()Describes delay time after trigger.
setTriggerDelayTime(float value)Describes delay time after trigger.
getTriggerType()Describes trigger type.
setTriggerType(int value)Describes trigger type.
getParent_Immediate()

getAccelerate()

public final float getAccelerate()

Describes the percentage of duration accelerate behavior effect. Read/write float.

Returns: float

setAccelerate(float value)

public final void setAccelerate(float value)

Describes the percentage of duration accelerate behavior effect. Read/write float.

Parameters:

ParameterTypeDescription
valuefloat

getDecelerate()

public final float getDecelerate()

Describes the percentage of duration decelerate behavior effect. Read/write float.

Returns: float

setDecelerate(float value)

public final void setDecelerate(float value)

Describes the percentage of duration decelerate behavior effect. Read/write float.

Parameters:

ParameterTypeDescription
valuefloat

getAutoReverse()

public final boolean getAutoReverse()

Describes whether to automatically play the animation in reverse after playing it in the forward direction. Read/write boolean.

Returns: boolean

setAutoReverse(boolean value)

public final void setAutoReverse(boolean value)

Describes whether to automatically play the animation in reverse after playing it in the forward direction. Read/write boolean.

Parameters:

ParameterTypeDescription
valueboolean

getDuration()

public final float getDuration()

Describes the duration of animation effect. Read/write float.

Returns: float

setDuration(float value)

public final void setDuration(float value)

Describes the duration of animation effect. Read/write float.

Parameters:

ParameterTypeDescription
valuefloat

getRepeatCount()

public final float getRepeatCount()

Describes the number of times the effect should repeat. Read/write float.

Returns: float

setRepeatCount(float value)

public final void setRepeatCount(float value)

Describes the number of times the effect should repeat. Read/write float.

Parameters:

ParameterTypeDescription
valuefloat

getRepeatUntilEndSlide()

public final boolean getRepeatUntilEndSlide()

This attribute specifies if the effect will repeat until the end of the slide. Read/write boolean.


Presentation presentation = new Presentation("demo.pptx");
 try {
     // Get the effects sequence for the first slide
     ISequence effectsSequence = presentation.getSlides().get_Item(0).getTimeline().getMainSequence();
     // Get the first effect of main sequence.
     IEffect effect = effectsSequence.get_Item(0);
     // Change the effect Timing/Repeat to "Until End of Slide"
     effect.getTiming().setRepeatUntilEndSlide(true);
 } finally {
     if (presentation != null) presentation.dispose();
 }

Returns: boolean

setRepeatUntilEndSlide(boolean value)

public final void setRepeatUntilEndSlide(boolean value)

This attribute specifies if the effect will repeat until the end of the slide. Read/write boolean.


Presentation presentation = new Presentation("demo.pptx");
 try {
     // Get the effects sequence for the first slide
     ISequence effectsSequence = presentation.getSlides().get_Item(0).getTimeline().getMainSequence();
     // Get the first effect of main sequence.
     IEffect effect = effectsSequence.get_Item(0);
     // Change the effect Timing/Repeat to "Until End of Slide"
     effect.getTiming().setRepeatUntilEndSlide(true);
 } finally {
     if (presentation != null) presentation.dispose();
 }

Parameters:

ParameterTypeDescription
valueboolean

getRepeatUntilNextClick()

public final boolean getRepeatUntilNextClick()

This attribute specifies if the effect will repeat until the next click. Read/write boolean.


Presentation presentation = new Presentation("demo.pptx");
 try {
     // Get the effects sequence for the first slide
     ISequence effectsSequence = presentation.getSlides().get_Item(0).getTimeline().getMainSequence();
     // Get the first effect of main sequence.
     IEffect effect = effectsSequence.get_Item(0);
     // Change the effect Timing/Repeat to "Until Next Click"
     effect.getTiming().setRepeatUntilNextClick(true);
 } finally {
     if (presentation != null) presentation.dispose();
 }

Returns: boolean

setRepeatUntilNextClick(boolean value)

public final void setRepeatUntilNextClick(boolean value)

This attribute specifies if the effect will repeat until the next click. Read/write boolean.


Presentation presentation = new Presentation("demo.pptx");
 try {
     // Get the effects sequence for the first slide
     ISequence effectsSequence = presentation.getSlides().get_Item(0).getTimeline().getMainSequence();
     // Get the first effect of main sequence.
     IEffect effect = effectsSequence.get_Item(0);
     // Change the effect Timing/Repeat to "Until Next Click"
     effect.getTiming().setRepeatUntilNextClick(true);
 } finally {
     if (presentation != null) presentation.dispose();
 }

Parameters:

ParameterTypeDescription
valueboolean

getRepeatDuration()

public final float getRepeatDuration()

Describes the number of times the effect should repeat. Read/write float.

Returns: float

setRepeatDuration(float value)

public final void setRepeatDuration(float value)

Describes the number of times the effect should repeat. Read/write float.

Parameters:

ParameterTypeDescription
valuefloat

getRestart()

public final int getRestart()

Specifies if a effect is to restart after complete. Read/write EffectRestartType.

Returns: int

setRestart(int value)

public final void setRestart(int value)

Specifies if a effect is to restart after complete. Read/write EffectRestartType.

Parameters:

ParameterTypeDescription
valueint

getRewind()

public final boolean getRewind()

This attribute specifies if the effect will rewind when done playing. Read/write boolean.


Presentation presentation = new Presentation("demo.pptx");
 try {
     // Get the effects sequence for the first slide
     ISequence effectsSequence = presentation.getSlides().get_Item(0).getTimeline().getMainSequence();
     // Get the first effect of main sequence.
     IEffect effect = effectsSequence.get_Item(0);
     // Turn the effect Timing/Rewind on.
     effect.getTiming().setRewind(true);
 } finally {
     if (presentation != null) presentation.dispose();
 }

Returns: boolean

setRewind(boolean value)

public final void setRewind(boolean value)

This attribute specifies if the effect will rewind when done playing. Read/write boolean.


Presentation presentation = new Presentation("demo.pptx");
 try {
     // Get the effects sequence for the first slide
     ISequence effectsSequence = presentation.getSlides().get_Item(0).getTimeline().getMainSequence();
     // Get the first effect of main sequence.
     IEffect effect = effectsSequence.get_Item(0);
     // Turn the effect Timing/Rewind on.
     effect.getTiming().setRewind(true);
 } finally {
     if (presentation != null) presentation.dispose();
 }

Parameters:

ParameterTypeDescription
valueboolean

getSpeed()

public final float getSpeed()

Specifies the percentage by which to speed up (or slow down) the timing. Read/write float.

Returns: float

setSpeed(float value)

public final void setSpeed(float value)

Specifies the percentage by which to speed up (or slow down) the timing. Read/write float.

Parameters:

ParameterTypeDescription
valuefloat

getTriggerDelayTime()

public final float getTriggerDelayTime()

Describes delay time after trigger. Read/write float.

Returns: float

setTriggerDelayTime(float value)

public final void setTriggerDelayTime(float value)

Describes delay time after trigger. Read/write float.

Parameters:

ParameterTypeDescription
valuefloat

getTriggerType()

public final int getTriggerType()

Describes trigger type. Read/write EffectTriggerType.

Returns: int

setTriggerType(int value)

public final void setTriggerType(int value)

Describes trigger type. Read/write EffectTriggerType.

Parameters:

ParameterTypeDescription
valueint

getParent_Immediate()

public final IDOMObject getParent_Immediate()

Returns Parent_Immediate object. Read-only IDOMObject.

Returns: com.aspose.slides.IDOMObject