swingwt.awt
Class SystemColor
java.lang.Object
swingwt.awt.Color
swingwt.awt.SystemColor
- All Implemented Interfaces:
- Paint, Transparency
- public final class SystemColor
- extends Color
System Color mapped implementation to
values read from SWT
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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