org.apache.pdfbox.pdmodel.interactive.measurement
Class PDViewportDictionary

java.lang.Object
  extended by org.apache.pdfbox.pdmodel.interactive.measurement.PDViewportDictionary
All Implemented Interfaces:
COSObjectable

public class PDViewportDictionary
extends Object
implements COSObjectable

This class represents a viewport dictionary.

Version:
$Revision: 1.0 $

Field Summary
static String TYPE
          The type of this annotation.
 
Constructor Summary
PDViewportDictionary()
          Constructor.
PDViewportDictionary(COSDictionary dictionary)
          Constructor.
 
Method Summary
 PDRectangle getBBox()
          This will retrieve the rectangle specifying the location of the viewport.
 COSBase getCOSObject()
          Convert this standard java object to a COS object.
 COSDictionary getDictionary()
          This will return the corresponding dictionary.
 PDMeasureDictionary getMeasure()
          This will retrieve the measure dictionary.
 String getName()
          This will retrieve the name of the viewport.
 String 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 setName(String name)
          This will set the name of the viewport.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE

public static final String TYPE
The type of this annotation.

See Also:
Constant Field Values
Constructor Detail

PDViewportDictionary

public PDViewportDictionary()
Constructor.


PDViewportDictionary

public PDViewportDictionary(COSDictionary dictionary)
Constructor.

Parameters:
dictionary - the dictionary
Method Detail

getCOSObject

public COSBase getCOSObject()
Convert this standard java object to a COS object.

Specified by:
getCOSObject in interface COSObjectable
Returns:
The cos object that matches this Java object.

getDictionary

public COSDictionary getDictionary()
This will return the corresponding dictionary.

Returns:
the viewport dictionary

getType

public String getType()
Returns the type of the viewport dictionary. It must be "Viewport"

Returns:
the type of the external data dictionary

getBBox

public PDRectangle getBBox()
This will retrieve the rectangle specifying the location of the viewport.

Returns:
the location

setBBox

public void setBBox(PDRectangle rectangle)
This will set the rectangle specifying the location of the viewport.

Parameters:
rectangle - the rectangle specifying the location.

getName

public String getName()
This will retrieve the name of the viewport.

Returns:
the name of the viewport

setName

public void setName(String name)
This will set the name of the viewport.

Parameters:
name - the name of the viewport

getMeasure

public PDMeasureDictionary getMeasure()
This will retrieve the measure dictionary.

Returns:
the measure dictionary

setMeasure

public void setMeasure(PDMeasureDictionary measure)
This will set the measure dictionary.

Parameters:
measure - the measure dictionary


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.