public final class ScreenAnnotation extends Annotation implements com.aspose.pdf.engine.ITitledAnnotation
A screen annotation that specifies a region of a page upon which media clips may be played.
_disableUpdateAppearance
Constructor and Description |
---|
ScreenAnnotation(Page page,
Rectangle rect,
String mediaFile)
Creates new Screen annotation on the specified page.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(AnnotationSelector visitor)
Represent accept method
|
PdfAction |
getAction()
Gets an action to be performed when the annotation is activated.
|
int |
getAnnotationType()
Gets type of annotation.
|
String |
getTitle()
Gets the title of the screen annotation.
|
void |
setAction(PdfAction value)
Sets an action to be performed when the annotation is activated.
|
void |
setTitle(String value)
Sets the title of the screen annotation.
|
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, setStructParent, setTextHorizontalAlignment, setUpdateAppearanceOnConvert, setUseFontSubset, setWidth
deepClone, getHorizontalAlignment, getHyperlink, getMargin, getVerticalAlignment, getZIndex, isFirstParagraphInColumn, isInLineParagraph, isInNewPage, isKeptWithNext, setFirstParagraphInColumn, setHorizontalAlignment, setHyperlink, setInLineParagraph, setInNewPage, setKeptWithNext, setMargin, setVerticalAlignment, setZIndex
public ScreenAnnotation(Page page, Rectangle rect, String mediaFile)
Creates new Screen 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.mediaFile
- The path to multimedia file.public void accept(AnnotationSelector visitor)
Represent accept method
accept
in class Annotation
visitor
- AnnotationSelector objectpublic String getTitle()
Gets the title of the screen annotation.
getTitle
in interface com.aspose.pdf.engine.ITitledAnnotation
public void setTitle(String value)
Sets the title of the screen annotation.
setTitle
in interface com.aspose.pdf.engine.ITitledAnnotation
value
- String valuepublic PdfAction getAction()
Gets an action to be performed when the annotation is activated.
public void setAction(PdfAction value)
Sets an action to be performed when the annotation is activated.
value
- PdfAction objectpublic int getAnnotationType()
Gets type of annotation.
getAnnotationType
in class Annotation
AnnotationType