summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkitfox2007-12-12 21:29:21 +0100
committerkitfox2007-12-12 21:29:21 +0100
commit0b7129e0de66fcb88065a8620a78de87c44d227a (patch)
treeb4800c8cf0e654046d0e5a5e60449452ad1e1924
parentAdded picking against bounding boxes. (diff)
downloadsvg-salamander-core-0b7129e0de66fcb88065a8620a78de87c44d227a.tar.gz
svg-salamander-core-0b7129e0de66fcb88065a8620a78de87c44d227a.tar.xz
svg-salamander-core-0b7129e0de66fcb88065a8620a78de87c44d227a.zip
Quick hack to allow 'currentColor' to be parsed
git-svn-id: https://svn.java.net/svn/svgsalamander~svn/trunk/svg-core@48 7dc7fa77-23fb-e6ad-8e2e-c86bd48ed22b
-rw-r--r--src/main/java/com/kitfox/svg/xml/ColorTable.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/com/kitfox/svg/xml/ColorTable.java b/src/main/java/com/kitfox/svg/xml/ColorTable.java
index f3db3b2..0afea87 100644
--- a/src/main/java/com/kitfox/svg/xml/ColorTable.java
+++ b/src/main/java/com/kitfox/svg/xml/ColorTable.java
@@ -42,6 +42,12 @@ public class ColorTable
static final Map colorTable;
static {
HashMap table = new HashMap();
+
+ //We really should be interpreting the currentColor keyword as
+ // a reference to the referrring node's color, but this quick hack
+ // will stop the program from crashing.
+ table.put("currentColor", new Color(0x0));
+
table.put("aliceblue", new Color(0xf0f8ff));
table.put("antiquewhite", new Color(0xfaebd7));
table.put("aqua", new Color(0x00ffff));