public class SVGUtil extends Object
| Constructor and Description |
|---|
SVGUtil() |
| Modifier and Type | Method and Description |
|---|---|
static elemental2.svg.SVGCircleElement |
createCircle(double x,
double y,
double r,
String color)
Draws an SVG circle
|
static elemental2.svg.SVGLineElement |
createLine(double centerX,
double centerY,
double x,
double y,
String color)
Draws an SVG line
|
public static final String SVGNS
public static elemental2.svg.SVGCircleElement createCircle(double x,
double y,
double r,
String color)
x - int center xy - int center yr - int radiuscolor - String fill colorpublic static elemental2.svg.SVGLineElement createLine(double centerX,
double centerY,
double x,
double y,
String color)
centerX - int first point xcenterY - int first point yx - int second point xy - int second point ycolor - String stroke colorCopyright © 2019–2022 Dominokit. All rights reserved.