|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.faceless.pdf2.PDFAnnotation
org.faceless.pdf2.AnnotationSound
public final class AnnotationSound
A subtype of PDFAnnotation
that allows audio samples to be attached to the PDF.
There are several ways to add audio to Acrobat - this approach is the "Acrobat 5.0"
compatible approach as described in Acrobat 9.0. The other main approach is to add
a playSound
action to a FormButton
or similar object.
Constructor Summary | |
---|---|
AnnotationSound()
Create a new Sound annotation. |
Method Summary | |
---|---|
PDFSound |
getSound()
Return the PDFSound from this annotation |
void |
setSound(PDFSound sound)
Set the contents of this annotation to the specified sound. |
void |
setType(String type,
Color color)
Set the type of attachment - the physical appearance on the page. |
String |
toString()
|
Methods inherited from class org.faceless.pdf2.PDFAnnotation |
---|
addPropertyChangeListener, addReview, flatten, getAuthor, getColor, getContents, getCreationDate, getInReplyTo, getMetaData, getModifyDate, getOpacity, getPage, getPopup, getRectangle, getReplies, getReviews, getSubject, getType, getUniqueID, hasAppearanceState, isContentLocked, isPositionLocked, isPrintable, isReadOnly, isVisible, removePropertyChangeListener, setAuthor, setColor, setContents, setCreationDate, setInReplyTo, setLocked, setMetaData, setModifyDate, setOpacity, setPage, setPrintable, setReadOnly, setRectangle, setSubject, setUniqueID, setVisible |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AnnotationSound()
setSound()
method must be called.
Method Detail |
---|
public void setType(String type, Color color)
IllegalArgumentException
will be thrown.
type
- the type of attachment - one of the three values listed above.color
- the color of the attachmentpublic void setSound(PDFSound sound)
sound
- the PDFSound object to usepublic PDFSound getSound()
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |