public class mxHtmlTextShape extends java.lang.Object implements mxITextShape
mxGraphics2DCanvas.putTextShape(mxGraphics2DCanvas.TEXT_SHAPE_HTML, new mxHtmlTextShape() { protected String createHtmlDocument(Mapstyle, 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 java.lang.String |
createHtmlDocument(java.util.Map<java.lang.String,java.lang.Object> style,
java.lang.String text,
int w,
int h) |
boolean |
isReplaceHtmlLinefeeds()
Returns replaceHtmlLinefeeds
|
void |
paintShape(mxGraphics2DCanvas canvas,
java.lang.String text,
mxCellState state,
java.util.Map<java.lang.String,java.lang.Object> style) |
void |
setReplaceHtmlLinefeeds(boolean value)
Returns replaceHtmlLinefeeds
|
protected boolean replaceHtmlLinefeeds
public boolean isReplaceHtmlLinefeeds()
public void setReplaceHtmlLinefeeds(boolean value)
protected java.lang.String createHtmlDocument(java.util.Map<java.lang.String,java.lang.Object> style, java.lang.String text, int w, int h)
public void paintShape(mxGraphics2DCanvas canvas, java.lang.String text, mxCellState state, java.util.Map<java.lang.String,java.lang.Object> style)
paintShape
in interface mxITextShape
Copyright (c) 2010 Gaudenz Alder, David Benson. All rights reserved.