mxGraph
|
Basic implementation of a canvas that draws a graph. More...
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. |
Basic implementation of a canvas that draws a graph.
abstract Object com.mxgraph.mxBasicCanvas.DrawCell | ( | mxCellState | state | ) | [pure virtual] |
see com.mxgraph.mxICanvas.DrawCell()
Implements com.mxgraph.mxICanvas.
Implemented in com.mxgraph.mxGdiCanvas.
abstract Object com.mxgraph.mxBasicCanvas.DrawLabel | ( | string | text, |
mxCellState | state, | ||
bool | html | ||
) | [pure virtual] |
see com.mxgraph.mxICanvas.DrawLabel()
Implements com.mxgraph.mxICanvas.
Implemented in com.mxgraph.mxGdiCanvas.
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.
style |
string com.mxgraph.mxBasicCanvas.DEFAULT_IMAGEBASEPATH = "" [static] |
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.
string com.mxgraph.mxBasicCanvas.imageBasePath = DEFAULT_IMAGEBASEPATH [protected] |
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).
bool com.mxgraph.mxBasicCanvas.DrawLabels [get, set] |
Sets if labels should be visible.
string com.mxgraph.mxBasicCanvas.ImageBasePath [get, set] |
Sets or gets the image base path.
double com.mxgraph.mxBasicCanvas.Scale [get, set] |
see com.mxgraph.mxICanvas.Scale
Implements com.mxgraph.mxICanvas.
Point com.mxgraph.mxBasicCanvas.Translate [get, set] |
see com.mxgraph.mxICanvas.Translate
Implements com.mxgraph.mxICanvas.