<class name="QGraphicsSimpleTextItem" doc="/**
&lt;p&gt;The &lt;a href=&quot;QGraphicsSimpleTextItem.html#QGraphicsSimpleTextItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.gui.QGraphicsScene)&quot;&gt;&lt;tt&gt;QGraphicsSimpleTextItem&lt;/tt&gt;&lt;/a&gt; class provides a simple text path item that you can add to a &lt;a href=&quot;QGraphicsScene.html&quot;&gt;&lt;tt&gt;QGraphicsScene&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To set the item's text, you can either pass a &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt; to &lt;a href=&quot;QGraphicsSimpleTextItem.html#QGraphicsSimpleTextItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.gui.QGraphicsScene)&quot;&gt;&lt;tt&gt;QGraphicsSimpleTextItem&lt;/tt&gt;&lt;/a&gt;'s constructor, or call &lt;a href=&quot;QGraphicsSimpleTextItem.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt; to change the text later. To set the text fill color, call &lt;a href=&quot;QAbstractGraphicsShapeItem.html#setBrush(com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBrush&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The simple text item can have both a fill and an outline; &lt;a href=&quot;QAbstractGraphicsShapeItem.html#setBrush(com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBrush&lt;/tt&gt;&lt;/a&gt; will set the text fill (i.e&amp;#x2e;, text color), and &lt;a href=&quot;QAbstractGraphicsShapeItem.html#setPen(com.trolltech.qt.gui.QPen)&quot;&gt;&lt;tt&gt;setPen&lt;/tt&gt;&lt;/a&gt; sets the pen that will be used to draw the text outline. (The latter can be slow, especially for complex pens, and items with long text content.) If all you want is to draw a simple line of text, you should call &lt;a href=&quot;QAbstractGraphicsShapeItem.html#setBrush(com.trolltech.qt.gui.QBrush)&quot;&gt;&lt;tt&gt;setBrush&lt;/tt&gt;&lt;/a&gt; only, and leave the pen unset; &lt;a href=&quot;QGraphicsSimpleTextItem.html#QGraphicsSimpleTextItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.gui.QGraphicsScene)&quot;&gt;&lt;tt&gt;QGraphicsSimpleTextItem&lt;/tt&gt;&lt;/a&gt;'s pen is by default Qt::NoPen.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QGraphicsSimpleTextItem.html#QGraphicsSimpleTextItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.gui.QGraphicsScene)&quot;&gt;&lt;tt&gt;QGraphicsSimpleTextItem&lt;/tt&gt;&lt;/a&gt; uses the text's formatted size and the associated font to provide a reasonable implementation of &lt;a href=&quot;QGraphicsSimpleTextItem.html#boundingRect()&quot;&gt;&lt;tt&gt;boundingRect&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QGraphicsSimpleTextItem.html#shape()&quot;&gt;&lt;tt&gt;shape&lt;/tt&gt;&lt;/a&gt;, and &lt;a href=&quot;QGraphicsSimpleTextItem.html#contains(com.trolltech.qt.core.QPointF)&quot;&gt;&lt;tt&gt;contains&lt;/tt&gt;&lt;/a&gt;. You can set the font by calling &lt;a href=&quot;QGraphicsSimpleTextItem.html#setFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This class does not display rich text; instead, you can use &lt;a href=&quot;QGraphicsTextItem.html&quot;&gt;&lt;tt&gt;QGraphicsTextItem&lt;/tt&gt;&lt;/a&gt;, which provides full text control capabilities.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/graphicsview-simpletextitem.png&quot; /&gt;&lt;/p&gt;
@see &lt;a href=&quot;QGraphicsTextItem.html&quot;&gt;&lt;tt&gt;QGraphicsTextItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsPathItem.html&quot;&gt;&lt;tt&gt;QGraphicsPathItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsRectItem.html&quot;&gt;&lt;tt&gt;QGraphicsRectItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsEllipseItem.html&quot;&gt;&lt;tt&gt;QGraphicsEllipseItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsPixmapItem.html&quot;&gt;&lt;tt&gt;QGraphicsPixmapItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsPolygonItem.html&quot;&gt;&lt;tt&gt;QGraphicsPolygonItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QGraphicsLineItem.html&quot;&gt;&lt;tt&gt;QGraphicsLineItem&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/graphicsview.html&quot;&gt;The Graphics View Framework&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QGraphicsSimpleTextItem(java.lang.String text, com.trolltech.qt.gui.QGraphicsItemInterface parent, com.trolltech.qt.gui.QGraphicsScene scene)"/>
    <method name="public QGraphicsSimpleTextItem(java.lang.String text, com.trolltech.qt.gui.QGraphicsItemInterface parent)"/>
    <method name="public QGraphicsSimpleTextItem(java.lang.String text)"/>
    <method name="public QGraphicsSimpleTextItem(com.trolltech.qt.gui.QGraphicsItemInterface parent, com.trolltech.qt.gui.QGraphicsScene scene)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QGraphicsSimpleTextItem.html#QGraphicsSimpleTextItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.gui.QGraphicsScene)&quot;&gt;&lt;tt&gt;QGraphicsSimpleTextItem&lt;/tt&gt;&lt;/a&gt;, using &lt;tt&gt;parent&lt;/tt&gt; as the default plain text.&lt;/p&gt;
