Class mxDefaultTextShape

  • All Implemented Interfaces:
    mxITextShape

    public class mxDefaultTextShape
    extends java.lang.Object
    implements mxITextShape
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void paintShape​(mxGraphics2DCanvas canvas, java.lang.String text, mxCellState state, java.util.Map<java.lang.String,​java.lang.Object> style)  
      protected void postProcessLine​(java.lang.String text, java.lang.String line, java.awt.FontMetrics fm, mxGraphics2DCanvas canvas, int x, int y)
      Hook to add functionality after a line has been drawn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • mxDefaultTextShape

        public mxDefaultTextShape()
    • Method Detail

      • postProcessLine

        protected void postProcessLine​(java.lang.String text,
                                       java.lang.String line,
                                       java.awt.FontMetrics fm,
                                       mxGraphics2DCanvas canvas,
                                       int x,
                                       int y)
        Hook to add functionality after a line has been drawn
        Parameters:
        text - the entire label text
        line - the line at the specified location
        fm - the text font metrics
        canvas - the canvas object currently being painted to
        x - the x co-ord of the baseline of the text line
        y - the y co-ord of the baseline of the text line