swingwt.awt
Class SystemColor

java.lang.Object
  extended byswingwt.awt.Color
      extended byswingwt.awt.SystemColor
All Implemented Interfaces:
Paint, Transparency

public final class SystemColor
extends Color

System Color mapped implementation to values read from SWT


Field Summary
static SystemColor activeCaption
           
static SystemColor activeCaptionBorder
           
static SystemColor activeCaptionText
           
static SystemColor control
           
static SystemColor controlDkShadow
           
static SystemColor controlHighlight
           
static SystemColor controlLtHighlight
           
static SystemColor controlShadow
           
static SystemColor controlText
           
static SystemColor desktop
          Convenience references to system colors
static SystemColor inactiveCaption
           
static SystemColor inactiveCaptionBorder
           
static SystemColor inactiveCaptionText
           
static SystemColor info
           
static SystemColor infoText
           
static SystemColor menu
           
static SystemColor menuText
           
static SystemColor scrollbar
           
static SystemColor text
           
static SystemColor textHighlight
           
static SystemColor textHighlightText
           
static SystemColor textInactiveText
           
static SystemColor textText
           
static SystemColor window
           
static SystemColor windowBorder
           
static SystemColor windowText
           
 
Fields inherited from class swingwt.awt.Color
black, BLACK, blue, BLUE, colourScale, cyan, CYAN, DARK_GRAY, darkGray, gray, GRAY, green, GREEN, LIGHT_GRAY, lightGray, magenta, MAGENTA, orange, ORANGE, pink, PINK, red, RED, swtColour, white, WHITE, yellow, YELLOW
 
Fields inherited from interface swingwt.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT
 
Method Summary
protected  int[] breakRGBComponents(int value)
          Converts the big single integer containing all colour values into the separate RGB bits and returns them in an array.
 Color brighter()
           
 Color darker()
           
 void dispose()
           
 int getBlue()
           
 int getGreen()
           
 int getRed()
           
 int getRGB()
           
 org.eclipse.swt.graphics.Color getSWTColor()
          Versions of base Color classes that checks that the SWT color has already been initialized.
static SystemColor getSystemColor(int swtId)
           
 java.lang.String toString()
           
 
Methods inherited from class swingwt.awt.Color
createContext, getRGBColorComponents, getTransparency
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

desktop

public static final SystemColor desktop
Convenience references to system colors


activeCaption

public static final SystemColor activeCaption

activeCaptionText

public static final SystemColor activeCaptionText

activeCaptionBorder

public static final SystemColor activeCaptionBorder

inactiveCaption

public static final SystemColor inactiveCaption

inactiveCaptionText

public static final SystemColor inactiveCaptionText

inactiveCaptionBorder

public static final SystemColor inactiveCaptionBorder

window

public static final SystemColor window

windowBorder

public static final SystemColor windowBorder

windowText

public static final SystemColor windowText

menu

public static final SystemColor menu

menuText

public static final SystemColor menuText

text

public static final SystemColor text

textText

public static final SystemColor textText

textHighlight

public static final SystemColor textHighlight

textHighlightText

public static final SystemColor textHighlightText

textInactiveText

public static final SystemColor textInactiveText

control

public static final SystemColor control

controlText

public static final SystemColor controlText

controlHighlight

public static final SystemColor controlHighlight

controlLtHighlight

public static final SystemColor controlLtHighlight

controlShadow

public static final SystemColor controlShadow

controlDkShadow

public static final SystemColor controlDkShadow

scrollbar

public static final SystemColor scrollbar

info

public static final SystemColor info

infoText

public static final SystemColor infoText
Method Detail

getSystemColor

public static final SystemColor getSystemColor(int swtId)

getSWTColor

public org.eclipse.swt.graphics.Color getSWTColor()
Versions of base Color classes that checks that the SWT color has already been initialized. These should ONLY be called from the paint thread, or you'll get an InvalidAccess exception!

Overrides:
getSWTColor in class Color

getRed

public int getRed()
Overrides:
getRed in class Color

getGreen

public int getGreen()
Overrides:
getGreen in class Color

getBlue

public int getBlue()
Overrides:
getBlue in class Color

getRGB

public int getRGB()
Overrides:
getRGB in class Color

breakRGBComponents

protected int[] breakRGBComponents(int value)
Description copied from class: Color
Converts the big single integer containing all colour values into the separate RGB bits and returns them in an array.

Overrides:
breakRGBComponents in class Color

brighter

public Color brighter()
Overrides:
brighter in class Color

darker

public Color darker()
Overrides:
darker in class Color

toString

public java.lang.String toString()
Overrides:
toString in class Color

dispose

public void dispose()
Overrides:
dispose in class Color