aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/render/svg
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-08-22 13:57:49 +0000
committerKeiron Liddle <keiron@apache.org>2002-08-22 13:57:49 +0000
commit68b21a99b13332f92bb896e818e17bc1dc17f74c (patch)
treef009e115770da2f1daadc027a1175d6623625b9a /src/org/apache/fop/render/svg
parent764bcf89165659d00a6a9e026457c1cb15d62186 (diff)
downloadxmlgraphics-fop-68b21a99b13332f92bb896e818e17bc1dc17f74c.tar.gz
xmlgraphics-fop-68b21a99b13332f92bb896e818e17bc1dc17f74c.zip
implemeneted leader with leader-pattern of rule
adjusts line area ipd to best fit (spaces not handled yet) and aligns git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@195112 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/render/svg')
-rw-r--r--src/org/apache/fop/render/svg/SVGRenderer.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/org/apache/fop/render/svg/SVGRenderer.java b/src/org/apache/fop/render/svg/SVGRenderer.java
index 597cf8282..403800c06 100644
--- a/src/org/apache/fop/render/svg/SVGRenderer.java
+++ b/src/org/apache/fop/render/svg/SVGRenderer.java
@@ -15,6 +15,7 @@ import org.apache.fop.image.*;
import org.apache.fop.svg.SVGUtilities;
import org.apache.fop.layout.FontInfo;
import org.apache.fop.fo.FOUserAgent;
+import org.apache.fop.fo.properties.RuleStyle;
import org.w3c.dom.Node;
import org.w3c.dom.ProcessingInstruction;
@@ -316,19 +317,19 @@ public class SVGRenderer extends AbstractRenderer implements XMLHandler {
String style = "stroke:black;stroke-width:" +
(area.getRuleThickness() / 1000) + ";";
switch (area.getRuleStyle()) {
- case Leader.DOTTED:
+ case RuleStyle.DOTTED:
style += "stroke-dasharray:1,1";
break;
- case Leader.DASHED:
+ case RuleStyle.DASHED:
style += "stroke-dasharray:5,1";
break;
- case Leader.SOLID:
+ case RuleStyle.SOLID:
break;
- case Leader.DOUBLE:
+ case RuleStyle.DOUBLE:
break;
- case Leader.GROOVE:
+ case RuleStyle.GROOVE:
break;
- case Leader.RIDGE:
+ case RuleStyle.RIDGE:
break;
}
Element line = SVGUtilities.createLine(svgDocument,