|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.gui.QAbstractGraphicsShapeItem
com.trolltech.qt.gui.QGraphicsPathItem
public class QGraphicsPathItem
The QGraphicsPathItem
class provides a path item that you can add to a QGraphicsScene
. To set the item's path, pass a QPainterPath
to QGraphicsPathItem
's constructor, or call the setPath()
function. The path()
function returns the current path.
QGraphicsPathItem
uses the path to provide a reasonable implementation of boundingRect()
, shape()
, and contains()
. The paint()
function draws the path using the item's associated pen and brush, which you can set by calling the setPen()
and setBrush()
functions. QGraphicsRectItem
, QGraphicsEllipseItem
, QGraphicsPolygonItem
, QGraphicsTextItem
, QGraphicsLineItem
, QGraphicsPixmapItem
, and The Graphics View Framework.
Nested Class Summary | |
---|---|
static class |
QGraphicsPathItem.enum_1
|
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal |
Field Summary |
---|
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
currentSender |
Constructor Summary | |
---|---|
QGraphicsPathItem()
Constructs a QGraphicsPath. |
|
QGraphicsPathItem(QGraphicsItemInterface parent)
Constructs a QGraphicsPath. |
|
QGraphicsPathItem(QGraphicsItemInterface parent,
QGraphicsScene scene)
Constructs a QGraphicsPath. |
|
QGraphicsPathItem(QPainterPath path)
Creates a new QGraphicsPathItem from the specified path. |
|
QGraphicsPathItem(QPainterPath path,
QGraphicsItemInterface parent)
Creates a new QGraphicsPathItem from the specified path and parent. |
|
QGraphicsPathItem(QPainterPath path,
QGraphicsItemInterface parent,
QGraphicsScene scene)
Creates a new QGraphicsPathItem from the specified path, parent, and scene. |
Method Summary | |
---|---|
QPainterPath |
path()
Returns the item's path as a QPainterPath . |
void |
setPath(QPainterPath path)
Sets the item's path to be the given path. |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
---|
clone, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QGraphicsPathItem(QGraphicsItemInterface parent)
QAbstractGraphicsShapeItem
's constructor. The item is added to scene. QGraphicsScene::addItem()
.
public QGraphicsPathItem()
QAbstractGraphicsShapeItem
's constructor. The item is added to scene. QGraphicsScene::addItem()
.
public QGraphicsPathItem(QGraphicsItemInterface parent, QGraphicsScene scene)
QAbstractGraphicsShapeItem
's constructor. The item is added to scene. QGraphicsScene::addItem()
.
public QGraphicsPathItem(QPainterPath path, QGraphicsItemInterface parent)
public QGraphicsPathItem(QPainterPath path)
public QGraphicsPathItem(QPainterPath path, QGraphicsItemInterface parent, QGraphicsScene scene)
Method Detail |
---|
public final QPainterPath path()
QPainterPath
. If no item has been set, an empty QPainterPath
is returned. setPath()
.
public final void setPath(QPainterPath path)
path()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |