diff options
author | kitfox | 2013-03-19 06:20:37 +0100 |
---|---|---|
committer | kitfox | 2013-03-19 06:20:37 +0100 |
commit | 6776ed9f1a81e517139d85eb6d2e28911fd0fc35 (patch) | |
tree | e169f598f518670f5434d75d1b76ceb3c0765d32 /src/main/java/com/kitfox/svg/Title.java | |
parent | Error handling now sends warnings to Logger. (diff) | |
download | svg-salamander-core-6776ed9f1a81e517139d85eb6d2e28911fd0fc35.tar.gz svg-salamander-core-6776ed9f1a81e517139d85eb6d2e28911fd0fc35.tar.xz svg-salamander-core-6776ed9f1a81e517139d85eb6d2e28911fd0fc35.zip |
Adding support for style sheets.
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@153 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
Diffstat (limited to 'src/main/java/com/kitfox/svg/Title.java')
-rw-r--r-- | src/main/java/com/kitfox/svg/Title.java | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/src/main/java/com/kitfox/svg/Title.java b/src/main/java/com/kitfox/svg/Title.java index 3f4305b..57aa006 100644 --- a/src/main/java/com/kitfox/svg/Title.java +++ b/src/main/java/com/kitfox/svg/Title.java @@ -33,7 +33,6 @@ *
* Created on September 19, 2004, 1:56 AM
*/
-
package com.kitfox.svg;
/**
@@ -42,12 +41,22 @@ package com.kitfox.svg; * @author Mark McKay
* @author <a href="mailto:mark@kitfox.com">Mark McKay</a>
*/
-public class Title extends SVGElement {
-
+public class Title extends SVGElement
+{
+ public static final String TAG_NAME = "title";
+
StringBuffer text = new StringBuffer();
- /** Creates a new instance of Stop */
- public Title() {
+ /**
+ * Creates a new instance of Stop
+ */
+ public Title()
+ {
+ }
+
+ public String getTagName()
+ {
+ return TAG_NAME;
}
/**
@@ -58,11 +67,15 @@ public class Title extends SVGElement { this.text.append(text);
}
- public String getText() { return text.toString(); }
-
+ public String getText()
+ {
+ return text.toString();
+ }
+
/**
- * Updates all attributes in this diagram associated with a time event.
- * Ie, all attributes with track information.
+ * Updates all attributes in this diagram associated with a time event. Ie,
+ * all attributes with track information.
+ *
* @return - true if this node has changed state as a result of the time
* update
*/
|