public class SVGUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Locale |
FormatLocale |
Constructor and Description |
---|
SVGUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addBBDebug(com.kitfox.svg.RenderableElement element) |
static void |
addBBDebug(com.kitfox.svg.RenderableElement element,
java.lang.String color) |
static java.awt.Font |
buildFont(com.kitfox.svg.Text node) |
static com.kitfox.svg.xml.StyleAttribute |
getAttr(com.kitfox.svg.SVGElement elm,
java.lang.String name) |
static double |
getAttrDouble(com.kitfox.svg.SVGElement elm,
java.lang.String name) |
static double |
getAttrDouble(com.kitfox.svg.SVGElement elm,
java.lang.String name,
double def) |
static java.lang.String |
getAttrStrDef(com.kitfox.svg.SVGElement elm,
java.lang.String name,
java.lang.String def) |
static <T> T |
getChild(com.kitfox.svg.SVGElement svg,
java.lang.Class<T> type) |
static java.lang.String |
refUrlId(java.lang.String id) |
static void |
setAttr(com.kitfox.svg.SVGElement elm,
java.lang.String name,
double value) |
static void |
setAttr(com.kitfox.svg.SVGElement elm,
java.lang.String name,
int attribType,
java.lang.String value) |
static void |
setAttr(com.kitfox.svg.SVGElement elm,
java.lang.String name,
java.lang.String value) |
static void |
setAttrs(com.kitfox.svg.SVGElement elm,
java.util.Map<java.lang.String,java.lang.String> map) |
static void |
setMultilineText(com.kitfox.svg.Text node,
java.lang.String label) |
static void |
unsetAttr(com.kitfox.svg.SVGElement elm,
java.lang.String name) |
static void |
unsetAttr(com.kitfox.svg.SVGElement elm,
java.lang.String name,
int attribType) |
public static <T> T getChild(com.kitfox.svg.SVGElement svg, java.lang.Class<T> type)
public static java.lang.String refUrlId(java.lang.String id)
public static com.kitfox.svg.xml.StyleAttribute getAttr(com.kitfox.svg.SVGElement elm, java.lang.String name) throws com.kitfox.svg.SVGException
com.kitfox.svg.SVGException
public static java.lang.String getAttrStrDef(com.kitfox.svg.SVGElement elm, java.lang.String name, java.lang.String def) throws com.kitfox.svg.SVGException
com.kitfox.svg.SVGException
public static double getAttrDouble(com.kitfox.svg.SVGElement elm, java.lang.String name) throws com.kitfox.svg.SVGException
com.kitfox.svg.SVGException
public static double getAttrDouble(com.kitfox.svg.SVGElement elm, java.lang.String name, double def) throws com.kitfox.svg.SVGException
com.kitfox.svg.SVGException
public static void setAttr(com.kitfox.svg.SVGElement elm, java.lang.String name, java.lang.String value) throws com.kitfox.svg.SVGElementException
com.kitfox.svg.SVGElementException
public static void setAttr(com.kitfox.svg.SVGElement elm, java.lang.String name, double value) throws com.kitfox.svg.SVGElementException
com.kitfox.svg.SVGElementException
public static void setAttrs(com.kitfox.svg.SVGElement elm, java.util.Map<java.lang.String,java.lang.String> map) throws com.kitfox.svg.SVGElementException
com.kitfox.svg.SVGElementException
public static void setAttr(com.kitfox.svg.SVGElement elm, java.lang.String name, int attribType, java.lang.String value) throws com.kitfox.svg.SVGElementException
com.kitfox.svg.SVGElementException
public static void unsetAttr(com.kitfox.svg.SVGElement elm, java.lang.String name) throws com.kitfox.svg.SVGElementException
com.kitfox.svg.SVGElementException
public static void unsetAttr(com.kitfox.svg.SVGElement elm, java.lang.String name, int attribType) throws com.kitfox.svg.SVGElementException
com.kitfox.svg.SVGElementException
public static void addBBDebug(com.kitfox.svg.RenderableElement element) throws com.kitfox.svg.SVGException
com.kitfox.svg.SVGException
public static void addBBDebug(com.kitfox.svg.RenderableElement element, java.lang.String color) throws com.kitfox.svg.SVGException
com.kitfox.svg.SVGException
public static void setMultilineText(com.kitfox.svg.Text node, java.lang.String label) throws com.kitfox.svg.SVGException
com.kitfox.svg.SVGException
public static java.awt.Font buildFont(com.kitfox.svg.Text node) throws com.kitfox.svg.SVGException
com.kitfox.svg.SVGException