aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
authorFinn Bock <bckfnn@apache.org>2004-10-19 13:38:15 +0000
committerFinn Bock <bckfnn@apache.org>2004-10-19 13:38:15 +0000
commit2c38e2ca1bb7e512cd484a34c2459f1c07611bb2 (patch)
tree534e32dbbe7ee495f470be3cd5c09192caac0821 /src/java/org
parent8623bf067ff824760696bfca3fe55cd1b49cd85d (diff)
downloadxmlgraphics-fop-2c38e2ca1bb7e512cd484a34c2459f1c07611bb2.tar.gz
xmlgraphics-fop-2c38e2ca1bb7e512cd484a34c2459f1c07611bb2.zip
Second phase of performance improvement.
- Use the official properties on BasicLink. PR: 31699 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@198061 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r--src/java/org/apache/fop/layoutmgr/BasicLinkLayoutManager.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/java/org/apache/fop/layoutmgr/BasicLinkLayoutManager.java b/src/java/org/apache/fop/layoutmgr/BasicLinkLayoutManager.java
index 9498f9453..a91b82257 100644
--- a/src/java/org/apache/fop/layoutmgr/BasicLinkLayoutManager.java
+++ b/src/java/org/apache/fop/layoutmgr/BasicLinkLayoutManager.java
@@ -29,8 +29,8 @@ import org.apache.fop.area.PageViewport;
*/
public class BasicLinkLayoutManager extends InlineStackingLayoutManager {
- private String link;
- private boolean isExternalLink = false;
+ private String externalLink;
+ private String internalLink;
/**
* Create an fo:basic-link layout manager.
@@ -39,8 +39,8 @@ public class BasicLinkLayoutManager extends InlineStackingLayoutManager {
*/
public BasicLinkLayoutManager(BasicLink node) {
super(node);
- link = node.getLink();
- isExternalLink = node.isExternalLink();
+ externalLink = node.getExternalDestination();
+ internalLink = node.getInternalDestination();
}
protected InlineParent createArea() {
@@ -51,9 +51,10 @@ public class BasicLinkLayoutManager extends InlineStackingLayoutManager {
private void setupBasicLinkArea(LayoutManager parentLM,
InlineParent area) {
- if (isExternalLink) {
- area.addTrait(Trait.EXTERNAL_LINK, link);
+ if (externalLink != null) {
+ area.addTrait(Trait.EXTERNAL_LINK, externalLink);
} else {
+ String link = internalLink;
PageViewport page = parentLM.resolveRefID(link);
if (page != null) {
area.addTrait(Trait.INTERNAL_LINK, page.getKey());