aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/fo/flow/ExternalGraphic.java
diff options
context:
space:
mode:
authorGlen Mazza <gmazza@apache.org>2004-07-31 00:44:23 +0000
committerGlen Mazza <gmazza@apache.org>2004-07-31 00:44:23 +0000
commit07e8b67a4aedd53a69895a82f328b472c9a05a6e (patch)
treeb212a70ac8977c076c0cf3359828e7d6f7faa14a /src/java/org/apache/fop/fo/flow/ExternalGraphic.java
parent249622789008c4fb8509c6286809f4adbaac654f (diff)
downloadxmlgraphics-fop-07e8b67a4aedd53a69895a82f328b472c9a05a6e.tar.gz
xmlgraphics-fop-07e8b67a4aedd53a69895a82f328b472c9a05a6e.zip
1. validation for fo:basic-link added
2. "name" data element removed from FONode, added to its XMLObj subclass (FObj subclasses' getName() uses a string constant instead.) 3. isBlockOrInlineItem() convenience method added to FObj 4. setup() methods within FO's switched to private access. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197846 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/flow/ExternalGraphic.java')
-rw-r--r--src/java/org/apache/fop/fo/flow/ExternalGraphic.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/java/org/apache/fop/fo/flow/ExternalGraphic.java b/src/java/org/apache/fop/fo/flow/ExternalGraphic.java
index 579fcf649..d1c66374d 100644
--- a/src/java/org/apache/fop/fo/flow/ExternalGraphic.java
+++ b/src/java/org/apache/fop/fo/flow/ExternalGraphic.java
@@ -84,7 +84,7 @@ public class ExternalGraphic extends FObj {
* Setup this image.
* This gets the sizes for the image and the dimensions and clipping.
*/
- public void setup() {
+ private void setup() {
url = this.propertyList.get(PR_SRC).getString();
if (url == null) {
return;
@@ -230,15 +230,6 @@ public class ExternalGraphic extends FObj {
return viewHeight;
}
- /**
- * This is a hook for the AddLMVisitor class to be able to access
- * this object.
- * @param aLMV the AddLMVisitor object that can access this object.
- */
- public void acceptVisitor(AddLMVisitor aLMV) {
- aLMV.serveExternalGraphic(this);
- }
-
public String getURL() {
return url;
}
@@ -259,4 +250,13 @@ public class ExternalGraphic extends FObj {
return "fo:external-graphic";
}
+ /**
+ * This is a hook for the AddLMVisitor class to be able to access
+ * this object.
+ * @param aLMV the AddLMVisitor object that can access this object.
+ */
+ public void acceptVisitor(AddLMVisitor aLMV) {
+ setup();
+ aLMV.serveExternalGraphic(this);
+ }
}