mxGraph
|
A converter that renders display XML data onto a GDI canvas. More...
Public Member Functions | |
mxGraphViewImageReader (XmlReader reader) | |
Constructs a new GDI reader for the given display XML reader. More... | |
mxGraphViewImageReader (XmlReader reader, Color?background) | |
Constructs a new GDI reader for the given display XML reader. More... | |
mxGraphViewImageReader (XmlReader reader, Color?background, int border) | |
Constructs a new GDI reader for the given display XML reader. More... | |
mxGraphViewImageReader (XmlReader reader, Color?background, int border, bool antiAlias) | |
Constructs a new GDI reader for the given display XML reader. More... | |
mxGraphViewImageReader (XmlReader reader, Color?background, int border, bool antiAlias, bool cropping) | |
Constructs a new GDI reader for the given display XML reader. More... | |
override mxICanvas | CreateCanvas (Dictionary< string, Object > attrs) |
Returns the canvas to be used for rendering. More... | |
Public Member Functions inherited from com.mxgraph.mxGraphViewReader | |
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... | |
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 Image | Convert (mxGraphViewImageReader viewReader) |
Creates the image for the given display XML reader. For a given XmlReader, use the following code to create the view reader: new mxGraphViewImageReader(xmlReader, background, border, antiAlias); More... | |
Static Public Member Functions inherited from com.mxgraph.mxGraphViewReader | |
static List< mxPoint > | ParsePoints (string pts) |
Parses the list of points into an object-oriented representation. More... | |
Protected Attributes | |
Color | background |
Specifies the background color. More... | |
int | border |
Specifies the border size. Default is 0. More... | |
bool | antiAlias |
Default is true. More... | |
bool | cropping |
Default is true. More... | |
mxRectangle | clip |
Specifies the optional clipping rectangle. More... | |
Protected Attributes inherited from com.mxgraph.mxGraphViewReader | |
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 | |
Color | Background [get, set] |
Accessors for the background property. More... | |
int | Border [get, set] |
Accessors for the border property. More... | |
bool | AntiAlias [get, set] |
Accessors for the background property. More... | |
bool | Cropping [get, set] |
Accessors for the cropping property. More... | |
mxRectangle | Clip [get, set] |
Accessors for the clip property. More... | |
Properties inherited from com.mxgraph.mxGraphViewReader | |
mxICanvas | Canvas [get] |
Returns the canvas that is used for rendering the graph. More... | |
A converter that renders display XML data onto a GDI canvas.
|
inline |
Constructs a new GDI reader for the given display XML reader.
reader |
|
inline |
Constructs a new GDI reader for the given display XML reader.
|
inline |
Constructs a new GDI reader for the given display XML reader.
|
inline |
Constructs a new GDI reader for the given display XML reader.
|
inline |
Constructs a new GDI reader for the given display XML reader.
|
inlinestatic |
Creates the image for the given display XML reader. For a given XmlReader, use the following code to create the view reader: new mxGraphViewImageReader(xmlReader, background, border, antiAlias);
viewReader | Reader that contains the display XML. |
References com.mxgraph.mxGraphViewReader.Canvas.
|
inlinevirtual |
Returns the canvas to be used for rendering.
attrs | Specifies the attributes of the new canvas. |
Implements com.mxgraph.mxGraphViewReader.
References com.mxgraph.mxUtils.GetDouble(), com.mxgraph.mxRectangle.Height, com.mxgraph.mxImageCanvas.Translate, com.mxgraph.mxRectangle.Width, com.mxgraph.mxPoint.X, and com.mxgraph.mxPoint.Y.
|
protected |
Default is true.
|
protected |
Specifies the background color.
|
protected |
Specifies the border size. Default is 0.
|
protected |
Specifies the optional clipping rectangle.
|
protected |
Default is true.
|
getset |
Accessors for the background property.
|
getset |
Accessors for the background property.
|
getset |
Accessors for the border property.
|
getset |
Accessors for the clip property.
|
getset |
Accessors for the cropping property.