Svg
class Svg extends XMLWriter (View source)
This Class inherits the XMLwriter class and helps in developing structure of SVG Schema Export
Properties
string | $title | ||
string | $author | ||
string | $font | ||
int | $fontSize |
Methods
Upon instantiation This starts writing the RelationStatsSvg XML document
Set document title
Set document author
Set document font
Get document font
Set document font size
Get document font size
Starts RelationStatsSvg Document
Ends RelationStatsSvg Document
No description
Draws RelationStatsSvg elements
Draws RelationStatsSvg Line element
Details
__construct()
Upon instantiation This starts writing the RelationStatsSvg XML document
void
setTitle(string $value)
Set document title
void
setAuthor(string $value)
Set document author
void
setFont(string $value)
Set document font
string
getFont()
Get document font
void
setFontSize(int $value)
Set document font size
int
getFontSize()
Get document font size
void
startSvgDoc(int|float $width, int|float $height, int|float $x = 0, int|float $y = 0)
Starts RelationStatsSvg Document
svg document starts by first initializing svg tag which contains all the attributes and namespace that needed to define the svg document
void
endSvgDoc()
Ends RelationStatsSvg Document
string
getOutputData()
No description
void
printElement(string $name, int|float $x, int|float $y, int|float $width, int $height, string|null $text = '', string $styles = '')
Draws RelationStatsSvg elements
SVG has some predefined shape elements like rectangle & text and other elements who have x,y co-ordinates are drawn. specify their width and height and can give styles too.
void
printElementLine(string $name, int|float $x1, int|float $y1, int|float $x2, int|float $y2, string $styles)
Draws RelationStatsSvg Line element
RelationStatsSvg line element is drawn for connecting the tables. arrows are also drawn by specify its start and ending co-ordinates