From 68b21a99b13332f92bb896e818e17bc1dc17f74c Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Thu, 22 Aug 2002 13:57:49 +0000 Subject: 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 --- src/org/apache/fop/render/svg/SVGRenderer.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/org/apache/fop/render/svg') 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, -- cgit v1.2.3