GC.drawText

Draws the given str, using the receiver's current font and foreground color. Tab expansion and carriage return processing are performed. If <code>isTransparent</code> is <code>true</code>, then the background of the rectangular area where the text is being drawn will not be modified, otherwise it will be filled with the receiver's background color.

@param str the str to be drawn @param x the x coordinate of the top left corner of the rectangular area where the text is to be drawn @param y the y coordinate of the top left corner of the rectangular area where the text is to be drawn @param isTransparent if <code>true</code> the background will be transparent, otherwise it will be opaque

@exception SWTException <ul> <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed</li> </ul>

  1. void drawText(String str, int x, int y)
  2. void drawText(String str, int x, int y, bool isTransparent)
    class GC
    void
    drawText
    (
    String str
    ,
    int x
    ,
    int y
    ,
    )
  3. void drawText(String str, int x, int y, int flags)

Meta