|
JGraph X 2.1.0.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mxgraph.shape.mxHtmlTextShape
public class mxHtmlTextShape
To set global CSS for all HTML labels, use the following code:
mxGraphics2DCanvas.putTextShape(mxGraphics2DCanvas.TEXT_SHAPE_HTML,
new mxHtmlTextShape()
{
protected String createHtmlDocument(Map style, String text)
{
return mxUtils.createHtmlDocument(style, text, 1, 0,
"");
}
}
);
| Field Summary | |
|---|---|
protected boolean |
replaceHtmlLinefeeds
Specifies if linefeeds should be replaced with breaks in HTML markup. |
| Constructor Summary | |
|---|---|
mxHtmlTextShape()
|
|
| Method Summary | |
|---|---|
protected String |
createHtmlDocument(Map<String,Object> style,
String text)
|
boolean |
isReplaceHtmlLinefeeds()
Returns replaceHtmlLinefeeds |
void |
paintShape(mxGraphics2DCanvas canvas,
String text,
mxCellState state,
Map<String,Object> style)
|
void |
setReplaceHtmlLinefeeds(boolean value)
Returns replaceHtmlLinefeeds |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean replaceHtmlLinefeeds
| Constructor Detail |
|---|
public mxHtmlTextShape()
| Method Detail |
|---|
public boolean isReplaceHtmlLinefeeds()
public void setReplaceHtmlLinefeeds(boolean value)
protected String createHtmlDocument(Map<String,Object> style,
String text)
public void paintShape(mxGraphics2DCanvas canvas,
String text,
mxCellState state,
Map<String,Object> style)
paintShape in interface mxITextShape
|
JGraph X 2.1.0.7 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||