mxGraph
Public Member Functions | Properties
com.mxgraph.mxICanvas Interface Reference

Defines the requirements for a canvas that paints the vertices and edges of a graph. More...

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

List of all members.

Public Member Functions

Object DrawCell (mxCellState state)
 Draws the given cell.
Object DrawLabel (string text, mxCellState state, bool html)
 Draws the given label.

Properties

Point Translate [get, set]
 Sets or returns the user object of the cell.
double Scale [get, set]
 Sets or returns the user object of the cell.

Detailed Description

Defines the requirements for a canvas that paints the vertices and edges of a graph.


Member Function Documentation

Draws the given cell.

Parameters:
stateState of the cell to be painted.
Returns:
Object that represents the vertex.

Implemented in com.mxgraph.mxImageCanvas, com.mxgraph.mxGdiCanvas, and com.mxgraph.mxBasicCanvas.

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

Draws the given label.

Parameters:
textString that represents the label.
stateState of the cell whose label is to be painted.
htmlSpecifies if the label contains HTML markup.
Returns:
Object that represents the label.

Implemented in com.mxgraph.mxGdiCanvas, com.mxgraph.mxImageCanvas, and com.mxgraph.mxBasicCanvas.


Property Documentation

double com.mxgraph.mxICanvas.Scale [get, set]

Sets or returns the user object of the cell.

Implemented in com.mxgraph.mxImageCanvas, and com.mxgraph.mxBasicCanvas.

Sets or returns the user object of the cell.

Implemented in com.mxgraph.mxImageCanvas, and com.mxgraph.mxBasicCanvas.


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