public final class ScreenAnnotation extends Annotation
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)
Accepts visitor for annotation processing.
|
PdfAction |
getAction()
Gets an action to be performed when the annotation is activated.
|
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, getRect, getStates, getWidth, initialize, setActiveState, setAlignment, setBorder, setColor, setContents, setFlags, setHeight, setHorizontalAlignment_Annotation_New, setModified, setModifiedInternal, setName, setRect, setWidth
deepClone, getMargin, isKeptWithNext, isKeptWithNext, setHorizontalAlignment, setMargin, setVerticalAlignment
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)
Annotation
Accepts visitor for annotation processing.
accept
in class Annotation
visitor
- Visitor for annotation processing.public String getTitle()
Gets the title of the screen annotation.
public void setTitle(String value)
Sets the title of the screen annotation.
public 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.
Copyright © 2019 Aspose. All Rights Reserved.