pdftron.PDF.Annots
Class Screen
java.lang.Object
pdftron.PDF.Annot
pdftron.PDF.Annots.Screen
public class Screen
- extends Annot
A screen annotation (PDF 1.5) specifies a region of a page upon which
media clips may be played. It also serves as an object from which
actions can be triggered. 12.6.4.13, “Rendition Actions” discusses
the relationship between screen annotations and rendition actions.
|
Field Summary |
static int |
e_Always
This enum represents the circumstances under which
the icon shall be scaled inside the annotation rectangle . |
static int |
e_Anamorphic
This integer list represents the scale type of the Screen annotation
e_Anamorphic - Scale the icon to fill the annotation rectangle
exactly, without regard to its original aspect
ratio (ratio of width to height). |
static int |
e_CAboveI
The Constant e_CAboveI. |
static int |
e_CBelowI
The Constant e_CBelowI. |
static int |
e_CLeftIRight
The Constant e_CLeftIRight. |
static int |
e_COverlayI
The Constant e_COverlayI. |
static int |
e_CRightILeft
The Constant e_CRightILeft. |
static int |
e_Never
The Constant e_Never. |
static int |
e_NoCaption
The Constant e_NoCaption. |
static int |
e_NoIcon
This enum represents the Icon and Caption Relation of the Screen annotation
e_NoIcon - No icon; caption only
e_NoCaption - No caption; icon only
e_CBelowI - Caption below the icon
e_CAboveI - Caption above the icon
e_CRightILeft - Caption to the right of the icon
e_CLeftIRight - Caption to the left of the icon
e_COverlayI - Caption overlaid directly on the icon
Default value: e_NoIcon. |
static int |
e_Proportional
The Constant e_Proportional. |
static int |
e_WhenBigger
The Constant e_WhenBigger. |
static int |
e_WhenSmaller
The Constant e_WhenSmaller. |
| Fields inherited from class pdftron.PDF.Annot |
e_3D, e_Caret, e_Circle, e_down, e_FileAttachment, e_FreeText, e_hidden, e_Highlight, e_Ink, e_invisible, e_Line, e_Link, e_locked, e_locked_contents, e_Movie, e_no_rotate, e_no_view, e_no_zoom, e_normal, e_Polygon, e_Polyline, e_Popup, e_print, e_PrinterMark, e_Projection, e_read_only, e_Redact, e_RichMedia, e_rollover, e_Screen, e_Sound, e_Square, e_Squiggly, e_Stamp, e_StrikeOut, e_Text, e_toggle_no_view, e_TrapNet, e_Underline, e_Unknown, e_Watermark, e_Widget |
|
Constructor Summary |
Screen()
Creates an empty Screen annotation. |
Screen(Annot annot)
Creates a Screen annotation and initialize it using given annotation object. |
Screen(Obj d)
Creates a Screen annotation and initialize it using given Cos/SDF object. |
| Methods inherited from class pdftron.PDF.Annot |
__Create, __GetHandle, __GetRefHandle, create, equals, flatten, getActiveAppearanceState, getAppearance, getAppearance, getAppearance, getBorderStyle, getColorAsCMYK, getColorAsGray, getColorAsRGB, getColorCompNum, getContents, getDate, getFlag, getOptionalContent, getPage, getRect, getSDFObj, GetStructParent, getType, getUniqueID, isMarkup, isValid, refreshAppearance, removeAppearance, resize, setActiveAppearanceState, setAppearance, setAppearance, setAppearance, setBorderStyle, setColor, setContents, setDate, setFlag, setOptionalContent, setPage, setRect, setStructParent, setUniqueID |
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
e_Anamorphic
public static final int e_Anamorphic
- This integer list represents the scale type of the Screen annotation
e_Anamorphic - Scale the icon to fill the annotation rectangle
exactly, without regard to its original aspect
ratio (ratio of width to height).
e_Proportional - Scale the icon to fit the width or height
of the annotation rectangle while maintaining
the icon’s original aspect ratio. If the
required horizontal and vertical scaling
factors are different, use the smaller of the two,
centering the icon within the annotation rectangle
in the other dimension.
Default value: e_Proportional.
- See Also:
- Constant Field Values
e_Proportional
public static final int e_Proportional
- The Constant e_Proportional.
- See Also:
- Constant Field Values
e_NoIcon
public static final int e_NoIcon
- This enum represents the Icon and Caption Relation of the Screen annotation
e_NoIcon - No icon; caption only
e_NoCaption - No caption; icon only
e_CBelowI - Caption below the icon
e_CAboveI - Caption above the icon
e_CRightILeft - Caption to the right of the icon
e_CLeftIRight - Caption to the left of the icon
e_COverlayI - Caption overlaid directly on the icon
Default value: e_NoIcon.
- See Also:
- Constant Field Values
e_NoCaption
public static final int e_NoCaption
- The Constant e_NoCaption.
- See Also:
- Constant Field Values
e_CBelowI
public static final int e_CBelowI
- The Constant e_CBelowI.
- See Also:
- Constant Field Values
e_CAboveI
public static final int e_CAboveI
- The Constant e_CAboveI.
- See Also:
- Constant Field Values
e_CRightILeft
public static final int e_CRightILeft
- The Constant e_CRightILeft.
- See Also:
- Constant Field Values
e_CLeftIRight
public static final int e_CLeftIRight
- The Constant e_CLeftIRight.
- See Also:
- Constant Field Values
e_COverlayI
public static final int e_COverlayI
- The Constant e_COverlayI.
- See Also:
- Constant Field Values
e_Always
public static final int e_Always
- This enum represents the circumstances under which
the icon shall be scaled inside the annotation rectangle .
e_Always,
e_WhenBigger,
e_WhenSmaller,
e_Never
- See Also:
- Constant Field Values
e_WhenBigger
public static final int e_WhenBigger
- The Constant e_WhenBigger.
- See Also:
- Constant Field Values
e_WhenSmaller
public static final int e_WhenSmaller
- The Constant e_WhenSmaller.
- See Also:
- Constant Field Values
e_Never
public static final int e_Never
- The Constant e_Never.
- See Also:
- Constant Field Values
Screen
public Screen(Obj d)
- Creates a Screen annotation and initialize it using given Cos/SDF object.
- Parameters:
d - the input Cos/SDF object- Note:
- The constructor does not copy any data, but is instead the logical
equivalent of a type cast.
Screen
public Screen()
- Creates an empty Screen annotation.
Screen
public Screen(Annot annot)
throws PDFNetException
- Creates a Screen annotation and initialize it using given annotation object.
- Parameters:
annot - the annot
- Throws:
PDFNetException- Note:
- The constructor does not copy any data, but is instead the logical
equivalent of a type cast.
create
public static Screen create(Doc doc,
Rect pos)
throws PDFNetException
- Creates a new Screen annotation, in the specified document.
- Parameters:
doc - A document to which the annotation is added.pos - A rectangle specifying the annotation's bounds, specified in
user space coordinates.
- Returns:
- A newly created blank Screen annotation.
- Throws:
PDFNetException
getAction
public Action getAction()
throws PDFNetException
- Get the action of the Screen annotation.
- Returns:
- An action object representing the action of the Screen annotation.
- Throws:
PDFNetException- Note:
- The action is an action that shall be performed when the annotation is activated
getTitle
public java.lang.String getTitle()
throws PDFNetException
- Get the title of the Screen Annotation.
- Returns:
- A string representing the title of the Screen Annotation
- Throws:
PDFNetException
setTitle
public void setTitle(java.lang.String title)
throws PDFNetException
- Set the title of the Screen Annotation.
(Optional)
- Parameters:
title - A string representing the title of the Screen Annotation
- Throws:
PDFNetException
setAction
public void setAction(Action action)
throws PDFNetException
- Set the action of the Screen annotation
(Optional; PDF 1.1 )
- Parameters:
action - An action object representing the action of the Screen annotation.
- Throws:
PDFNetException- Note:
- The action is an action that shall be performed when the annotation is activated
getTriggerAction
public Obj getTriggerAction()
throws PDFNetException
- Get the additional actions stream of the Screen annotation.
- Returns:
- An SDF object representing the additional actions stream of the Screen annotation
- Throws:
PDFNetException- Note:
- An additional-actions dictionary defines the screen annotation’s behaviour
in response to various trigger events
setTriggerAction
public void setTriggerAction(Obj action)
throws PDFNetException
- Set the additional action stream of the Screen annotation
(Optional; PDF 1.1 )
- Parameters:
action - An action object representing the action of the Screen annotation.
- Throws:
PDFNetException- Note:
- An additional-actions dictionary defines the screen annotation’s behaviour
in response to various trigger events
getBorderColorCompNum
public int getBorderColorCompNum()
throws PDFNetException
- Get the number indicating border color space of the Screen annotation.
- Returns:
- An integer indicating a color space value from the ColorSpace::Type enum. That is, 1 corresponding to "e_device_gray",
3 corresponding to "e_device_rgb", and 4 corresponding to "e_device_cmyk" if color space is applicable,
orelse 0 corresponding to "e_null" if the color is transparent.
- Throws:
PDFNetException- Note:
- This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
getBorderColor
public ColorPt getBorderColor()
throws PDFNetException
- Get the border color of the Screen annotation.
- Returns:
- A ColorPt object that denotes the color of the Screen border.
- Throws:
PDFNetException- Note:
- that the color can be in different color spaces: Gray, RGB, or CMYK. Call "GetBorderColorCompNum"
to access the color space information corresponding to the border color., This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
setBorderColor
public void setBorderColor(ColorPt c,
int CompNum)
throws PDFNetException
- Set the border color of the Screen.
(Optional)
- Parameters:
c - A ColorPt object that denotes the color of the wdget border.CompNum - An int whose value implies the color space used for the parameter c.
- Throws:
PDFNetException- Note:
- it is necessary to make sure the consistancy between the ColorPt type
and the ColorSpace::Type value. e_device_gray corresponds to an array of two numbers;
e_device_rgb corresponds to an array of 3 numbers, e_device_cmyk corresponds to an array of
4 numnbers, while e_null correspons to an arry of 0 number. Entries out of the specified
color space array length will be desgarded. However, missing entries for a specified color space
will throw exception either when setting the color or when later retrieving color(colorspace)
information., This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
getBackgroundColorCompNum
public int getBackgroundColorCompNum()
throws PDFNetException
- Get the number indicating background color space of the Screen annotation.
- Returns:
- An integer indicating a color space value from the ColorSpace::Type enum. That is,
1 corresponding to "e_device_gray",
3 corresponding to "e_device_rgb", and 4 corresponding to "e_device_cmyk" if color space is applicable,
orelse 0 corresponding to "e_null" if the color is transparent.
- Throws:
PDFNetException- Note:
- This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
getBackgroundColor
public ColorPt getBackgroundColor()
throws PDFNetException
- Get the background color of the Screen annotation.
- Returns:
- A ColorPt object that denotes the color of the Screen background.
- Throws:
PDFNetException- Note:
- that the color can be in different color spaces: Gray, RGB, or CMYK. Call "GetBackgroundColorCompNum"
to access the color space information corresponding to the border color., This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
setBackgroundColor
public void setBackgroundColor(ColorPt c,
int CompNum)
throws PDFNetException
- Set the background color of the Screen.
(Optional)
- Parameters:
c - A ColorPt object that denotes the color of the wdget background.CompNum - An int whose value implies the color space used for the parameter c.
- Throws:
PDFNetException- Note:
- it is necessary to make sure the consistancy between the ColorPt type
and the ColorSpace::Type value. e_device_gray corresponds to an array of two numbers;
e_device_rgb corresponds to an array of 3 numbers, e_device_cmyk corresponds to an array of
4 numnbers, while e_null correspons to an arry of 0 number. Entries out of the specified
color space array length will be desgarded. However, missing entries for a specified color space
will throw exception either when setting the color or when later retrieving color(colorspace)
information., This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
getStaticCaptionText
public java.lang.String getStaticCaptionText()
throws PDFNetException
- Get static caption text of the Screen annotation.
- Returns:
- A string containing the static caption text of the Screen annotation.
- Throws:
PDFNetException- Note:
- The static caption is the widget annotation’s normal caption, which
shall be displayed when it is not interacting with the user.
Unlike the remaining entries with the captions, which apply only to widget
annotations associated with pushbutton fields, the Static Caption(CA) entry may be used
with any type of button field, including check boxes., This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
setStaticCaptionText
public void setStaticCaptionText(java.lang.String ct)
throws PDFNetException
- Set static caption text of the Screen annotation.
(Optional; button fields only)
- Parameters:
ct - A string containing the static caption text of the Screen annotation.
- Throws:
PDFNetException- Note:
- The static caption is the widget annotation’s normal caption, which
shall be displayed when it is not interacting with the user.
Unlike entries "RC, AC, I, RI, IX, IF, TP", which apply only to widget
annotations associated with pushbutton fields, the Static Caption(CA) entry may be used
with any type of button field, including check boxes., This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
getRolloverCaptionText
public java.lang.String getRolloverCaptionText()
throws PDFNetException
- Get the roll over caption text of the Screen annotation.
- Returns:
- A string containing the static caption text of the Screen annotation.
- Throws:
PDFNetException- Note:
- The rollover caption shall be displayed when the user rolls the cursor
into its active area without pressing the mouse button., This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
setRolloverCaptionText
public void setRolloverCaptionText(java.lang.String ct)
throws PDFNetException
- Set the roll over caption text of the Screen annotation.
(Optional; button fields only)
- Parameters:
ct - A string containing the roll over caption text of the Screen annotation.
- Throws:
PDFNetException- Note:
- The rollover caption shall be displayed when the user rolls the cursor
into its active area without pressing the mouse button.
getMouseDownCaptionText
public java.lang.String getMouseDownCaptionText()
throws PDFNetException
- Get the button down caption text of the Screen annotation.
- Returns:
- A string containing the button down text of the Screen annotation.
- Throws:
PDFNetException- Note:
- The button down caption shall be displayed when the mouse button is
pressed within its active area., This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
setMouseDownCaptionText
public void setMouseDownCaptionText(java.lang.String ct)
throws PDFNetException
- Set the button down caption text of the Screen annotation.
(Optional; button fields only)
- Parameters:
ct - A string containing the button down text of the Screen annotation.
- Throws:
PDFNetException- Note:
- The button down caption shall be displayed when the mouse button is
pressed within its active area., This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
getStaticIcon
public Obj getStaticIcon()
throws PDFNetException
- Get the static icon associated with the Screen annotation.
- Returns:
- An SDF object that represents the static icon
associated with the Screen annotation.
- Throws:
PDFNetException- Note:
- The static icon object is a form XObject defining the
widget annotation’s normal icon, which shall be
displayed when it is not interacting with the user., This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
setStaticIcon
public void setStaticIcon(Obj ic)
throws PDFNetException
- Set the static icon associated with the Screen annotation.
(Optional; button fields only)
- Parameters:
ic - An SDF object that represents the static icon
associated with the Screen annotation.
- Throws:
PDFNetException- Note:
- The static icon object is a form XObject defining the
widget annotation’s normal icon, which shall be
displayed when it is not interacting with the user., This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
getRolloverIcon
public Obj getRolloverIcon()
throws PDFNetException
- Get the rollover icon associated with the Screen annotation.
- Returns:
- An SDF object that represents the rollover icon
associated with the Screen annotation.
- Throws:
PDFNetException- Note:
- The rollover icon object is a form XObject defining the
widget annotation’s rollover icon, which shall be displayed
when the user rolls the cursor into its active area without
pressing the mouse button., This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
setRolloverIcon
public void setRolloverIcon(Obj ic)
throws PDFNetException
- Set the rollover icon associated with the Screen annotation.
(Optional; button fields only)
- Parameters:
ic - An SDF object that represents the rollover icon
associated with the Screen annotation.
- Throws:
PDFNetException- Note:
- The rollover icon object is a form XObject defining the
widget annotation’s rollover icon, which shall be displayed
when the user rolls the cursor into its active area without
pressing the mouse button., This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
getMouseDownIcon
public Obj getMouseDownIcon()
throws PDFNetException
- Get the Mouse Down icon associated with the Screen annotation.
- Returns:
- An SDF object that represents the Mouse Down icon
associated with the Screen annotation.
- Throws:
PDFNetException- Note:
- The Mouse Down icon object is a form XObject defining the
widget annotation’s alternate (down) icon, which shall be displayed
when the mouse button is pressed within its active area., This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
setMouseDownIcon
public void setMouseDownIcon(Obj ic)
throws PDFNetException
- Set the Mouse Down icon associated with the Screen annotation.
(Optional; button fields only)
Set the Mouse Down icon associated with the Screen annotation.
- Parameters:
ic - An SDF object that represents the Mouse Down icon
associated with the Screen annotation.
- Throws:
PDFNetException- Note:
- The Mouse Down icon object is a form XObject defining the
widget annotation’s alternate (down) icon, which shall be displayed
when the mouse button is pressed within its active area., This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
getScaleType
public int getScaleType()
throws PDFNetException
- Get the Scale Type of the Screen annotation.
- Returns:
- An entry of the "ScaleType" enum which represents the
Scale Type of the Screen annotation.
- Throws:
PDFNetException- Note:
- The type of scaling that shall be used:
e_Anamorphic - Anamorphic scaling: Scale the icon to fill the
annotation rectangle exactly, without regard to its original
aspect ratio (ratio of width to height).
e_Proportional - Proportional scaling: Scale the icon to fit
the width or height of the annotation rectangle while maintaining
the icon’s original aspect ratio. If the required horizontal and
vertical scaling factors are different, use the smaller of the two,
centering the icon within the annotation rectangle in the other
dimension.
Default value: P., This property is part of the Icon Fit dictionary, where the Icon Fit
dictionary specifys how to display the button’s icon within the annotation
rectangle of its widget annotation(Optional; pushbutton fields only)
If present, the icon fit dictionary shall apply to all of the annotation’s icons
(normal, rollover, and alternate).
setScaleType
public void setScaleType(int st)
throws PDFNetException
- Set the Scale Type of the Screen annotation.
(Optional)
- Parameters:
st - - an entry of the "ScaleType" enum which represents the
Scale Type of the Screen annotation.
- Throws:
PDFNetException- Note:
- The type of scaling that shall be used:
e_Anamorphic - Anamorphic scaling: Scale the icon to fill the
annotation rectangle exactly, without regard to its original
aspect ratio (ratio of width to height).
e_Proportional - Proportional scaling: Scale the icon to fit
the width or height of the annotation rectangle while maintaining
the icon’s original aspect ratio. If the required horizontal and
vertical scaling factors are different, use the smaller of the two,
centering the icon within the annotation rectangle in the other
dimension.
Default value: P., This property is part of the Icon Fit dictionary, where the Icon Fit
dictionary specifys how to display the button’s icon within the annotation
rectangle of its widget annotation(Optional; pushbutton fields only)
If present, the icon fit dictionary shall apply to all of the annotation’s icons
(normal, rollover, and alternate).
getIconCaptionRelation
public int getIconCaptionRelation()
throws PDFNetException
- Get the Icon and caption relationship of the Screen annotation.
- Returns:
- An entry of the "IconCaptionRelation" enum which
represents the relationship between the icon and the caption of the
Screen annotation.
- Throws:
PDFNetException- Note:
- the IconCaptionRelation entry indicates where to position the
text of the widget annotation’s caption relative to its icon, the options
are as follows:
e_NoIcon - No icon; caption only
e_NoCaption - No caption; icon only
e_CBelowI - Caption below the icon
e_CAboveI - Caption above the icon
e_CRightILeft - Caption to the right of the icon
e_CLeftIRight - Caption to the left of the icon
e_CoverlayI - Caption overlaid directly on the icon
Default value: e_NoIcon.
setIconCaptionRelation
public void setIconCaptionRelation(int icr)
throws PDFNetException
- Set the Icon and caption relationship of the Screen annotation.
(Optional; pushbutton fields only)
- Parameters:
icr - An entry of the "IconCaptionRelation" enum which
represents the relationship between the icon and the caption of the
Screen annotation.
- Throws:
PDFNetException- Note:
- the IconCaptionRelation entry indicates where to position the
text of the widget annotation’s caption relative to its icon.
The options
are as follows:
e_NoIcon - No icon; caption only
e_NoCaption - No caption; icon only
e_CBelowI - Caption below the icon
e_CAboveI - Caption above the icon
e_CRightILeft - Caption to the right of the icon
e_CLeftIRight - Caption to the left of the icon
e_CoverlayI - Caption overlaid directly on the icon
Default value: e_NoIcon.
getScaleCondition
public int getScaleCondition()
throws PDFNetException
- Get the condition under which the icon should be scaled.
- Returns:
- an entry of the "ScaleCondition" enum which the icon should
be scaled.
- Throws:
PDFNetException- Note:
- the ScaleCondition spedifies the circumstances under which the
icon shall be scaled inside the annotation rectangle.
The options are as follows:
e_Always - Always scale.
e_WhenBigger - Scale only when the icon is bigger than the annotation rectangle.
e_WhenSmaller - Scale only when the icon is smaller than the annotation rectangle.
e_Never - Never scale.
Default value: e_Always., This property is part of the Icon Fit dictionary, where the Icon Fit
dictionary specifys how to display the button’s icon within the annotation
rectangle of its widget annotation(Optional; pushbutton fields only)
If present, the icon fit dictionary shall apply to all of the annotation’s icons
(normal, rollover, and alternate).
SetScaleCondition
public void SetScaleCondition(int sd)
throws PDFNetException
- Set the condition under which the icon should be scaled.
(Optional)
- Parameters:
sd - An entry of the "ScaleCondition" enum which the icon should
be scaled.
- Throws:
PDFNetException- Note:
- the ScaleCondition spedifies the circumstances under which the
icon shall be scaled inside the annotation rectangle.
The options are as follows:
e_Always - Always scale.
e_WhenBigger - Scale only when the icon is bigger than the annotation rectangle.
e_WhenSmaller - Scale only when the icon is smaller than the annotation rectangle.
e_Never - Never scale.
Default value: e_Always., This property is part of the Icon Fit dictionary, where the Icon Fit
dictionary specifys how to display the button’s icon within the annotation
rectangle of its widget annotation(Optional; pushbutton fields only)
If present, the icon fit dictionary shall apply to all of the annotation’s icons
(normal, rollover, and alternate).
getRotation
public int getRotation()
throws PDFNetException
- Get the rotation value of the Screen annotation.
- Returns:
- An integer representing the rotation value of the Screen annotation.
- Throws:
PDFNetException- Note:
- The Rotation spedifies the number of degrees by which the widget
annotation shall be rotated counterclockwise relative to the page.
The value shall be a multiple of 90.
Default value: 0., This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
setRotation
public void setRotation(int rot)
throws PDFNetException
- Set the rotation value of the Screen annotation.
(Optional)
- Parameters:
rot - An integer representing the rotation value of the Screen annotation.
- Throws:
PDFNetException- Note:
- the Rotation spedifies the number of degrees by which the widget
annotation shall be rotated counterclockwise relative to the page.
The value shall be a multiple of 90.
Default value: 0.', This property is part of the Screen appearance characteristics dictionary, this dictionary
that shall be used in constructing a dynamic appearance stream specifying the annotation’s visual
presentation on the page.
getHIconLeftOver
public double getHIconLeftOver()
throws PDFNetException
- Get the horizontal leftover of the icon within the annotatin.
- Returns:
- A number indicating the horizontal
leftover of the icon within the annotation.
- Throws:
PDFNetException- Note:
- the horizontal leftover is a number that shall be between
0.0 and 1.0 indicating the fraction of leftover space to allocate at the left.
A value of 0.0 shall position the icon at the left of the annotation rectangle.
A value of 0.5 shall center it in the horizontal direction within the rectangle.
This entry shall be used only if the icon is scaled proportionally.
Default value: 0.5.
setHIconLeftOver
public void setHIconLeftOver(double hl)
throws PDFNetException
- Set the horizontal leftover of the icon within the annotatin.
(Optional)
- Parameters:
hl - A number indicating the horizontal
leftover of the icon within the annotation.
- Throws:
PDFNetException- Note:
- the horizontal leftover is a number that shall be between
0.0 and 1.0 indicating the fraction of leftover space to allocate at the left.
A value of 0.0 shall position the icon at the left of the annotation rectangle.
A value of 0.5 shall center it in the horizontal direction within the rectangle.
This entry shall be used only if the icon is scaled proportionally.
Default value: 0.5.
getVIconLeftOver
public double getVIconLeftOver()
throws PDFNetException
- Get the vertical leftover of the icon within the annotatin.
- Returns:
- a number indicating the vertical
leftover of the icon within the annotation.
- Throws:
PDFNetException- Note:
- the vertical leftover is a number that
shall be between 0.0 and 1.0 indicating the fraction of leftover
space to allocate at the bottom of the icon.
A value of 0.0 shall position the icon at the bottom
of the annotation rectangle.
A value of 0.5 shall center it in the vertical direction within
the rectangle.
This entry shall be used only if the icon is scaled proportionally.
Default value: 0.5.
setVIconLeftOver
public void setVIconLeftOver(double vl)
throws PDFNetException
- Set the vertical leftover of the icon within the annotatin.
(Optional)
- Parameters:
vl - A number indicating the vertical
leftover of the icon within the annotation.
- Throws:
PDFNetException- Note:
- the vertical leftover is a number that
shall be between 0.0 and 1.0 indicating the fraction of leftover
space to allocate at the bottom of the icon.
A value of 0.0 shall position the icon at the bottom
of the annotation rectangle.
A value of 0.5 shall center it in the vertical direction within
the rectangle.
This entry shall be used only if the icon is scaled proportionally.
Default value: 0.5.
getFitFull
public boolean getFitFull()
throws PDFNetException
- Get the fit full option being used.
- Returns:
- A boolean value indicating the fit full option being used.
- Throws:
PDFNetException- Note:
- the FitFull value, if true, indicates that the button
appearance shall be scaled to fit fully within the bounds of
the annotation without taking into consideration the line
width of the border. Default value: false.
setFitFull
public void setFitFull(boolean ff)
throws PDFNetException
- Set the fit full option being used.
(Optional)
- Parameters:
ff - A boolean value indicating the fit full option being used.
- Throws:
PDFNetException- Note:
- the FitFull value, if true, indicates that the button
appearance shall be scaled to fit fully within the bounds of
the annotation without taking into consideration the line
width of the border. Default value: false.