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
- All Implemented Interfaces:
GenericRecord
An atom record that specifies the animation information for a shape.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
whether the background of the shape is animatedstatic final int
whether the animation starts automaticallystatic final int
whether the shape is hidden while the animation is not playingstatic final int
whether an associated sound, media or action verb is activated when the shape is clicked.static final int
whether the animation plays in the reverse directionstatic final int
whether the animation has an associated soundstatic final int
whether all playing sounds are stopped when this animation beginsstatic final int
specifies that the animation, while playing, stops other slide show actions. -
Method Summary
Modifier and TypeMethodDescriptionint
A signed integer that specifies the delay time, in milliseconds, before the animation starts to play.int
A rgb structure that specifies a color for the dim effect after the animation is complete.boolean
getFlag
(int bit) int
getMask()
A bit mask specifying options for displaying headers and footersint
A signed integer that specifies the order of the animation in the slide.long
Gets the record type.int
An unsigned integer that specifies the number of slides that this animation continues playing.int
A 4-byte unsigned integer that specifies a reference to a sound in the SoundCollectionContainer record to locate the embedded audiovoid
setDelayTime
(int id) A signed integer that specifies the delay time, in milliseconds, before the animation starts to play.void
setDimColor
(int rgb) A rgb structure that specifies a color for the dim effect after the animation is complete.void
setFlag
(int bit, boolean value) void
setMask
(int mask) A bit mask specifying options for displaying videovoid
setOrderID
(int id) A signed integer that specifies the order of the animation in the slide.void
setSlideCount
(int id) An unsigned integer that specifies the number of slides that this animation continues playing.void
setSoundIdRef
(int id) A 4-byte unsigned integer that specifies a reference to a sound in the SoundCollectionContainer record to locate the embedded audiotoString()
void
writeOut
(OutputStream out) Write the contents of the record back, so it can be written to diskMethods inherited from class org.apache.poi.hslf.record.RecordAtom
getChildRecords, getMaxRecordLength, isAnAtom, setMaxRecordLength
Methods inherited from class org.apache.poi.hslf.record.Record
buildRecordAtOffset, createRecordForType, findChildRecords, getGenericChildren, getGenericRecordType, writeLittleEndian, writeLittleEndian
-
Field Details
-
Reverse
public static final int Reversewhether the animation plays in the reverse direction- See Also:
-
Automatic
public static final int Automaticwhether the animation starts automatically- See Also:
-
Sound
public static final int Soundwhether the animation has an associated sound- See Also:
-
StopSound
public static final int StopSoundwhether all playing sounds are stopped when this animation begins- See Also:
-
Play
public static final int Playwhether an associated sound, media or action verb is activated when the shape is clicked.- See Also:
-
Synchronous
public static final int Synchronousspecifies that the animation, while playing, stops other slide show actions.- See Also:
-
Hide
public static final int Hidewhether the shape is hidden while the animation is not playing- See Also:
-
AnimateBg
public static final int AnimateBgwhether the background of the shape is animated- See Also:
-
-
Method Details
-
getRecordType
public long getRecordType()Gets the record type.- Specified by:
getRecordType
in classRecord
- Returns:
- the record type.
-
writeOut
Write the contents of the record back, so it can be written to disk- Specified by:
writeOut
in classRecord
- Parameters:
out
- the output stream to write to.- Throws:
IOException
- if an error occurs.
-
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. IfAutomatic
is 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. IfAutomatic
is 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 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 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
-
getGenericProperties
-