mxGraph
Public Member Functions | Static Public Member Functions | Protected Attributes | Properties | List of all members
com.mxgraph.mxGraphViewReader Class Referenceabstract

An abstract converter that renders display XML data onto a canvas. More...

Inheritance diagram for com.mxgraph.mxGraphViewReader:
com.mxgraph.mxGraphViewImageReader

Public Member Functions

 mxGraphViewReader ()
 Constructs a new graph view reader. More...
 
 mxGraphViewReader (XmlReader reader)
 Constructs a new graph view reader and reads the given display XML data. More...
 
abstract mxICanvas CreateCanvas (Dictionary< string, Object > attrs)
 Returns the canvas to be used for rendering. More...
 
void Read (XmlReader reader)
 Reads the given display XML data and parses all elements. More...
 
void ParseElement (string tagName, Dictionary< string, Object > attrs)
 Parses the given element and paints it onto the canvas. More...
 
string ParseState (mxCellState state, bool edge)
 Parses the bounds, absolute points and label information from the style of the state into its respective fields and returns the label of the cell. More...
 

Static Public Member Functions

static List< mxPointParsePoints (string pts)
 Parses the list of points into an object-oriented representation. More...
 

Protected Attributes

mxICanvas canvas
 Holds the canvas to be used for rendering the graph. More...
 
double scale = 1
 Holds the global scale of the graph. This is set just before createCanvas is called. More...
 

Properties

mxICanvas Canvas [get]
 Returns the canvas that is used for rendering the graph. More...
 

Detailed Description

An abstract converter that renders display XML data onto a canvas.

Constructor & Destructor Documentation

com.mxgraph.mxGraphViewReader.mxGraphViewReader ( )
inline

Constructs a new graph view reader.

com.mxgraph.mxGraphViewReader.mxGraphViewReader ( XmlReader  reader)
inline

Constructs a new graph view reader and reads the given display XML data.

Parameters
readerReader that represents the display XML data.

Member Function Documentation

abstract mxICanvas com.mxgraph.mxGraphViewReader.CreateCanvas ( Dictionary< string, Object >  attrs)
pure virtual

Returns the canvas to be used for rendering.

Parameters
attrsSpecifies the attributes of the new canvas.
Returns
Returns a new canvas.

Implemented in com.mxgraph.mxGraphViewImageReader.

void com.mxgraph.mxGraphViewReader.ParseElement ( string  tagName,
Dictionary< string, Object >  attrs 
)
inline

Parses the given element and paints it onto the canvas.

Parameters
tagNameName of the node to be parsed.
attrsAttributes of the node to be parsed.
static List<mxPoint> com.mxgraph.mxGraphViewReader.ParsePoints ( string  pts)
inlinestatic

Parses the list of points into an object-oriented representation.

Parameters
ptsString containing a list of points.
Returns
Returns the points as a list of mxPoints.
string com.mxgraph.mxGraphViewReader.ParseState ( mxCellState  state,
bool  edge 
)
inline

Parses the bounds, absolute points and label information from the style of the state into its respective fields and returns the label of the cell.

References com.mxgraph.mxUtils.GetDouble(), and com.mxgraph.mxUtils.GetString().

void com.mxgraph.mxGraphViewReader.Read ( XmlReader  reader)
inline

Reads the given display XML data and parses all elements.

Parameters
readerReader that represents the display XML data.

Member Data Documentation

mxICanvas com.mxgraph.mxGraphViewReader.canvas
protected

Holds the canvas to be used for rendering the graph.

double com.mxgraph.mxGraphViewReader.scale = 1
protected

Holds the global scale of the graph. This is set just before createCanvas is called.

Property Documentation

mxICanvas com.mxgraph.mxGraphViewReader.Canvas
get

Returns the canvas that is used for rendering the graph.

Referenced by com.mxgraph.mxGraphViewImageReader.Convert().


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