SoundAnnotation
Inheritance: java.lang.Object, com.aspose.pdf.BaseParagraph com.aspose.pdf.Annotation com.aspose.pdf.MarkupAnnotation com.aspose.pdf.SoundAnnotation, com.aspose.pdf.BaseParagraph, com.aspose.pdf.Annotation com.aspose.pdf.MarkupAnnotation com.aspose.pdf.SoundAnnotation, com.aspose.pdf.Annotation, com.aspose.pdf.MarkupAnnotation com.aspose.pdf.SoundAnnotation, com.aspose.pdf.MarkupAnnotation, com.aspose.pdf.SoundAnnotation
All Implemented Interfaces: com.aspose.ms.System.ICloneable, com.aspose.pdf.engine.ITitledAnnotation
public final class SoundAnnotation extends MarkupAnnotation
Represents a sound annotation that contains sound recorded from the computer’s microphone or imported from a file.
Constructors
| Constructor | Description |
|---|---|
| SoundAnnotation | Creates new Sound annotation on the specified page. |
| SoundAnnotation | Creates new Sound annotation on the specified page. |
Methods
| Method | Description |
|---|---|
| accept | Accepts visitor object to process the annotation. |
| getAnnotationType | Gets type of annotation. |
| getIcon | Gets an icon to be used in displaying the annotation. |
| getSoundData | Gets a sound object defining the sound to be played when the annotation is activated. |
| setIcon | Sets an icon to be used in displaying the annotation. |
SoundAnnotation
Creates new Sound annotation on the specified page.
SoundAnnotation
Creates new Sound annotation on the specified page.
accept
Accepts visitor object to process the annotation.
getAnnotationType
public AnnotationType getAnnotationType()
Gets type of annotation.
Returns: AnnotationType value @see AnnotationType
getIcon
public int getIcon()
Gets an icon to be used in displaying the annotation.
Returns: SoundIcon value @see SoundIcon
getSoundData
public SoundData getSoundData()
Gets a sound object defining the sound to be played when the annotation is activated.
Returns: SoundData value
setIcon
public void setIcon(int value)
Sets an icon to be used in displaying the annotation.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | SoundIcon value @see SoundIcon |