com.spire.pdf.actions
Class PdfSoundAction

java.lang.Object
  extended by com.spire.pdf.actions.PdfAction
      extended by com.spire.pdf.actions.PdfSoundAction
All Implemented Interfaces:
IPdfWrapper

public class PdfSoundAction
extends PdfAction

Represents the sound action.


Constructor Summary
PdfSoundAction(java.lang.String fileName)
          Initializes a new instance of the class.
 
Method Summary
 boolean getRepeat()
          Gets a value indicating whether to repeat the sound indefinitely.
 PdfSound getSound()
          Gets the sound.
 float getVolume()
          Gets the volume at which to play the sound, in the range -1.0 to 1.0.
 void setRepeat(boolean value)
          Sets a value indicating whether to repeat the sound indefinitely.
 void setSound(PdfSound value)
          Sets the sound.
 void setVolume(float value)
          Sets the volume at which to play the sound, in the range -1.0 to 1.0.
 
Methods inherited from class com.spire.pdf.actions.PdfAction
getDictionary, getNextAction, setNextAction
 

Constructor Detail

PdfSoundAction

public PdfSoundAction(java.lang.String fileName)
Initializes a new instance of the class.

Parameters:
fileName - Name of the sound file.
Method Detail

getVolume

public float getVolume()
Gets the volume at which to play the sound, in the range -1.0 to 1.0.


setVolume

public void setVolume(float value)
Sets the volume at which to play the sound, in the range -1.0 to 1.0.


getSound

public PdfSound getSound()
Gets the sound.


setSound

public void setSound(PdfSound value)
Sets the sound.


getRepeat

public boolean getRepeat()
Gets a value indicating whether to repeat the sound indefinitely. If this entry is present, the property is ignored. Default value: false.


setRepeat

public void setRepeat(boolean value)
Sets a value indicating whether to repeat the sound indefinitely. If this entry is present, the property is ignored. Default value: false.