|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.toolbox.SVGUtilities
public class SVGUtilities
A collection of utility functions to aid in figures from SVG, the Scalable Vector Graphics language. For a description of SVG see the specification.
Field Summary | |
---|---|
private static java.util.HashMap |
colors
A map containing a mapping from color names to color values |
Constructor Summary | |
---|---|
SVGUtilities()
|
Method Summary | |
---|---|
static java.util.Iterator |
colorNames()
Get an iterator over the known color names |
static java.awt.Color |
getColor(java.lang.String name)
Given a string representing a color, return a color that represents it. |
static double[] |
parseCoordString(java.lang.String s)
Parse a string of numbers into an array of double. |
static java.util.Map |
parseStyleString(java.lang.String style)
Given a style string, parse it into a map of elements. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.util.HashMap colors
Constructor Detail |
---|
public SVGUtilities()
Method Detail |
---|
public static java.util.Iterator colorNames()
public static java.awt.Color getColor(java.lang.String name)
public static java.util.Map parseStyleString(java.lang.String style)
public static double[] parseCoordString(java.lang.String s)
FIXME this is not correct
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |