Package javax.swing.text

Examples of javax.swing.text.View.paint()


    Graphics2D g2d = (Graphics2D) g.create();
    if (text != null && !text.equals("")) {
      final View v = (View) b.getClientProperty(BasicHTML.propertyKey);
      if (v != null) {
        v.paint(g2d, textRect);
      } else {
        this.paintButtonText(g2d, b, textRect, text);
      }
    }
View Full Code Here


    View v = (View) c.getClientProperty(BasicHTML.propertyKey);
    g2d.setFont(f);

    this.delegate.updateBackground(g2d, b);
    if (v != null) {
      v.paint(g2d, textRect);
    } else {
      this.paintButtonText(g2d, b, textRect, text);
    }

    // Paint the Icon
View Full Code Here

    Rectangle paintTextR = new Rectangle(insets.left + 3, insets.top,
        size.width - (insets.left + insets.right + 6), size.height
            - (insets.top + insets.bottom + 2));
    View v = (View) c.getClientProperty(BasicHTML.propertyKey);
    if (v != null) {
      v.paint(g, paintTextR);
    } else {
      SubstanceTextUtilities.paintText(g, c, paintTextR, tipText, -1,
          font, c.getForeground(), null);
    }
  }
View Full Code Here

    g2d.setFont(f);

    this.delegate.updateBackground(g2d, b);

    if (v != null) {
      v.paint(g2d, textRect);
    } else {
      this.paintButtonText(g2d, b, textRect, text);
    }

    // Paint the Icon
View Full Code Here

    Graphics2D graphics = (Graphics2D) g2d.create();
    if (mli.text != null) {
      View v = (View) menuItem.getClientProperty(BasicHTML.propertyKey);
      if (v != null) {
        v.paint(graphics, mli.textRect);
      } else {
        SubstanceTextUtilities.paintText(graphics, menuItem,
            mli.textRect, mli.text, menuItem
                .getDisplayedMnemonicIndex());
      }
View Full Code Here

    // Draw the Text
    if (text != null) {
      View v = (View) c.getClientProperty("html");
      // BasicHTML.propertyKey
      if (v != null) {
        v.paint(g, textRect);
      }
      else {
        if (model.isEnabled()) {
          // *** paint the text normally
          g.setColor(b.getForeground());
View Full Code Here

    if (text != null && !text.equals("")) {
      //PENDING(fred): BasicHTML is not used because package private in JDK1.2 (not in 1.3)
      View v = (View) c.getClientProperty("html");
      //BasicHTML.propertyKey
      if (v != null) {
        v.paint(g, textRect);
      }
      else {
        paintText(g, c, textRect, text);
      }
    }
View Full Code Here

    // Draw the Text
    if (text != null && !text.equals("")) {
      View v = (View) c.getClientProperty("html");
      //BasicHTML.propertyKey);
      if (v != null) {
        v.paint(g, textRect);
      }
      else {
        paintText(g, (JComponent)b,
                  textRect,
                  text);
View Full Code Here

        {
            final View v = ( View ) label.getClientProperty ( BasicHTML.propertyKey );
            if ( v != null )
            {
                // Painting HTML label view
                v.paint ( g2d, paintTextR );
            }
            else
            {
                // Painting plain label view
                final int textX = paintTextR.x;
View Full Code Here

        g.setFont ( font );
        final View v = getTextViewForTab ( tabIndex );
        if ( v != null )
        {
            // html
            v.paint ( g, textRect );
        }
        else
        {
            // plain text
            final int mnemIndex = tabPane.getDisplayedMnemonicIndexAt ( tabIndex );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.