public class mxHtmlTextShape extends Object implements mxITextShape
mxGraphics2DCanvas.putTextShape(mxGraphics2DCanvas.TEXT_SHAPE_HTML,
new mxHtmlTextShape()
{
protected String createHtmlDocument(Map style, String text)
{
return mxUtils.createHtmlDocument(style, text, 1, 0,
"");
}
}
);
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
replaceHtmlLinefeeds
Specifies if linefeeds should be replaced with breaks in HTML markup.
|
| Constructor and Description |
|---|
mxHtmlTextShape() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createHtmlDocument(Map<String,Object> style,
String text,
int w,
int h) |
boolean |
isReplaceHtmlLinefeeds()
Returns replaceHtmlLinefeeds
|
void |
paintShape(mxGraphics2DCanvas canvas,
String text,
mxCellState state,
Map<String,Object> style) |
void |
setReplaceHtmlLinefeeds(boolean value)
Returns replaceHtmlLinefeeds
|
protected boolean replaceHtmlLinefeeds
public boolean isReplaceHtmlLinefeeds()
public void setReplaceHtmlLinefeeds(boolean value)
protected String createHtmlDocument(Map<String,Object> style, String text, int w, int h)
public void paintShape(mxGraphics2DCanvas canvas, String text, mxCellState state, Map<String,Object> style)
paintShape in interface mxITextShapeCopyright (c) 2010 Gaudenz Alder. All rights reserved.