summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorkitfox2011-11-07 05:19:25 +0100
committerkitfox2011-11-07 05:19:25 +0100
commitb04a215f9402cf040ed94afb3ad2aab14455d01a (patch)
tree4a57e4d4afc7375049540772d37697a50a2a4226 /src/main
parentAdded SVGElement.removeElement() method. ShapeElement can now handle invalid... (diff)
downloadsvg-salamander-core-b04a215f9402cf040ed94afb3ad2aab14455d01a.tar.gz
svg-salamander-core-b04a215f9402cf040ed94afb3ad2aab14455d01a.tar.xz
svg-salamander-core-b04a215f9402cf040ed94afb3ad2aab14455d01a.zip
Adding TransformableElement.getXForm()
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@102 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/com/kitfox/svg/TransformableElement.java14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main/java/com/kitfox/svg/TransformableElement.java b/src/main/java/com/kitfox/svg/TransformableElement.java
index b9a4375..6ceb66c 100644
--- a/src/main/java/com/kitfox/svg/TransformableElement.java
+++ b/src/main/java/com/kitfox/svg/TransformableElement.java
@@ -46,13 +46,25 @@ public class TransformableElement extends SVGElement
// AffineTransform invXform = null;
/** Creates a new instance of BoundedElement */
- public TransformableElement() {
+ public TransformableElement()
+ {
}
public TransformableElement(String id, SVGElement parent)
{
super(id, parent);
}
+
+ /**
+ * Fetches a copy of the cached AffineTransform. Note that this
+ * value will only be valid after the node has been updated.
+ *
+ * @return
+ */
+ public AffineTransform getXForm()
+ {
+ return new AffineTransform(xform);
+ }
/*
public void loaderStartElement(SVGLoaderHelper helper, Attributes attrs, SVGElement parent)
{