Package org.apache.poi.hslf.record
Class AnimationInfoAtom
- java.lang.Object
-
- org.apache.poi.hslf.record.Record
-
- org.apache.poi.hslf.record.RecordAtom
-
- org.apache.poi.hslf.record.AnimationInfoAtom
-
public final class AnimationInfoAtom extends RecordAtom
An atom record that specifies the animation information for a shape.
-
-
Field Summary
Fields Modifier and Type Field Description static intAnimateBgwhether the background of the shape is animatedstatic intAutomaticwhether the animation starts automaticallystatic intHidewhether the shape is hidden while the animation is not playingstatic intPlaywhether an associated sound, media or action verb is activated when the shape is clicked.static intReversewhether the animation plays in the reverse directionstatic intSoundwhether the animation has an associated soundstatic intStopSoundwhether all playing sounds are stopped when this animation beginsstatic intSynchronousspecifies that the animation, while playing, stops other slide show actions.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDelayTime()A signed integer that specifies the delay time, in milliseconds, before the animation starts to play.intgetDimColor()A rgb structure that specifies a color for the dim effect after the animation is complete.booleangetFlag(int bit)intgetMask()A bit mask specifying options for displaying headers and footersintgetOrderID()A signed integer that specifies the order of the animation in the slide.longgetRecordType()Gets the record type.intgetSlideCount()An unsigned integer that specifies the number of slides that this animation continues playing.intgetSoundIdRef()A 4-byte unsigned integer that specifies a reference to a sound in the SoundCollectionContainer record to locate the embedded audiovoidsetDelayTime(int id)A signed integer that specifies the delay time, in milliseconds, before the animation starts to play.voidsetDimColor(int rgb)A rgb structure that specifies a color for the dim effect after the animation is complete.voidsetFlag(int bit, boolean value)voidsetMask(int mask)A bit mask specifying options for displaying videovoidsetOrderID(int id)A signed integer that specifies the order of the animation in the slide.voidsetSlideCount(int id)An unsigned integer that specifies the number of slides that this animation continues playing.voidsetSoundIdRef(int id)A 4-byte unsigned integer that specifies a reference to a sound in the SoundCollectionContainer record to locate the embedded audiojava.lang.StringtoString()voidwriteOut(java.io.OutputStream out)Write the contents of the record back, so it can be written to disk-
Methods inherited from class org.apache.poi.hslf.record.RecordAtom
getChildRecords, isAnAtom
-
Methods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, writeLittleEndian, writeLittleEndian
-
-
-
-
Field Detail
-
Reverse
public static final int Reverse
whether the animation plays in the reverse direction- See Also:
- Constant Field Values
-
Automatic
public static final int Automatic
whether the animation starts automatically- See Also:
- Constant Field Values
-
Sound
public static final int Sound
whether the animation has an associated sound- See Also:
- Constant Field Values
-
StopSound
public static final int StopSound
whether all playing sounds are stopped when this animation begins- See Also:
- Constant Field Values
-
Play
public static final int Play
whether an associated sound, media or action verb is activated when the shape is clicked.- See Also:
- Constant Field Values
-
Synchronous
public static final int Synchronous
specifies that the animation, while playing, stops other slide show actions.- See Also:
- Constant Field Values
-
Hide
public static final int Hide
whether the shape is hidden while the animation is not playing- See Also:
- Constant Field Values
-
AnimateBg
public static final int AnimateBg
whether the background of the shape is animated- See Also:
- Constant Field Values
-
-
Method Detail
-
getRecordType
public long getRecordType()
Gets the record type.- Specified by:
getRecordTypein classRecord- Returns:
- the record type.
-
writeOut
public void writeOut(java.io.OutputStream out) throws java.io.IOExceptionWrite the contents of the record back, so it can be written to disk
-
getDimColor
public int getDimColor()
A rgb structure that specifies a color for the dim effect after the animation is complete.- Returns:
- color for the dim effect after the animation is complete
-
setDimColor
public void setDimColor(int rgb)
A rgb structure that specifies a color for the dim effect after the animation is complete.- Parameters:
rgb- color for the dim effect after the animation is complete
-
getMask
public int getMask()
A bit mask specifying options for displaying headers and footers- Returns:
- A bit mask specifying options for displaying headers and footers
-
setMask
public void setMask(int mask)
A bit mask specifying options for displaying video- Parameters:
mask- A bit mask specifying options for displaying video
-
getFlag
public boolean getFlag(int bit)
- Parameters:
bit- the bit to check- Returns:
- whether the specified flag is set
-
setFlag
public void setFlag(int bit, boolean value)- Parameters:
bit- the bit to setvalue- whether the specified bit is set
-
getSoundIdRef
public int getSoundIdRef()
A 4-byte unsigned integer that specifies a reference to a sound in the SoundCollectionContainer record to locate the embedded audio- Returns:
- reference to a sound
-
setSoundIdRef
public void setSoundIdRef(int id)
A 4-byte unsigned integer that specifies a reference to a sound in the SoundCollectionContainer record to locate the embedded audio- Parameters:
id- reference to a sound
-
getDelayTime
public int getDelayTime()
A signed integer that specifies the delay time, in milliseconds, before the animation starts to play. IfAutomaticis 0x1, this value MUST be greater than or equal to 0; otherwise, this field MUST be ignored.
-
setDelayTime
public void setDelayTime(int id)
A signed integer that specifies the delay time, in milliseconds, before the animation starts to play. IfAutomaticis 0x1, this value MUST be greater than or equal to 0; otherwise, this field MUST be ignored.
-
getOrderID
public int getOrderID()
A signed integer that specifies the order of the animation in the slide. It MUST be greater than or equal to -2. The value -2 specifies that this animation follows the order of the corresponding placeholder shape on the main master slide or title master slide. The value -1 SHOULD NOT <105> be used.
-
setOrderID
public void setOrderID(int id)
A signed integer that specifies the order of the animation in the slide. It MUST be greater than or equal to -2. The value -2 specifies that this animation follows the order of the corresponding placeholder shape on the main master slide or title master slide. The value -1 SHOULD NOT <105> be used.
-
getSlideCount
public int getSlideCount()
An unsigned integer that specifies the number of slides that this animation continues playing. This field is utilized only in conjunction with media. The value 0xFFFFFFFF specifies that the animation plays for one slide.
-
setSlideCount
public void setSlideCount(int id)
An unsigned integer that specifies the number of slides that this animation continues playing. This field is utilized only in conjunction with media. The value 0xFFFFFFFF specifies that the animation plays for one slide.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-