mxGraph
|
Basic implementation of a canvas that draws a graph. More...
Public Member Functions | |
abstract Object | DrawCell (mxCellState state) |
see com.mxgraph.mxICanvas.DrawCell() More... | |
abstract Object | DrawLabel (string text, mxCellState state, bool html) |
see com.mxgraph.mxICanvas.DrawLabel() More... | |
Static Public Attributes | |
static string | DEFAULT_IMAGEBASEPATH = "" |
Defines the default value for the imageBasePath in all GDI canvases. Default is an empty string. More... | |
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. More... | |
Protected Attributes | |
string | imageBasePath = DEFAULT_IMAGEBASEPATH |
Defines the base path for images with relative paths. Trailing slash is required. Default value is DEFAULT_IMAGEBASEPATH. More... | |
Point | translate = new Point(0, 0) |
Specifies the current translation. Default is (0,0). More... | |
double | scale |
Specifies the current scale. Default is 1. More... | |
bool | drawLabels = true |
Specifies whether labels should be painted. Default is true. More... | |
Properties | |
Point | Translate [get, set] |
see com.mxgraph.mxICanvas.Translate More... | |
double | Scale [get, set] |
see com.mxgraph.mxICanvas.Scale More... | |
bool | DrawLabels [get, set] |
Sets if labels should be visible. More... | |
string | ImageBasePath [get, set] |
Sets or gets the image base path. More... | |
Properties inherited from com.mxgraph.mxICanvas | |
Point | Translate [get, set] |
Sets or returns the user object of the cell. More... | |
double | Scale [get, set] |
Sets or returns the user object of the cell. More... | |
Basic implementation of a canvas that draws a graph.
|
pure virtual |
see com.mxgraph.mxICanvas.DrawCell()
Implements com.mxgraph.mxICanvas.
Implemented in com.mxgraph.mxGdiCanvas.
|
pure virtual |
see com.mxgraph.mxICanvas.DrawLabel()
Implements com.mxgraph.mxICanvas.
Implemented in com.mxgraph.mxGdiCanvas.
|
inlineprotected |
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.
style |
References com.mxgraph.mxUtils.GetString(), and com.mxgraph.mxConstants.STYLE_IMAGE.
|
static |
Defines the default value for the imageBasePath in all GDI canvases. Default is an empty string.
|
protected |
Specifies whether labels should be painted. Default is true.
|
protected |
Defines the base path for images with relative paths. Trailing slash is required. Default value is DEFAULT_IMAGEBASEPATH.
|
protected |
Specifies the current scale. Default is 1.
|
protected |
Specifies the current translation. Default is (0,0).
|
getset |
Sets if labels should be visible.
|
getset |
Sets or gets the image base path.
|
getset |
|
getset |