public final class SoundAnnotation extends MarkupAnnotation
Represents a sound annotation that contains sound recorded from the computer's microphone or imported from a file.
| Constructor and Description |
|---|
SoundAnnotation(Page page,
Rectangle rect,
String soundFile)
Creates new Sound annotation on the specified page.
|
SoundAnnotation(Page page,
Rectangle rect,
String soundFile,
SoundSampleData soundSampleData)
Creates new Sound annotation on the specified page.
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
|
AnnotationType |
getAnnotationType()
Gets type of annotation.
|
int |
getIcon()
Gets an icon to be used in displaying the annotation.
|
SoundData |
getSoundData()
Gets a sound object defining the sound to be played when the annotation is activated.
|
void |
setIcon(int value)
Sets an icon to be used in displaying the annotation.
|
clearState, getCreationDate, getInReplyTo, getOpacity, getPopup, getReplyType, getRichText, getState, getStateModel, getSubject, getTitle, setCreationDate, setInReplyTo, setMarkedState, setOpacity, setPopup, setReplyType, setReviewState, setReviewState, setRichText, setSubject, setTitlechangeAfterResize, createAnnotation, flatten, getActiveState, getAlignment, getAppearance, getBorder, getCharacteristics, getColor, getContents, getEngineDict, getEngineObj, getFlags, getFullName, getHeight, getHorizontalAlignment_Annotation_New, getModified, getModifiedInternal, getName, getNormalAppearance, getPage, getPageIndex, getPageIndex, getPdfActions, getRect, getRectangle, getStates, getTextHorizontalAlignment, getWidth, initialize, isUpdateAppearanceOnConvert, isUseFontSubset, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidthdeepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndexpublic SoundAnnotation(Page page, Rectangle rect, String soundFile)
Creates new Sound annotation on the specified page.
page - The document's page where annotation should be created.rect - The annotation rectangle, defining the location of the annotation on the page.soundFile - A sound file defining the sound to be played when the annotation is activated.public SoundAnnotation(Page page, Rectangle rect, String soundFile, SoundSampleData soundSampleData)
Creates new Sound annotation on the specified page.
page - The document's page where annotation should be created.rect - The annotation rectangle, defining the location of the annotation on the page.soundFile - A sound file defining the sound to be played when the annotation is activated.soundSampleData - A sound sample data contains extra of sound parameters such as sampling rate, bits per sample
and so on.public int getIcon()
Gets an icon to be used in displaying the annotation.
SoundIconpublic void setIcon(int value)
Sets an icon to be used in displaying the annotation.
value - SoundIcon valueSoundIconpublic SoundData getSoundData()
Gets a sound object defining the sound to be played when the annotation is activated.
public AnnotationType getAnnotationType()
Gets type of annotation.
getAnnotationType in class AnnotationAnnotationTypepublic void accept(AnnotationSelector visitor)
Accepts visitor object to process the annotation.
accept in class Annotationvisitor - Visitor object.Copyright © 2025 Aspose. All Rights Reserved.