Qt Jambi Home

com.trolltech.qt.core
Enum Qt.GlobalColor

java.lang.Object
  extended by java.lang.Enum<Qt.GlobalColor>
      extended by com.trolltech.qt.core.Qt.GlobalColor
All Implemented Interfaces:
QtEnumerator, java.io.Serializable, java.lang.Comparable<Qt.GlobalColor>
Enclosing interface:
Qt

public static enum Qt.GlobalColor
extends java.lang.Enum<Qt.GlobalColor>
implements QtEnumerator

Qt's predefined QColor objects:

ConstantValueDescription
white3 White (#ffffff)
black2 Black (#000000)
red7 Red (#ff0000)
darkRed13 Dark red (#800000)
green8 Green (#00ff00)
darkGreen14 Dark green (#008000)
blue9 Blue (#0000ff)
darkBlue15 Dark blue (#000080)
cyan10 Cyan (#00ffff)
darkCyan16 Dark cyan (#008080)
magenta11 Magenta (#ff00ff)
darkMagenta17 Dark magenta (#800080)
yellow12 Yellow (#ffff00)
darkYellow18 Dark yellow (#808000)
gray5 Gray (#a0a0a4)
darkGray4 Dark gray (#808080)
lightGray6 Light gray (#c0c0c0)
transparent19a transparent black value (i.e., QColor(0, 0, 0, 0))
color000 pixel value (for bitmaps)
color111 pixel value (for bitmaps)

See Also:
QColor

Enum Constant Summary
black
          Black (#000000)
blue
          Blue (#0000ff)
color0
          0 pixel value (for bitmaps)
color1
          1 pixel value (for bitmaps)
cyan
          Cyan (#00ffff)
darkBlue
          Dark blue (#000080)
darkCyan
          Dark cyan (#008080)
darkGray
          Dark gray (#808080)
darkGreen
          Dark green (#008000)
darkMagenta
          Dark magenta (#800080)
darkRed
          Dark red (#800000)
darkYellow
          Dark yellow (#808000)
gray
          Gray (#a0a0a4)
green
          Green (#00ff00)
lightGray
          Light gray (#c0c0c0)
magenta
          Magenta (#ff00ff)
red
          Red (#ff0000)
transparent
          a transparent black value (i.e., QColor(0, 0, 0, 0))
white
          White (#ffffff)
yellow
          Yellow (#ffff00)
 
Method Summary
static Qt.GlobalColor resolve(int value)
           
 int value()
          This function should return an integer value for the enum values of the enumeration that implements this interface.
static Qt.GlobalColor valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Qt.GlobalColor[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

color0

public static final Qt.GlobalColor color0

0 pixel value (for bitmaps)


color1

public static final Qt.GlobalColor color1

1 pixel value (for bitmaps)


black

public static final Qt.GlobalColor black
Black (#000000)


white

public static final Qt.GlobalColor white
White (#ffffff)


darkGray

public static final Qt.GlobalColor darkGray
Dark gray (#808080)


gray

public static final Qt.GlobalColor gray
Gray (#a0a0a4)


lightGray

public static final Qt.GlobalColor lightGray
Light gray (#c0c0c0)


red

public static final Qt.GlobalColor red
Red (#ff0000)


green

public static final Qt.GlobalColor green
Green (#00ff00)


blue

public static final Qt.GlobalColor blue
Blue (#0000ff)


cyan

public static final Qt.GlobalColor cyan
Cyan (#00ffff)


magenta

public static final Qt.GlobalColor magenta
Magenta (#ff00ff)


yellow

public static final Qt.GlobalColor yellow
Yellow (#ffff00)


darkRed

public static final Qt.GlobalColor darkRed
Dark red (#800000)


darkGreen

public static final Qt.GlobalColor darkGreen
Dark green (#008000)


darkBlue

public static final Qt.GlobalColor darkBlue
Dark blue (#000080)


darkCyan

public static final Qt.GlobalColor darkCyan
Dark cyan (#008080)


darkMagenta

public static final Qt.GlobalColor darkMagenta
Dark magenta (#800080)


darkYellow

public static final Qt.GlobalColor darkYellow
Dark yellow (#808000)


transparent

public static final Qt.GlobalColor transparent

a transparent black value (i.e., QColor(0, 0, 0, 0))

Method Detail

values

public static Qt.GlobalColor[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Qt.GlobalColor c : Qt.GlobalColor.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Qt.GlobalColor valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

value

public int value()
Description copied from interface: QtEnumerator
This function should return an integer value for the enum values of the enumeration that implements this interface.

Specified by:
value in interface QtEnumerator

resolve

public static Qt.GlobalColor resolve(int value)

Qt Jambi Home