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