public class SVGRectangle extends Object implements XMLConvertible
| Constructor and Description |
|---|
SVGRectangle(Length x,
Length y,
Length width,
Length height) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendXMLContent(XMLUtil util,
Appendable appendable)
Write the XML format for this object.
|
static SVGRectangle |
cm(double x,
double y,
double width,
double height) |
static SVGRectangle |
em(double x,
double y,
double width,
double height) |
static SVGRectangle |
in(double x,
double y,
double width,
double height) |
static SVGRectangle |
mm(double x,
double y,
double width,
double height) |
static SVGRectangle |
pc(double x,
double y,
double width,
double height) |
static SVGRectangle |
pt(double x,
double y,
double width,
double height) |
public static SVGRectangle mm(double x, double y, double width, double height)
x - the x coord in mmy - the y coord in mmwidth - the width in mmheight - the height in mmpublic static SVGRectangle cm(double x, double y, double width, double height)
x - the x coord in cmy - the y coord in cmwidth - the width in cmheight - the height in cmpublic static SVGRectangle in(double x, double y, double width, double height)
x - the x coord in iny - the y coord in inwidth - the width in inheight - the height in inpublic static SVGRectangle pt(double x, double y, double width, double height)
x - the x coord in pty - the y coord in ptwidth - the width in ptheight - the height in ptpublic static SVGRectangle pc(double x, double y, double width, double height)
x - the x coord in pcy - the y coord in pcwidth - the width in pcheight - the height in pcpublic static SVGRectangle em(double x, double y, double width, double height)
x - the x coord in emy - the y coord in emwidth - the width in emheight - the height in empublic void appendXMLContent(XMLUtil util, Appendable appendable) throws IOException
XMLConvertibleappendXMLContent in interface XMLConvertibleutil - a helper objectappendable - the appendable to append data toIOException - if the style can't be addedCopyright © 2016–2021. All rights reserved.