mxGraph
|
An abstract converter that renders display XML data onto a canvas. More...
Public Member Functions | |
mxGraphViewReader () | |
Constructs a new graph view reader. | |
mxGraphViewReader (XmlReader reader) | |
Constructs a new graph view reader and reads the given display XML data. | |
abstract mxICanvas | CreateCanvas (Dictionary< string, Object > attrs) |
Returns the canvas to be used for rendering. | |
void | Read (XmlReader reader) |
Reads the given display XML data and parses all elements. | |
void | ParseElement (string tagName, Dictionary< string, Object > attrs) |
Parses the given element and paints it onto the canvas. | |
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. | |
Static Public Member Functions | |
static List< mxPoint > | ParsePoints (string pts) |
Parses the list of points into an object-oriented representation. | |
Protected Attributes | |
mxICanvas | canvas |
Holds the canvas to be used for rendering the graph. | |
double | scale = 1 |
Holds the global scale of the graph. This is set just before createCanvas is called. | |
Properties | |
mxICanvas | Canvas [get] |
Returns the canvas that is used for rendering the graph. |
An abstract converter that renders display XML data onto a canvas.
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.
reader | Reader that represents the display XML data. |
abstract mxICanvas com.mxgraph.mxGraphViewReader.CreateCanvas | ( | Dictionary< string, Object > | attrs | ) | [pure virtual] |
Returns the canvas to be used for rendering.
attrs | Specifies the attributes of the 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.
tagName | Name of the node to be parsed. |
attrs | Attributes of the node to be parsed. |
static List<mxPoint> com.mxgraph.mxGraphViewReader.ParsePoints | ( | string | pts | ) | [inline, static] |
Parses the list of points into an object-oriented representation.
pts | String containing a list of points. |
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.
void com.mxgraph.mxGraphViewReader.Read | ( | XmlReader | reader | ) | [inline] |
Reads the given display XML data and parses all elements.
reader | Reader that represents the display XML data. |
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.
Returns the canvas that is used for rendering the graph.