public interface mxICanvas
Modifier and Type | Method and Description |
---|---|
Object |
drawCell(mxCellState state)
Draws the given cell.
|
Object |
drawLabel(String text,
mxCellState state,
boolean html)
Draws the given label.
|
double |
getScale()
Returns the scale.
|
mxPoint |
getTranslate()
Returns the current translation.
|
void |
setScale(double scale)
Sets the scale for the following drawing requests.
|
void |
setTranslate(double x,
double y)
Sets the translation for the following drawing requests.
|
void setTranslate(double x, double y)
mxPoint getTranslate()
void setScale(double scale)
double getScale()
Object drawCell(mxCellState state)
state
- State of the cell to be painted.Object drawLabel(String text, mxCellState state, boolean html)
text
- String that represents the label.state
- State of the cell whose label is to be painted.html
- Specifies if the label contains HTML markup.Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.