double (Graphics2D g) { if (myCharWidth < 0) { FontRenderContext fontRenderContext = g.getFontRenderContext(); myCharWidth = myPlainFont.getStringBounds(DEFAULT_MEASURE_WIDTH_TEXT, fontRenderContext).getWidth(); } return myCharWidth; }