question: protected void drawHtmlText ( String text , int x , int y , int w , int h , Map < String , Object > style ) { mxLighweightLabel textRenderer = mxLighweightLabel . getSharedInstance ( ) ; if ( textRenderer != null && rendererPane != null ) { boolean horizontal = mxUtils . isTrue ( style , mxConstants . STYLE_HORIZONTAL , true ) ; if ( g . hitClip ( x , y , w , h ) ) { AffineTransform at = g . getTransform ( ) ; if ( ! horizontal ) { g . rotate ( - Math . PI / 2 , x + w / 2 , y + h / 2 ) ; g . translate ( w / 2 - h / 2 , h / 2 - w / 2 ) ; int tmp = w ; w = h ; h = tmp ; } textRenderer . setText ( mxUtils . createHtmlDocument ( style , text ) ) ; g . scale ( scale , scale ) ; rendererPane . paintComponent ( g , textRenderer , rendererPane , ( int ) ( x / scale ) + mxConstants . LABEL_INSET , ( int ) ( y / scale ) + mxConstants . LABEL_INSET , ( int ) ( w / scale ) , ( int ) ( h / scale ) , true ) ; g . setTransform ( at ) ; } } }
target:  Draws the specified HTML markup.