com.jniwrapper.win32.gdi
Class SystemColor

java.lang.Object
  extended bycom.jniwrapper.util.EnumItem
      extended bycom.jniwrapper.win32.gdi.SystemColor

public class SystemColor
extends com.jniwrapper.util.EnumItem

SystemColor class provides the ability to read and write system colors. Also, represents enumeration of predefined system colors.


Field Summary
static SystemColor _3DDKSHADOW
           
static SystemColor _3DFACE
           
static SystemColor _3DHIGHLIGHT
           
static SystemColor _3DHILIGHT
           
static SystemColor _3DLIGHT
           
static SystemColor _3DSHADOW
           
static SystemColor ACTIVEBORDER
           
static SystemColor ACTIVECAPTION
           
static SystemColor APPWORKSPACE
           
static SystemColor BACKGROUND
           
static SystemColor BTNFACE
           
static SystemColor BTNHIGHLIGHT
           
static SystemColor BTNHILIGHT
           
static SystemColor BTNSHADOW
           
static SystemColor BTNTEXT
           
static SystemColor CAPTIONTEXT
           
static SystemColor DESKTOP
           
static SystemColor GRADIENTACTIVECAPTION
           
static SystemColor GRADIENTINACTIVECAPTION
           
static SystemColor GRAYTEXT
           
static SystemColor HIGHLIGHT
           
static SystemColor HIGHLIGHTTEXT
           
static SystemColor HOTLIGHT
           
static SystemColor INACTIVEBORDER
           
static SystemColor INACTIVECAPTION
           
static SystemColor INACTIVECAPTIONTEXT
           
static SystemColor INFOBK
           
static SystemColor INFOTEXT
           
static SystemColor MENU
           
static SystemColor MENUTEXT
           
static SystemColor SCROLLBAR
           
static SystemColor WINDOW
           
static SystemColor WINDOWFRAME
           
static SystemColor WINDOWTEXT
           
 
Method Summary
 java.awt.Color getColor()
           
static java.awt.Color getSysColor(int colorIndex)
          Retrieves a system color by the specified index.
 void setColor(java.awt.Color newColor)
          Sets a new system color.
static void setSysColor(int[] colorIndices, java.awt.Color[] colors)
          Sets system colors by the specified indexes.
static void setSysColor(int colorIndex, java.awt.Color color)
          Sets a system color by the specified index.
 
Methods inherited from class com.jniwrapper.util.EnumItem
equals, getLongValue, getValue, hashCode, isOneOf
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCROLLBAR

public static final SystemColor SCROLLBAR

BACKGROUND

public static final SystemColor BACKGROUND

ACTIVECAPTION

public static final SystemColor ACTIVECAPTION

INACTIVECAPTION

public static final SystemColor INACTIVECAPTION

MENU

public static final SystemColor MENU

WINDOW

public static final SystemColor WINDOW

WINDOWFRAME

public static final SystemColor WINDOWFRAME

MENUTEXT

public static final SystemColor MENUTEXT

WINDOWTEXT

public static final SystemColor WINDOWTEXT

CAPTIONTEXT

public static final SystemColor CAPTIONTEXT

ACTIVEBORDER

public static final SystemColor ACTIVEBORDER

INACTIVEBORDER

public static final SystemColor INACTIVEBORDER

APPWORKSPACE

public static final SystemColor APPWORKSPACE

HIGHLIGHT

public static final SystemColor HIGHLIGHT

HIGHLIGHTTEXT

public static final SystemColor HIGHLIGHTTEXT

BTNFACE

public static final SystemColor BTNFACE

BTNSHADOW

public static final SystemColor BTNSHADOW

GRAYTEXT

public static final SystemColor GRAYTEXT

BTNTEXT

public static final SystemColor BTNTEXT

INACTIVECAPTIONTEXT

public static final SystemColor INACTIVECAPTIONTEXT

BTNHIGHLIGHT

public static final SystemColor BTNHIGHLIGHT

_3DDKSHADOW

public static final SystemColor _3DDKSHADOW

_3DLIGHT

public static final SystemColor _3DLIGHT

INFOTEXT

public static final SystemColor INFOTEXT

INFOBK

public static final SystemColor INFOBK

HOTLIGHT

public static final SystemColor HOTLIGHT

GRADIENTACTIVECAPTION

public static final SystemColor GRADIENTACTIVECAPTION

GRADIENTINACTIVECAPTION

public static final SystemColor GRADIENTINACTIVECAPTION

DESKTOP

public static final SystemColor DESKTOP

_3DFACE

public static final SystemColor _3DFACE

_3DSHADOW

public static final SystemColor _3DSHADOW

_3DHIGHLIGHT

public static final SystemColor _3DHIGHLIGHT

_3DHILIGHT

public static final SystemColor _3DHILIGHT

BTNHILIGHT

public static final SystemColor BTNHILIGHT
Method Detail

getColor

public java.awt.Color getColor()
Returns:
system color value.

setColor

public void setColor(java.awt.Color newColor)
Sets a new system color.

Parameters:
newColor -

getSysColor

public static java.awt.Color getSysColor(int colorIndex)
Retrieves a system color by the specified index.

Parameters:
colorIndex - the index of the color.
Returns:
a system color.

setSysColor

public static void setSysColor(int colorIndex,
                               java.awt.Color color)
Sets a system color by the specified index.

Parameters:
colorIndex - the index of the color.
color - a new color.

setSysColor

public static void setSysColor(int[] colorIndices,
                               java.awt.Color[] colors)
Sets system colors by the specified indexes.

Parameters:
colorIndices - an array of color indexes.
colors - an array of colors.