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

Basic implementation of a canvas that draws a graph. More...

Inheritance diagram for com.mxgraph.mxBasicCanvas:
com.mxgraph.mxICanvas com.mxgraph.mxGdiCanvas

List of all members.

Public Member Functions

abstract Object DrawCell (mxCellState state)
 see com.mxgraph.mxICanvas.DrawCell()
abstract Object DrawLabel (string text, mxCellState state, bool html)
 see com.mxgraph.mxICanvas.DrawLabel()

Static Public Attributes

static string DEFAULT_IMAGEBASEPATH = ""
 Defines the default value for the imageBasePath in all GDI canvases. Default is an empty string.

Protected Member Functions

string GetImageForStyle (Dictionary< string, Object > style)
 Gets the image path from the given style. If the path is relative (does not start with a slash) then it is appended to the imageBasePath.

Protected Attributes

string imageBasePath = DEFAULT_IMAGEBASEPATH
 Defines the base path for images with relative paths. Trailing slash is required. Default value is DEFAULT_IMAGEBASEPATH.
Point translate = new Point(0, 0)
 Specifies the current translation. Default is (0,0).
double scale
 Specifies the current scale. Default is 1.
bool drawLabels = true
 Specifies whether labels should be painted. Default is true.

Properties

Point Translate [get, set]
 see com.mxgraph.mxICanvas.Translate
double Scale [get, set]
 see com.mxgraph.mxICanvas.Scale
bool DrawLabels [get, set]
 Sets if labels should be visible.
string ImageBasePath [get, set]
 Sets or gets the image base path.

Detailed Description

Basic implementation of a canvas that draws a graph.


Member Function Documentation

abstract Object com.mxgraph.mxBasicCanvas.DrawCell ( mxCellState  state) [pure virtual]
abstract Object com.mxgraph.mxBasicCanvas.DrawLabel ( string  text,
mxCellState  state,
bool  html 
) [pure virtual]
string com.mxgraph.mxBasicCanvas.GetImageForStyle ( Dictionary< string, Object >  style) [inline, protected]

Gets the image path from the given style. If the path is relative (does not start with a slash) then it is appended to the imageBasePath.

Parameters:
style
Returns:

Member Data Documentation

Defines the default value for the imageBasePath in all GDI canvases. Default is an empty string.

bool com.mxgraph.mxBasicCanvas.drawLabels = true [protected]

Specifies whether labels should be painted. Default is true.

Defines the base path for images with relative paths. Trailing slash is required. Default value is DEFAULT_IMAGEBASEPATH.

double com.mxgraph.mxBasicCanvas.scale [protected]

Specifies the current scale. Default is 1.

Point com.mxgraph.mxBasicCanvas.translate = new Point(0, 0) [protected]

Specifies the current translation. Default is (0,0).


Property Documentation

Sets if labels should be visible.

Sets or gets the image base path.


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