&lt;p&gt;&lt;tt&gt;scene&lt;/tt&gt; is passed to &lt;a href=&quot;QGraphicsItem.html&quot;&gt;&lt;tt&gt;QGraphicsItem&lt;/tt&gt;&lt;/a&gt;'s constructor.&lt;/p&gt;

@see &lt;tt&gt;QGraphicsScene::addItem&lt;/tt&gt; */"/>
    <method name="public QGraphicsSimpleTextItem(com.trolltech.qt.gui.QGraphicsItemInterface parent)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsSimpleTextItem.html#QGraphicsSimpleTextItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.gui.QGraphicsScene)&quot;&gt;&lt;tt&gt;QGraphicsSimpleTextItem&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, 0). */"/>
    <method name="public QGraphicsSimpleTextItem()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QGraphicsSimpleTextItem.html#QGraphicsSimpleTextItem(com.trolltech.qt.gui.QGraphicsItemInterface, com.trolltech.qt.gui.QGraphicsScene)&quot;&gt;&lt;tt&gt;QGraphicsSimpleTextItem&lt;/tt&gt;&lt;/a&gt;(, 0). */"/>
    <method name="public final com.trolltech.qt.gui.QFont font()" doc="/**
&lt;p&gt;Returns the font that is used to draw the item's text.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsSimpleTextItem.html#setFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFont(com.trolltech.qt.gui.QFont font)" doc="/**
&lt;p&gt;Sets the font that is used to draw the item's text to &lt;tt&gt;font&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsSimpleTextItem.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setText(java.lang.String text)" doc="/**
&lt;p&gt;Sets the item's text to &lt;tt&gt;text&lt;/tt&gt;. The text will be displayed as plain text. Newline characters ('\n') as well as characters of type QChar::LineSeparator will cause item to break the text into multiple lines.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsSimpleTextItem.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String text()" doc="/**
&lt;p&gt;Returns the item's text.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsSimpleTextItem.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public com.trolltech.qt.core.QRectF boundingRect()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean contains(com.trolltech.qt.core.QPointF point)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public java.lang.Object extension(java.lang.Object variant)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsSimpleTextItem.html#setExtension(com.trolltech.qt.gui.QGraphicsItem.Extension, java.lang.Object)&quot;&gt;&lt;tt&gt;setExtension&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public boolean isObscuredBy(com.trolltech.qt.gui.QGraphicsItemInterface item)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.gui.QPainterPath opaqueArea()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public void paint(com.trolltech.qt.gui.QPainter painter, com.trolltech.qt.gui.QStyleOptionGraphicsItem option, com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public void setExtension(com.trolltech.qt.gui.QGraphicsItem.Extension extension, java.lang.Object variant)" doc="/**
&lt;p&gt;&lt;/p&gt;

@see &lt;a href=&quot;QGraphicsSimpleTextItem.html#extension(java.lang.Object)&quot;&gt;&lt;tt&gt;extension&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public com.trolltech.qt.gui.QPainterPath shape()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public boolean supportsExtension(com.trolltech.qt.gui.QGraphicsItem.Extension extension)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public int type()" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
</class>
