Package com.mxgraph.shape
Class mxDefaultTextShape
java.lang.Object
com.mxgraph.shape.mxDefaultTextShape
- All Implemented Interfaces:
mxITextShape
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
paintShape
(mxGraphics2DCanvas canvas, String text, mxCellState state, Map<String, Object> style) protected void
postProcessLine
(String text, String line, FontMetrics fm, mxGraphics2DCanvas canvas, int x, int y) Hook to add functionality after a line has been drawn
-
Constructor Details
-
mxDefaultTextShape
public mxDefaultTextShape()
-
-
Method Details
-
paintShape
public void paintShape(mxGraphics2DCanvas canvas, String text, mxCellState state, Map<String, Object> style) - Specified by:
paintShape
in interfacemxITextShape
-
postProcessLine
protected void postProcessLine(String text, String line, FontMetrics fm, mxGraphics2DCanvas canvas, int x, int y) Hook to add functionality after a line has been drawn- Parameters:
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 line
-