| 
 | JGraph X 1.4.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mxgraph.canvas.mxBasicCanvas
public abstract class mxBasicCanvas
| Field Summary | |
|---|---|
| static String | DEFAULT_IMAGEBASEPATHDefines the default value for the imageBasePath in all GDI canvases. | 
| protected  boolean | drawLabelsSpecifies whether labels should be painted. | 
| protected  String | imageBasePathDefines the base path for images with relative paths. | 
| protected  double | scaleSpecifies the current scale. | 
| protected  Point | translateSpecifies the current translation. | 
| Constructor Summary | |
|---|---|
| mxBasicCanvas() | |
| Method Summary | |
|---|---|
|  String | getImageBasePath() | 
|  String | getImageForStyle(Map<String,Object> style)Gets the image path from the given style. | 
|  double | getScale()Returns the scale. | 
|  Point | getTranslate()Returns the current translation. | 
|  boolean | isDrawLabels() | 
|  void | setDrawLabels(boolean drawLabels) | 
|  void | setImageBasePath(String imageBasePath) | 
|  void | setScale(double scale)Sets the scale for the following drawing requests. | 
|  void | setTranslate(int dx,
             int dy)Sets the translation for the following drawing requests. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface com.mxgraph.canvas.mxICanvas | 
|---|
| drawCell, drawLabel | 
| Field Detail | 
|---|
public static String DEFAULT_IMAGEBASEPATH
protected String imageBasePath
protected Point translate
protected double scale
protected boolean drawLabels
| Constructor Detail | 
|---|
public mxBasicCanvas()
| Method Detail | 
|---|
public void setTranslate(int dx,
                         int dy)
mxICanvas
setTranslate in interface mxICanvaspublic Point getTranslate()
mxICanvas
getTranslate in interface mxICanvaspublic void setScale(double scale)
mxICanvas
setScale in interface mxICanvaspublic double getScale()
mxICanvas
getScale in interface mxICanvaspublic void setDrawLabels(boolean drawLabels)
public String getImageBasePath()
public void setImageBasePath(String imageBasePath)
public boolean isDrawLabels()
public String getImageForStyle(Map<String,Object> style)
| 
 | JGraph X 1.4.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||