mxITextShapepublic class mxDefaultTextShape extends java.lang.Object implements mxITextShape
| Constructor | Description |
|---|---|
mxDefaultTextShape() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
paintShape(mxGraphics2DCanvas canvas,
java.lang.String text,
mxCellState state,
java.util.Map<java.lang.String,java.lang.Object> style) |
|
protected void |
postProcessLine(java.lang.String text,
java.lang.String line,
java.awt.FontMetrics fm,
mxGraphics2DCanvas canvas,
int x,
int y) |
Hook to add functionality after a line has been drawn
|
public void paintShape(mxGraphics2DCanvas canvas, java.lang.String text, mxCellState state, java.util.Map<java.lang.String,java.lang.Object> style)
paintShape in interface mxITextShapeprotected void postProcessLine(java.lang.String text,
java.lang.String line,
java.awt.FontMetrics fm,
mxGraphics2DCanvas canvas,
int x,
int y)
text - the entire label textline - the line at the specified locationfm - the text font metricscanvas - the canvas object currently being painted tox - the x co-ord of the baseline of the text liney - the y co-ord of the baseline of the text lineCopyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.