|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object extended bydiva.canvas.toolbox.SVGParser
A collection of utilities to help parse graphics out of SVG files. For a description of SVG see the specification.
| Constructor Summary | |
SVGParser()
|
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SVGParser()
| Method Detail |
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 content
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||