org.apache.fop.area
Class DestinationData
- OffDocumentItem, Resolvable
public class DestinationData
An instance of this class is named destination from fox:destination
String | getIDRef() - Get the idref for this destination
|
String[] | getIDRefs() -
|
String | getName() -
|
PageViewport | getPageViewport() - Get the PageViewport object that this destination refers to
|
boolean | isResolved() - Check if this resolvable object has been resolved.
|
void | resolveIDRef(String id, List pages) - Resolves the idref of this object by getting the PageViewport
object that corresponds to the IDRef
List)
|
DestinationData
public DestinationData(String idRef)
Create a new named destination.
idRef
- the id reference of the destination
DestinationData
public DestinationData(Destination destination)
Create a new pdf destination data object.
This is used by the destination to create a data object
with a idref. During processing, this idref will be
subsequently resolved to a particular PageViewport.
destination
- the fo:bookmark object
getIDRef
public String getIDRef()
Get the idref for this destination
- the idref for the destination
getPageViewport
public PageViewport getPageViewport()
Get the PageViewport object that this destination refers to
- the PageViewport that this destination points to
isResolved
public boolean isResolved()
Check if this resolvable object has been resolved.
For now, just return true.
To do: Find a way to determine whether the destination has been resolved.
- isResolved in interface Resolvable
- true if this object has been resolved
resolveIDRef
public void resolveIDRef(String id,
List pages)
Resolves the idref of this object by getting the PageViewport
object that corresponds to the IDRef
List)
- resolveIDRef in interface Resolvable
- check to make sure it works if multiple bookmark-items
have the same idref
Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.