Puse
 All Classes Namespaces Functions Variables Pages
Svg.Svg Class Reference
Collaboration diagram for Svg.Svg:

Public Member Functions

String CombineStrings (String main, String referenced_diagram)
 
String installSvg (String code)
 
void installSvg (String code, String filename)
 
String ReplaceLine (String main, String replacement, int line_number)
 
JSVGCanvas reload (JSVGCanvas svgCanvas, String name)
 

Static Public Member Functions

static String installToString (File file)
 

Public Attributes

Exporter exp =new Exporter()
 

Detailed Description

The Class conducts operations for svg file

Member Function Documentation

String Svg.Svg.CombineStrings ( String  main,
String  referenced_diagram 
)

Creates svg file from string, it validates code and creates svg

Parameters
codethe code
Returns
the string

Here is the call graph for this function:

String Svg.Svg.installSvg ( String  code)

Creates svg file from string, it validates code and creates svg

Parameters
codethe code
Returns
the string
void Svg.Svg.installSvg ( String  code,
String  filename 
)

works like installsvg. However, you can explicitly indicate where to save that svg file

See Also
installSvg(String)
Parameters
codethe code
@returnthe string
static String Svg.Svg.installToString ( File  file)
static

Load a text file contents as a String. This method taken from http://www.avajava.com/tutorials/lessons/how-do-i-read-a-string-from-a-file-line-by-line.html

Parameters
fileThe input file
Returns
The file contents as a String
Exceptions
IOExceptionIO Error

Here is the caller graph for this function:

JSVGCanvas Svg.Svg.reload ( JSVGCanvas  svgCanvas,
String  name 
)

Reload svg file to canvas

Parameters
svgCanvascomponent name
namethe name of file which will be loaded
Returns
the jSVG canvas is new canvas which will return
String Svg.Svg.ReplaceLine ( String  main,
String  replacement,
int  line_number 
)

Replaces given line with another string in multi line strings

Parameters
Stringmain string
Stringreplacement
intline number
Returns
String returns the new string

Here is the caller graph for this function:

Member Data Documentation

Exporter Svg.Svg.exp =new Exporter()

exporter object for export diagrams


The documentation for this class was generated from the following file: