|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.toolbox.SVGParser
public class 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 String[] |
colorNames()
Return a list of basic color names that are understood. |
static PaintedList |
createPaintedList(XmlElement root)
|
static PaintedObject |
createPaintedObject(String type,
Map attributes)
Create a new painted object. |
static PaintedObject |
createPaintedObject(String type,
Map attributes,
String content)
Create a new painted object. |
static PaintedObject |
createPaintedObject(String type,
String attributes,
String content)
Create a new painted object. |
static void |
hashAttributes(String s,
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 String[] colorNames()
public static PaintedObject createPaintedObject(String type, String attributes, String content)
public static PaintedObject createPaintedObject(String type, Map attributes, String content)
public static PaintedObject createPaintedObject(String type, Map attributes)
public static void hashAttributes(String s, Map map)
FIXME: this sucks.
public static PaintedList createPaintedList(XmlElement root)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |