From 6776ed9f1a81e517139d85eb6d2e28911fd0fc35 Mon Sep 17 00:00:00 2001 From: kitfox Date: Tue, 19 Mar 2013 05:20:37 +0000 Subject: Adding support for style sheets. git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@153 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b --- src/main/java/com/kitfox/svg/A.java | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'src/main/java/com/kitfox/svg/A.java') diff --git a/src/main/java/com/kitfox/svg/A.java b/src/main/java/com/kitfox/svg/A.java index 0609e58..7283557 100644 --- a/src/main/java/com/kitfox/svg/A.java +++ b/src/main/java/com/kitfox/svg/A.java @@ -37,33 +37,28 @@ package com.kitfox.svg; import com.kitfox.svg.xml.StyleAttribute; -import java.awt.*; import java.net.URI; /** * @author Mark McKay * @author Mark McKay */ -public class A extends Group { +public class A extends Group +{ + public static final String TAG_NAME = "a"; URI href; String title; /** Creates a new instance of Stop */ - public A() { - } -/* - public void loaderStartElement(SVGLoaderHelper helper, Attributes attrs, SVGElement parent) + public A() { - //Load style string - super.loaderStartElement(helper, attrs, parent); - - String offset = attrs.getValue("offset"); - this.offset = (float)XMLParseUtil.parseRatio(offset); + } - buildStop(); + public String getTagName() + { + return TAG_NAME; } - */ protected void build() throws SVGException { -- cgit v1.2.3-55-g7522