Package org.apache.fop.pdf
Class PDFDestination
java.lang.Object
org.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFDestination
- All Implemented Interfaces:
PDFWritable
class representing a named destination
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if this equals another object.Returns the GoToReference from the associated DestinationData object.getIDRef()
Returns the RefID from the associated DestinationData object.int
hashCode()
int
output
(OutputStream stream) Write the PDF represention of this objectvoid
setGoToReference
(Object goToReference) Sets the GoToReference in the associated DestinationData object.void
setGoToReference
(String goToReference) Deprecated.use setGoToReference(Object) insteadMethods inherited from class org.apache.fop.pdf.PDFObject
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getChildren, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFString
-
Constructor Details
-
PDFDestination
Create a named destination- Parameters:
idRef
- ID Reference for this destination (the name of the destination)goToRef
- Object reference to the GoTo Action
-
-
Method Details
-
output
Description copied from class:PDFObject
Write the PDF represention of this object- Overrides:
output
in classPDFObject
- Parameters:
stream
- the stream to write the PDF to- Returns:
- the number of bytes written
- Throws:
IOException
- if there is an error writing to the stream
-
setGoToReference
Deprecated.use setGoToReference(Object) insteadSets the GoToReference in the associated DestinationData object.- Parameters:
goToReference
- the reference to set in the associated DestinationData object.
-
setGoToReference
Sets the GoToReference in the associated DestinationData object.- Parameters:
goToReference
- the reference to set in the associated DestinationData object.
-
getGoToReference
Returns the GoToReference from the associated DestinationData object.- Returns:
- the GoToReference from the associated DestinationData object.
-
getIDRef
Returns the RefID from the associated DestinationData object.- Returns:
- the RefID from the associated DestinationData object.
-
equals
Check if this equals another object. -
hashCode
public int hashCode()
-