summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/kitfox/svg/SVGDiagram.java2
-rw-r--r--src/main/java/com/kitfox/svg/SVGRoot.java2
-rw-r--r--src/main/java/com/kitfox/svg/Use.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/kitfox/svg/SVGDiagram.java b/src/main/java/com/kitfox/svg/SVGDiagram.java
index a6942b7..3a89075 100644
--- a/src/main/java/com/kitfox/svg/SVGDiagram.java
+++ b/src/main/java/com/kitfox/svg/SVGDiagram.java
@@ -102,7 +102,7 @@ public class SVGDiagram implements Serializable
*/
public void render(Graphics2D g) throws SVGException
{
- root.render(g);
+ root.renderToViewport(g);
}
/**
diff --git a/src/main/java/com/kitfox/svg/SVGRoot.java b/src/main/java/com/kitfox/svg/SVGRoot.java
index a4ccfb0..89a772e 100644
--- a/src/main/java/com/kitfox/svg/SVGRoot.java
+++ b/src/main/java/com/kitfox/svg/SVGRoot.java
@@ -258,7 +258,7 @@ public class SVGRoot extends Group
// }
}
- public void render(Graphics2D g) throws SVGException
+ public void renderToViewport(Graphics2D g) throws SVGException
{
prepareViewport();
diff --git a/src/main/java/com/kitfox/svg/Use.java b/src/main/java/com/kitfox/svg/Use.java
index f217b88..4219c6e 100644
--- a/src/main/java/com/kitfox/svg/Use.java
+++ b/src/main/java/com/kitfox/svg/Use.java
@@ -123,7 +123,7 @@ public class Use extends ShapeElement
return;
}
- RenderableElement rendEle = (RenderableElement) ref;
+ RenderableElement rendEle = (RenderableElement)ref;
rendEle.pushParentContext(this);
rendEle.render(g);
rendEle.popParentContext();