public class SvgUseUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SvgUseUtil.Anchor
Types of anchors for positioning svg
|
static class |
SvgUseUtil.Margin
Margin for placing SVG's (4 offsets)
|
Constructor and Description |
---|
SvgUseUtil() |
Modifier and Type | Method and Description |
---|---|
static UseFixed |
addSvg(com.kitfox.svg.Group target,
com.kitfox.svg.SVGDiagram useSVG,
SvgUseUtil.Anchor anchor,
float toWidth,
float toHeight,
SvgUseUtil.Margin margin)
Add SVG use as child to target group, with given size
|
static UseFixed |
addSvg(com.kitfox.svg.Group target,
com.kitfox.svg.SVGDiagram useSVG,
SvgUseUtil.Anchor anchor,
float ratio,
SvgUseUtil.Margin margin)
Add SVG use as child to target group, scaled to ratio
|
public static UseFixed addSvg(com.kitfox.svg.Group target, com.kitfox.svg.SVGDiagram useSVG, SvgUseUtil.Anchor anchor, float ratio, SvgUseUtil.Margin margin) throws com.kitfox.svg.SVGException
target
- add to this groupuseSVG
- element to referenceratio
- between 0.0 and 1.0 for 0% till 100% fillcom.kitfox.svg.SVGException
public static UseFixed addSvg(com.kitfox.svg.Group target, com.kitfox.svg.SVGDiagram useSVG, SvgUseUtil.Anchor anchor, float toWidth, float toHeight, SvgUseUtil.Margin margin) throws com.kitfox.svg.SVGException
target
- useSVG
- anchor
- toWidth
- toHeight
- com.kitfox.svg.SVGException