public class SVGParser
extends java.lang.Object
Constructor and Description |
---|
SVGParser() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String[] |
colorNames()
Return a list of basic color names that are understood.
|
static PaintedList |
createPaintedList(XmlElement root)
Given an XmlElement, create a PaintedList.
|
static PaintedObject |
createPaintedObject(java.lang.String type,
java.util.Map attributes)
Create a new painted object.
|
static PaintedObject |
createPaintedObject(java.lang.String type,
java.util.Map attributes,
java.lang.String content)
Create a new painted object.
|
static PaintedObject |
createPaintedObject(java.lang.String type,
java.lang.String attributes,
java.lang.String content)
Create a new painted object.
|
static void |
hashAttributes(java.lang.String s,
java.util.Map map)
Given a XML-style attribute string and a hash-table, add
each attribute and its value to the table.
|
public static java.lang.String[] colorNames()
public static PaintedObject createPaintedObject(java.lang.String type, java.lang.String attributes, java.lang.String content)
type
- The element typeattributes
- An XML-style attribute stringcontent
- The contentpublic static PaintedObject createPaintedObject(java.lang.String type, java.util.Map attributes, java.lang.String content)
public static PaintedObject createPaintedObject(java.lang.String type, java.util.Map attributes)
public static void hashAttributes(java.lang.String s, java.util.Map map)
FIXME: this sucks.
public static PaintedList createPaintedList(XmlElement root)
root
- The XmlElement.