| 
 | JGraph X 2.1.0.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface mxICanvas
Defines the requirements for a canvas that paints the vertices and edges of a graph.
| Method Summary | |
|---|---|
|  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. | 
|  Point | getTranslate()Returns the current translation. | 
|  void | setScale(double scale)Sets the scale for the following drawing requests. | 
|  void | setTranslate(int x,
             int y)Sets the translation for the following drawing requests. | 
| Method Detail | 
|---|
void setTranslate(int x,
                  int y)
Point 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.
| 
 | JGraph X 2.1.0.7 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||