protected void drawToolTipText(
      DrawContext dc, String text, int x, int y, ToolTipAttributes attributes) {
    java.awt.Color textColor =
        this.modulateColorOpacity(attributes.getTextColor(), attributes.getTextOpacity());

    TextRenderer textRenderer = this.getTextRenderer(dc, attributes.getFont());
    textRenderer.begin3DRendering();
    textRenderer.setColor(textColor);
    textRenderer.draw(text, x, y);
    textRenderer.end3DRendering();
  }
 protected java.awt.geom.Rectangle2D computeTextBounds(
     DrawContext dc, String text, java.awt.Font font) {
   TextRenderer textRenderer = this.getTextRenderer(dc, font);
   return textRenderer.getBounds(text);
 }