org.apache.fop.pdf

Class PDFDestination

Implemented Interfaces:
PDFWritable

public class PDFDestination
extends PDFObject

class representing a named destination

Field Summary

Fields inherited from class org.apache.fop.pdf.PDFObject

DATE_FORMAT, log

Constructor Summary

PDFDestination(String idRef, Object goToRef)
Create a named destination

Method Summary

boolean
equals(Object obj)
Check if this equals another object.
Object
getGoToReference()
Returns the GoToReference from the associated DestinationData object.
String
getIDRef()
Returns the RefID from the associated DestinationData object.
int
hashCode()
protected int
output(OutputStream stream)
void
setGoToReference(Object goToReference)
Sets the GoToReference in the associated DestinationData object.
void
setGoToReference(String goToReference)
Deprecated. use setGoToReference(Object) instead

Methods inherited from class org.apache.fop.pdf.PDFObject

encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF, toPDFString

Constructor Details

PDFDestination

public PDFDestination(String idRef,
                      Object goToRef)
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

equals

public boolean equals(Object obj)
Check if this equals another object.
Parameters:
obj - the object to compare
Returns:
true if this equals other object

getGoToReference

public Object getGoToReference()
Returns the GoToReference from the associated DestinationData object.
Returns:
the GoToReference from the associated DestinationData object.

getIDRef

public String getIDRef()
Returns the RefID from the associated DestinationData object.
Returns:
the RefID from the associated DestinationData object.

hashCode

public int hashCode()

output

protected int output(OutputStream stream)
            throws IOException
Overrides:
output in interface PDFObject

setGoToReference

public void setGoToReference(Object goToReference)
Sets the GoToReference in the associated DestinationData object.
Parameters:
goToReference - the reference to set in the associated DestinationData object.

setGoToReference

public void setGoToReference(String goToReference)

Deprecated. use setGoToReference(Object) instead

Sets the GoToReference in the associated DestinationData object.
Parameters:
goToReference - the reference to set in the associated DestinationData object.

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.