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

Public Member Functions

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

Properties

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

Detailed Description

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

Member Function Documentation

◆ DrawCell()

Object com.mxgraph.mxICanvas.DrawCell ( mxCellState  state)

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.

Referenced by com.mxgraph.mxGraph.DrawState(), and com.mxgraph.mxGraphViewReader.ParseElement().

◆ DrawLabel()

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.

Referenced by com.mxgraph.mxGraph.DrawState(), and com.mxgraph.mxGraphViewReader.ParseElement().

Property Documentation

◆ Scale

double com.mxgraph.mxICanvas.Scale
getset

Sets or returns the user object of the cell.

Referenced by com.mxgraph.mxCellRenderer.DrawCells(), and com.mxgraph.mxGraphViewReader.ParseElement().

◆ Translate

Point com.mxgraph.mxICanvas.Translate
getset

Sets or returns the user object of the cell.

Referenced by com.mxgraph.mxCellRenderer.DrawCells(), and com.mxgraph.mxGraph.DrawState().


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