com::mxgraph::mxGraphViewReader Class Reference
An abstract converter that renders display XML data onto a canvas.
More...
List of all members.
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.
|
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:
-
| reader | Reader 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:
-
| attrs | Specifies 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:
-
| 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.
- Parameters:
-
| pts | String 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.
void com::mxgraph::mxGraphViewReader::Read |
( |
XmlReader |
reader |
) |
[inline] |
Reads the given display XML data and parses all elements.
- Parameters:
-
| reader | Reader that represents the display XML data. |
Member Data Documentation
Holds the canvas to be used for rendering the graph.
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.
The documentation for this class was generated from the following file:
- src/reader/mxGraphViewReader.cs