|
|||||||||
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.QGraphicsPolygonItem
public class QGraphicsPolygonItem
The QGraphicsPolygonItem class provides a polygon item that you can add to a QGraphicsScene
. To set the item's polygon, pass a QPolygonF
to QGraphicsPolygonItem's constructor, or call the setPolygon()
function. The polygon()
function returns the current polygon.
boundingRect()
, shape()
, and contains()
. The paint()
function draws the polygon using the item's associated pen and brush, which you can set by calling the setPen()
and setBrush()
functions. QGraphicsPathItem
, QGraphicsRectItem
, QGraphicsEllipseItem
, QGraphicsTextItem
, QGraphicsLineItem
, QGraphicsPixmapItem
, and The Graphics View Framework.
Nested Class Summary | |
---|---|
static class |
QGraphicsPolygonItem.enum_1
|
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 | |
---|---|
QGraphicsPolygonItem()
Constructs a QGraphicsPolygonItem. |
|
QGraphicsPolygonItem(QGraphicsItemInterface parent)
Constructs a QGraphicsPolygonItem. |
|
QGraphicsPolygonItem(QGraphicsItemInterface parent,
QGraphicsScene scene)
Constructs a QGraphicsPolygonItem. |
|
QGraphicsPolygonItem(QPolygonF polygon)
Creates a new QGraphicsPolygonItem from polygon. |
|
QGraphicsPolygonItem(QPolygonF polygon,
QGraphicsItemInterface parent)
Creates a new QGraphicsPolygonItem of the specified polygon and parent. |
|
QGraphicsPolygonItem(QPolygonF polygon,
QGraphicsItemInterface parent,
QGraphicsScene scene)
Creates a new QGraphicsPolygonItem from the given polygon, and with the specified parent. |
Method Summary | |
---|---|
Qt.FillRule |
fillRule()
Returns the fill rule of the polygon. |
QPolygonF |
polygon()
Returns the item's polygon, or an empty polygon if no polygon has been set. |
void |
setFillRule(Qt.FillRule rule)
Sets the fill rule of the polygon to rule. |
void |
setPolygon(QPolygonF polygon)
Sets the item's polygon to be the given polygon. |
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 QGraphicsPolygonItem(QGraphicsItemInterface parent)
QAbstractGraphicsShapeItem
's constructor. The item is added to scene. QGraphicsScene::addItem()
.
public QGraphicsPolygonItem()
QAbstractGraphicsShapeItem
's constructor. The item is added to scene. QGraphicsScene::addItem()
.
public QGraphicsPolygonItem(QGraphicsItemInterface parent, QGraphicsScene scene)
QAbstractGraphicsShapeItem
's constructor. The item is added to scene. QGraphicsScene::addItem()
.
public QGraphicsPolygonItem(QPolygonF polygon, QGraphicsItemInterface parent)
public QGraphicsPolygonItem(QPolygonF polygon)
public QGraphicsPolygonItem(QPolygonF polygon, QGraphicsItemInterface parent, QGraphicsScene scene)
Method Detail |
---|
public final Qt.FillRule fillRule()
Qt::OddEvenFill
. setFillRule()
, QPainterPath::fillRule()
, and QPainter::drawPolygon()
.
public final QPolygonF polygon()
setPolygon()
.
public final void setFillRule(Qt.FillRule rule)
Qt::OddEvenFill
. fillRule()
, QPainterPath::fillRule()
, and QPainter::drawPolygon()
.
public final void setPolygon(QPolygonF polygon)
polygon()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |