Documentation of 'com.mxgraph.shape.mxHtmlTextShape' Java class
mxHtmlTextShape
com.mxgraph.shape

Class mxHtmlTextShape

  • All Implemented Interfaces:
    mxITextShape


    public class mxHtmlTextShape
    extends java.lang.Object
    implements mxITextShape
    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,
               "");
         }
       }
     );
     
    • Constructor Detail

      • mxHtmlTextShape

        public mxHtmlTextShape()
    • Method Detail

      • isReplaceHtmlLinefeeds

        public boolean isReplaceHtmlLinefeeds()
        Returns replaceHtmlLinefeeds
      • setReplaceHtmlLinefeeds

        public void setReplaceHtmlLinefeeds(boolean value)
        Returns replaceHtmlLinefeeds

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.