mxGraph
|
Public Member Functions | |
delegate void | ElementHandler (Dictionary< string, string > atts) |
Defines the requirements for an object that parses a node. More... | |
mxSaxOutputHandler (mxICanvas2D canvas) | |
Constructs a new sax output handler for the given canvas. More... | |
void | Read (XmlReader reader) |
Reads the given display XML data and parses all elements. More... | |
void | ParseElement (string tagName, Dictionary< string, string > atts) |
Parses the given element and paints it onto the canvas. More... | |
Protected Member Functions | |
string | GetString (Dictionary< string, string > atts, string key) |
string | GetString (Dictionary< string, string > atts, string key, string defaultValue) |
double | GetDouble (Dictionary< string, string > atts, string key) |
double | GetDouble (Dictionary< string, string > atts, string key, double defaultValue) |
int | GetInt (Dictionary< string, string > atts, string key) |
int | GetInt (Dictionary< string, string > atts, string key, int defaultValue) |
bool | IsTrue (Dictionary< string, string > atts, string key) |
bool | IsTrue (Dictionary< string, string > atts, string key, bool defaultValue) |
void | InitHandlers () |
Protected Attributes | |
mxICanvas2D | canvas |
Holds the current canvas. More... | |
Dictionary< string, ElementHandler > | handlers = new Dictionary<string, ElementHandler>() |
Holds the handlers for specific XML nodes. More... | |
Properties | |
mxICanvas2D | Canvas [get, set] |
Sets or returns the current canvas. More... | |
|
inline |
Constructs a new sax output handler for the given canvas.
delegate void com.mxgraph.mxSaxOutputHandler.ElementHandler | ( | Dictionary< string, string > | atts | ) |
Defines the requirements for an object that parses a node.
|
inlineprotected |
References com.mxgraph.mxICanvas2D.Alpha, com.mxgraph.mxICanvas2D.Begin(), com.mxgraph.mxICanvas2D.Close(), com.mxgraph.mxICanvas2D.CurveTo(), com.mxgraph.mxICanvas2D.Dashed, com.mxgraph.mxICanvas2D.DashPattern, com.mxgraph.mxICanvas2D.Ellipse(), com.mxgraph.mxICanvas2D.Fill(), com.mxgraph.mxICanvas2D.FillAlpha, com.mxgraph.mxICanvas2D.FillAndStroke(), com.mxgraph.mxICanvas2D.FillColor, com.mxgraph.mxICanvas2D.FixDash, com.mxgraph.mxICanvas2D.FontBackgroundColor, com.mxgraph.mxICanvas2D.FontBorderColor, com.mxgraph.mxICanvas2D.FontColor, com.mxgraph.mxICanvas2D.FontFamily, com.mxgraph.mxICanvas2D.FontSize, com.mxgraph.mxICanvas2D.FontStyle, com.mxgraph.mxICanvas2D.Image(), com.mxgraph.mxICanvas2D.LineCap, com.mxgraph.mxICanvas2D.LineJoin, com.mxgraph.mxICanvas2D.LineTo(), com.mxgraph.mxICanvas2D.MiterLimit, com.mxgraph.mxICanvas2D.MoveTo(), com.mxgraph.mxICanvas2D.QuadTo(), com.mxgraph.mxICanvas2D.Rect(), com.mxgraph.mxICanvas2D.Restore(), com.mxgraph.mxICanvas2D.Rotate(), com.mxgraph.mxICanvas2D.Roundrect(), com.mxgraph.mxICanvas2D.Save(), com.mxgraph.mxICanvas2D.Scale(), com.mxgraph.mxICanvas2D.SetGradient(), com.mxgraph.mxICanvas2D.SetShadowOffset(), com.mxgraph.mxICanvas2D.Shadow, com.mxgraph.mxICanvas2D.ShadowAlpha, com.mxgraph.mxICanvas2D.ShadowColor, com.mxgraph.mxICanvas2D.Stroke(), com.mxgraph.mxICanvas2D.StrokeAlpha, com.mxgraph.mxICanvas2D.StrokeColor, com.mxgraph.mxICanvas2D.StrokeWidth, com.mxgraph.mxICanvas2D.Text(), and com.mxgraph.mxICanvas2D.Translate().
|
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. |
|
inline |
Reads the given display XML data and parses all elements.
reader | Reader that represents the display XML data. |
|
protected |
Holds the current canvas.
|
protected |
Holds the handlers for specific XML nodes.
|
getset |
Sets or returns the current canvas.