org.apache.fop.area
public class LinkResolver extends java.lang.Object implements Resolvable, java.io.Serializable
| Constructor and Description |
|---|
LinkResolver(java.lang.String id,
Area a)
Create a new link resolver.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getIDRefs()
Get the references for this link.
|
boolean |
isResolved()
Check if this area has been resolved.
|
void |
resolveIDRef(java.lang.String id,
java.util.List pages)
Resolve by adding an internal link to the first PageViewport in the list.
|
void |
resolveIDRef(java.lang.String id,
PageViewport pv)
Resolve by adding an InternalLink trait to the area
|
public LinkResolver(java.lang.String id,
Area a)
id - the id to resolvea - the area that will have the link attributepublic boolean isResolved()
ResolvableisResolved in interface Resolvablepublic java.lang.String[] getIDRefs()
getIDRefs in interface Resolvablepublic void resolveIDRef(java.lang.String id,
java.util.List pages)
resolveIDRef in interface Resolvableid - an ID matching one of the Resolvable object's
unresolved idref's.pages - the list of PageViewports with the given IDpublic void resolveIDRef(java.lang.String id,
PageViewport pv)
id - the target id (should be equal to the object's idRef)pv - the PageViewport containing the first area with the given idCopyright 1999-2008 The Apache Software Foundation. All Rights Reserved.