Package org.apache.fop.pdf
Class PDFDestination
- java.lang.Object
-
- org.apache.fop.pdf.PDFObject
-
- org.apache.fop.pdf.PDFDestination
-
- All Implemented Interfaces:
PDFWritable
public class PDFDestination extends PDFObject
class representing a named destination
-
-
Constructor Summary
Constructors Constructor Description PDFDestination(java.lang.String idRef, java.lang.Object goToRef)Create a named destination
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Check if this equals another object.java.lang.ObjectgetGoToReference()Returns the GoToReference from the associated DestinationData object.java.lang.StringgetIDRef()Returns the RefID from the associated DestinationData object.inthashCode()intoutput(java.io.OutputStream stream)Write the PDF represention of this objectvoidsetGoToReference(java.lang.Object goToReference)Sets the GoToReference in the associated DestinationData object.voidsetGoToReference(java.lang.String goToReference)Deprecated.use setGoToReference(Object) instead-
Methods 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
-
-
-
-
Method Detail
-
output
public int output(java.io.OutputStream stream) throws java.io.IOExceptionDescription copied from class:PDFObjectWrite the PDF represention of this object
-
setGoToReference
@Deprecated public void setGoToReference(java.lang.String goToReference)
Deprecated.use setGoToReference(Object) insteadSets the GoToReference in the associated DestinationData object.- Parameters:
goToReference- the reference to set in the associated DestinationData object.
-
setGoToReference
public void setGoToReference(java.lang.Object goToReference)
Sets the GoToReference in the associated DestinationData object.- Parameters:
goToReference- the reference to set in the associated DestinationData object.
-
getGoToReference
public java.lang.Object getGoToReference()
Returns the GoToReference from the associated DestinationData object.- Returns:
- the GoToReference from the associated DestinationData object.
-
getIDRef
public java.lang.String getIDRef()
Returns the RefID from the associated DestinationData object.- Returns:
- the RefID from the associated DestinationData object.
-
equals
public boolean equals(java.lang.Object obj)
Check if this equals another object.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the object to compare- Returns:
- true if this equals other object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-