public class PDFDestination extends PDFObject
Constructor and Description |
---|
PDFDestination(java.lang.String idRef,
java.lang.Object goToRef)
Create a named destination
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Check if this equals another object.
|
java.lang.Object |
getGoToReference()
Returns the GoToReference from the associated DestinationData object.
|
java.lang.String |
getIDRef()
Returns the RefID from the associated DestinationData object.
|
int |
hashCode() |
int |
output(java.io.OutputStream stream)
Write the PDF represention of this object
|
void |
setGoToReference(java.lang.Object goToReference)
Sets the GoToReference in the associated DestinationData object.
|
void |
setGoToReference(java.lang.String goToReference)
Deprecated.
use setGoToReference(Object) instead
|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getChildren, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDF, toPDFString
public PDFDestination(java.lang.String idRef, java.lang.Object goToRef)
idRef
- ID Reference for this destination (the name of the destination)goToRef
- Object reference to the GoTo Actionpublic int output(java.io.OutputStream stream) throws java.io.IOException
PDFObject
@Deprecated public void setGoToReference(java.lang.String goToReference)
goToReference
- the reference to set in the associated DestinationData object.public void setGoToReference(java.lang.Object goToReference)
goToReference
- the reference to set in the associated DestinationData object.public java.lang.Object getGoToReference()
public java.lang.String getIDRef()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to comparepublic int hashCode()
hashCode
in class java.lang.Object
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.