Examples of drawText()


Examples of org.eclipse.swt.graphics.GC.drawText()

         
          if (eachItemInPaintOrder.hasText()) {
            newForeground = UI.newColor(eachItemInPaintOrder.getRenderForeground());
            gc.setForeground(newForeground);
            Rectangle textBounds = computeTextBounds(eachItemInPaintOrder, bounds);
            gc.drawText(eachItemInPaintOrder.getText(), textBounds.x, textBounds.y, true);
            gc.setForeground(oldForeground);
            newForeground.dispose();
          }
         
          Rectangle closeButtonBounds = computeCloseButtonBounds(eachItemInPaintOrder, bounds);
View Full Code Here

Examples of org.jnode.awt.font.FontManager.drawText()

        // we should call "simpleGraphics.drawString(str, (int) x, (int) y);"
        // but since it doesn't handle transform, we have to implement ourself the rendering
        // TODO should we move that code to simpleGraphics implementation ?
        JNodeToolkit tk = (JNodeToolkit) Toolkit.getDefaultToolkit();
        FontManager fm = tk.getFontManager();
        fm.drawText(surface, getClip(), getTransform(), str, getFont(), (int) x, (int) y, getColor());
    }

    /**
     * Fills the interior of a <code>Shape</code> using the settings of the
     * <code>Graphics2D</code> context. The rendering attributes applied
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.