mxGraph
Public Member Functions | Static Public Member Functions | Protected Attributes | Properties
com.mxgraph.mxGraphViewImageReader Class Reference

A converter that renders display XML data onto a GDI canvas. More...

Inheritance diagram for com.mxgraph.mxGraphViewImageReader:
com.mxgraph.mxGraphViewReader

List of all members.

Public Member Functions

 mxGraphViewImageReader (XmlReader reader)
 Constructs a new GDI reader for the given display XML reader.
 mxGraphViewImageReader (XmlReader reader, Color?background)
 Constructs a new GDI reader for the given display XML reader.
 mxGraphViewImageReader (XmlReader reader, Color?background, int border)
 Constructs a new GDI reader for the given display XML reader.
 mxGraphViewImageReader (XmlReader reader, Color?background, int border, bool antiAlias)
 Constructs a new GDI reader for the given display XML reader.
 mxGraphViewImageReader (XmlReader reader, Color?background, int border, bool antiAlias, bool cropping)
 Constructs a new GDI reader for the given display XML reader.
override mxICanvas CreateCanvas (Dictionary< string, Object > attrs)
 Returns the canvas to be used for rendering.

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);.

Protected Attributes

Color background
 Specifies the background color.
int border
 Specifies the border size. Default is 0.
bool antiAlias
 Default is true.
bool cropping
 Default is true.
mxRectangle clip
 Specifies the optional clipping rectangle.

Properties

Color Background [get, set]
 Accessors for the background property.
int Border [get, set]
 Accessors for the border property.
bool AntiAlias [get, set]
 Accessors for the background property.
bool Cropping [get, set]
 Accessors for the cropping property.
mxRectangle Clip [get, set]
 Accessors for the clip property.

Detailed Description

A converter that renders display XML data onto a GDI canvas.


Constructor & Destructor Documentation

Constructs a new GDI reader for the given display XML reader.

Parameters:
reader
com.mxgraph.mxGraphViewImageReader.mxGraphViewImageReader ( XmlReader  reader,
Color?  background 
) [inline]

Constructs a new GDI reader for the given display XML reader.

com.mxgraph.mxGraphViewImageReader.mxGraphViewImageReader ( XmlReader  reader,
Color?  background,
int  border 
) [inline]

Constructs a new GDI reader for the given display XML reader.

com.mxgraph.mxGraphViewImageReader.mxGraphViewImageReader ( XmlReader  reader,
Color?  background,
int  border,
bool  antiAlias 
) [inline]

Constructs a new GDI reader for the given display XML reader.

com.mxgraph.mxGraphViewImageReader.mxGraphViewImageReader ( XmlReader  reader,
Color?  background,
int  border,
bool  antiAlias,
bool  cropping 
) [inline]

Constructs a new GDI reader for the given display XML reader.


Member Function Documentation

static Image com.mxgraph.mxGraphViewImageReader.Convert ( mxGraphViewImageReader  viewReader) [inline, static]

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);.

Parameters:
viewReaderReader that contains the display XML.
Returns:
Returns an image representing the display XML reader.
override mxICanvas com.mxgraph.mxGraphViewImageReader.CreateCanvas ( Dictionary< string, Object >  attrs) [inline, virtual]

Returns the canvas to be used for rendering.

Parameters:
attrsSpecifies the attributes of the new canvas.
Returns:
Returns a new canvas.

Implements com.mxgraph.mxGraphViewReader.


Member Data Documentation

Default is true.

Specifies the background color.

Specifies the border size. Default is 0.

Specifies the optional clipping rectangle.

Default is true.


Property Documentation

Accessors for the background property.

Accessors for the background property.

Accessors for the border property.

Accessors for the clip property.

Accessors for the cropping property.


The documentation for this class was generated from the following file: