- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable<QChartView.RubberBands>
- Enclosing class:
QChartView
public static final class QChartView.RubberBands
extends QFlags<QChartView.RubberBand>
implements Comparable<QChartView.RubberBands>
QFlags
type for enum QChartView.RubberBand
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates a new RubberBands.RubberBands
(int value) Creates a new RubberBands with givenvalue
.RubberBands
(QChartView.RubberBand ... args) Creates a new RubberBands where the flags inargs
are set. -
Method Summary
Modifier and TypeMethodDescriptionfinal QChartView.RubberBands
clone()
Clones the flagsfinal QChartView.RubberBands
Combines this flags with enum entry.final int
compareTo
(QChartView.RubberBands other) final QChartView.RubberBand []
flags()
Returns an array of flag objects represented by this RubberBands.final QChartView.RubberBands
Sets the flage
final QChartView.RubberBands
setFlag
(QChartView.RubberBand e, boolean on) Sets or clears the flagflag
final void
setValue
(int value) Sets the value of this QFlags.final int
value()
Returns the value of this QFlags.
-
Constructor Details
-
RubberBands
public RubberBands()Creates a new RubberBands. -
RubberBands
Creates a new RubberBands where the flags inargs
are set.- Parameters:
args
- enum entries
-
RubberBands
public RubberBands(int value) Creates a new RubberBands with givenvalue
.- Parameters:
value
-
-
-
Method Details
-
combined
Combines this flags with enum entry.- Overrides:
combined
in classQFlags<QChartView.RubberBand>
- Parameters:
e
- enum entry- Returns:
- new RubberBands
-
setFlag
Sets the flage
- Overrides:
setFlag
in classQFlags<QChartView.RubberBand>
- Parameters:
e
- enum entry- Returns:
- this
-
setFlag
Sets or clears the flagflag
- Overrides:
setFlag
in classQFlags<QChartView.RubberBand>
- Parameters:
e
- enum entryon
- set (true) or clear (false)- Returns:
- this
-
flags
Returns an array of flag objects represented by this RubberBands.- Overrides:
flags
in classQFlags<QChartView.RubberBand>
- Returns:
- array of enum entries
-
clone
Clones the flags- Overrides:
clone
in classQFlags<QChartView.RubberBand>
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QChartView.RubberBands>
-
value
public final int value()Returns the value of this QFlags. -
setValue
public final void setValue(int value) Sets the value of this QFlags.- Parameters:
value
- new value
-