public final class Sequence extends java.lang.Object implements ISequence
Represents sequence (collection of effects).
| Modifier and Type | Method and Description |
|---|---|
IEffect |
addEffect(IChart chart,
int type,
int index,
int effectType,
int subtype,
int triggerType)
Adds the new chart animation effect for category or series to the end of sequence.
|
IEffect |
addEffect(IChart chart,
int type,
int seriesIndex,
int categoriesIndex,
int effectType,
int subtype,
int triggerType)
Adds the new chart animation effect for elements in category or series to the end of sequence.
|
IEffect |
addEffect(IParagraph paragraph,
int effectType,
int subtype,
int triggerType)
Add new animation effect for paragraph to the end of sequence.
|
IEffect |
addEffect(IShape shape,
int effectType,
int subtype,
int triggerType)
Add new effect to the end of sequence.
|
void |
clear()
Removes all effects from a collection.
|
IEffect |
get_Item(int index)
Returns an effect at the specified index.
|
int |
getCount()
Returns the number of effects in a sequense.
|
int |
getCount(IShape shape)
Returns count of effects for the specified shape.
|
IEffect[] |
getEffectsByParagraph(IParagraph paragraph)
Returns array of effects for the specified paragraph.
|
IEffect[] |
getEffectsByShape(IShape shape)
Returns array of effects for the specified shape.
|
IShape |
getTriggerShape()
Returns or sets shape target for INTERACTIVE sequence.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IEffect> |
iterator()
Returns an enumerator that iterates through the collection.
|
com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IEffect> |
iteratorJava()
Returns a java iterator for the entire collection.
|
void |
remove(IEffect item)
Removes specified effect from a collection.
|
void |
removeAt(int index)
Removes an effect from a collection.
|
void |
removeByShape(IShape shape)
Remove effect for the specified shape.
|
void |
setTriggerShape(IShape value)
Returns or sets shape target for INTERACTIVE sequence.
|
public final int getCount()
Returns the number of effects in a sequense.
Read-only int.
public final void remove(IEffect item)
Removes specified effect from a collection.
public final void removeAt(int index)
Removes an effect from a collection.
public final void clear()
Removes all effects from a collection.
public final IEffect get_Item(int index)
Returns an effect at the specified index.
public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IEffect> iterator()
Returns an enumerator that iterates through the collection.
iterator in interface com.aspose.ms.System.Collections.Generic.IGenericEnumerable<IEffect>iterator in interface com.aspose.ms.System.Collections.IEnumerable<IEffect>iterator in interface java.lang.Iterable<IEffect>IGenericEnumerator that can be used to iterate through the collection.public final com.aspose.ms.System.Collections.Generic.IGenericEnumerator<IEffect> iteratorJava()
Returns a java iterator for the entire collection.
Iterator for the entire collection.public final IShape getTriggerShape()
Returns or sets shape target for INTERACTIVE sequence.
If sequence is not interactive then returns null.
Read/write IShape.
getTriggerShape in interface ISequencepublic final void setTriggerShape(IShape value)
Returns or sets shape target for INTERACTIVE sequence.
If sequence is not interactive then returns null.
Read/write IShape.
setTriggerShape in interface ISequencepublic final void removeByShape(IShape shape)
Remove effect for the specified shape.
removeByShape in interface ISequenceshape - Shape object IShapepublic final IEffect[] getEffectsByShape(IShape shape)
Returns array of effects for the specified shape.
getEffectsByShape in interface ISequenceshape - Shape object IShapeIEffectpublic final IEffect[] getEffectsByParagraph(IParagraph paragraph)
Returns array of effects for the specified paragraph.
getEffectsByParagraph in interface ISequenceparagraph - Paragraph object IParagraphIEffectpublic final int getCount(IShape shape)
Returns count of effects for the specified shape.
public final IEffect addEffect(IShape shape, int effectType, int subtype, int triggerType)
Add new effect to the end of sequence.
addEffect in interface ISequenceshape - Shape object IShape for adding an effecteffectType - Type of an animation effect EffectTypesubtype - Subtypes of animation effect EffectSubtypetriggerType - Trigger type of effect EffectTriggerTypeIEffectpublic final IEffect addEffect(IParagraph paragraph, int effectType, int subtype, int triggerType)
Add new animation effect for paragraph to the end of sequence.
Presentation presentation = new Presentation(path + "input.pptx"); try { // select paragraph to add effect IAutoShape autoShape = (IAutoShape)presentation.getSlides().get_Item(0).getShapes().get_Item(0); IParagraph paragraph = autoShape.getTextFrame().getParagraphs().get_Item(0); // add Fly animation effect to selected paragraph IEffect effect = presentation.getSlides().get_Item(0).getTimeline().getMainSequence().addEffect( paragraph, EffectType.Fly, EffectSubtype.Left, EffectTriggerType.OnClick); } finally { if (presentation != null) presentation.dispose(); }
addEffect in interface ISequenceparagraph - Paragraph object IParagrapheffectType - Type of an animation effect EffectTypesubtype - Subtypes of animation effect EffectSubtypetriggerType - Trigger type of effect EffectTriggerTypeIEffectpublic final IEffect addEffect(IChart chart, int type, int index, int effectType, int subtype, int triggerType)
Adds the new chart animation effect for category or series to the end of sequence.
addEffect in interface ISequencechart - Chart object ICharttype - Type of an animation effect EffectChartMinorGroupingTypeindex - Index inteffectType - Type of an animation effect EffectTypesubtype - Subtypes of animation effect EffectSubtypetriggerType - Trigger type of effect EffectTriggerTypeIEffectpublic final IEffect addEffect(IChart chart, int type, int seriesIndex, int categoriesIndex, int effectType, int subtype, int triggerType)
Adds the new chart animation effect for elements in category or series to the end of sequence.
addEffect in interface ISequencechart - Chart object ICharttype - Type of an animation effect EffectChartMinorGroupingTypeseriesIndex - Index of chart series intcategoriesIndex - Index of category inteffectType - Type of an animation effect EffectTypesubtype - Subtypes of animation effect EffectSubtypetriggerType - Trigger type of effect EffectTriggerTypeIEffectCopyright © 2004-2025 Aspose Pty Ltd. All Rights Reserved.