Class PDViewportDictionary
java.lang.Object
org.apache.pdfbox.pdmodel.interactive.measurement.PDViewportDictionary
- All Implemented Interfaces:
COSObjectable
This class represents a viewport dictionary.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetBBox()
This will retrieve the rectangle specifying the location of the viewport.This will return the corresponding dictionary.This will retrieve the measure dictionary.getName()
This will retrieve the name of the viewport.getType()
Returns the type of the viewport dictionary.void
setBBox
(PDRectangle rectangle) This will set the rectangle specifying the location of the viewport.void
setMeasure
(PDMeasureDictionary measure) This will set the measure dictionary.void
This will set the name of the viewport.
-
Field Details
-
TYPE
The type of this object.- See Also:
-
-
Constructor Details
-
PDViewportDictionary
public PDViewportDictionary()Constructor. -
PDViewportDictionary
Constructor.- Parameters:
dictionary
- the dictionary
-
-
Method Details
-
getCOSObject
This will return the corresponding dictionary.- Specified by:
getCOSObject
in interfaceCOSObjectable
- Returns:
- the viewport dictionary
-
getType
Returns the type of the viewport dictionary. It must be "Viewport"- Returns:
- the type of the external data dictionary
-
getBBox
This will retrieve the rectangle specifying the location of the viewport.- Returns:
- the location
-
setBBox
This will set the rectangle specifying the location of the viewport.- Parameters:
rectangle
- the rectangle specifying the location.
-
getName
This will retrieve the name of the viewport.- Returns:
- the name of the viewport
-
setName
This will set the name of the viewport.- Parameters:
name
- the name of the viewport
-
getMeasure
This will retrieve the measure dictionary.- Returns:
- the measure dictionary
-
setMeasure
This will set the measure dictionary.- Parameters:
measure
- the measure dictionary
-