mxGraph
Public Member Functions | Static Public Member Functions | Protected Attributes | Properties | List of all members
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

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< mxPointParsePoints (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...
 

Detailed Description

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

Constructor & Destructor Documentation

com.mxgraph.mxGraphViewImageReader.mxGraphViewImageReader ( XmlReader  reader)
inline

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

Parameters
viewReaderReader that contains the display XML.
Returns
Returns an image representing the display XML reader.

References com.mxgraph.mxGraphViewReader.Canvas.

override mxICanvas com.mxgraph.mxGraphViewImageReader.CreateCanvas ( Dictionary< string, Object >  attrs)
inlinevirtual

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.

References com.mxgraph.mxUtils.GetDouble(), com.mxgraph.mxRectangle.Width, and com.mxgraph.mxPoint.X.

Member Data Documentation

bool com.mxgraph.mxGraphViewImageReader.antiAlias
protected

Default is true.

Color com.mxgraph.mxGraphViewImageReader.background
protected

Specifies the background color.

int com.mxgraph.mxGraphViewImageReader.border
protected

Specifies the border size. Default is 0.

mxRectangle com.mxgraph.mxGraphViewImageReader.clip
protected

Specifies the optional clipping rectangle.

bool com.mxgraph.mxGraphViewImageReader.cropping
protected

Default is true.

Property Documentation

bool com.mxgraph.mxGraphViewImageReader.AntiAlias
getset

Accessors for the background property.

Color com.mxgraph.mxGraphViewImageReader.Background
getset

Accessors for the background property.

int com.mxgraph.mxGraphViewImageReader.Border
getset

Accessors for the border property.

mxRectangle com.mxgraph.mxGraphViewImageReader.Clip
getset

Accessors for the clip property.

bool com.mxgraph.mxGraphViewImageReader.Cropping
getset

Accessors for the cropping property.


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