mxGraph
|
An abstract converter that renders display XML data onto a canvas. More...
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< mxPoint > | ParsePoints (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... | |
An abstract converter that renders display XML data onto a canvas.
|
inline |
Constructs a new graph view reader.
|
inline |
Constructs a new graph view reader and reads the given display XML data.
reader | Reader that represents the display XML data. |
|
pure virtual |
Returns the canvas to be used for rendering.
attrs | Specifies the attributes of the new canvas. |
Implemented in com.mxgraph.mxGraphViewImageReader.
|
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. |
References com.mxgraph.mxICanvas.DrawCell(), com.mxgraph.mxICanvas.DrawLabel(), com.mxgraph.mxUtils.GetDouble(), and com.mxgraph.mxICanvas.Scale.
|
inlinestatic |
Parses the list of points into an object-oriented representation.
pts | String containing a list of points. |
|
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.mxCellState.AbsolutePoints, com.mxgraph.mxUtils.GetDouble(), com.mxgraph.mxUtils.GetLabelPaintBounds(), com.mxgraph.mxUtils.GetString(), com.mxgraph.mxRectangle.Height, com.mxgraph.mxUtils.IsTrue(), com.mxgraph.mxCellState.LabelBounds, com.mxgraph.mxCellState.Style, com.mxgraph.mxRectangle.Width, com.mxgraph.mxPoint.X, and com.mxgraph.mxPoint.Y.
|
inline |
Reads the given display XML data and parses all elements.
reader | Reader that represents the display XML data. |
|
protected |
Holds the canvas to be used for rendering the graph.
|
protected |
Holds the global scale of the graph. This is set just before createCanvas is called.
|
get |
Returns the canvas that is used for rendering the graph.
Referenced by com.mxgraph.mxGraphViewImageReader.Convert().