java.lang.Object
io.qt.QtObject
io.qt.gui.QGradient
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Direct Known Subclasses:
QConicalGradient
,QLinearGradient
,QRadialGradient
Used in combination with QBrush to specify gradient fills
Java wrapper for Qt's class QGradient
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QGradient::CoordinateModestatic enum
Java wrapper for Qt enum QGradient::InterpolationModestatic enum
Java wrapper for Qt enum QGradient::Presetstatic enum
Java wrapper for Qt enum QGradient::SpreadNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionclone()
final QGradient.CoordinateMode
static QGradient
create
(QGradient.Preset preset) boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.int
hashCode()
final void
setColorAt
(double pos, QColor color) final void
final void
final void
setSpread
(QGradient.Spread spread) final void
setStops
(Collection<? extends QPair<Double, QColor>> stops) final QGradient.Spread
spread()
stops()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QGradient
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
coordinateMode
-
interpolationMode
-
setColorAt
-
setCoordinateMode
-
setInterpolationMode
-
setSpread
-
setStops
-
spread
-
stops
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
hashCode
-
create
-
clone
-