| Modifier and Type | Method and Description |
|---|---|
static int |
getDefaultAlpha()
Returns the default alpha value used for making colors transparent.
|
static Color |
getFocusBackground()
Returns the default focus background color.
|
static Color |
getFocusBorderColor()
Returns the color used for drawing the focus border (e.g. in
SpreadsheetLayer). |
static Color |
getFocusForeground()
Returns the default focus foreground color.
|
static Color |
getGridColor()
Returns the default grid color.
|
static Color |
getSelectionBackground()
Returns the default selection background color.
|
static Color |
getSelectionForeground()
Returns the default selection foreground color.
|
static Color |
makeTransparent(Color color)
Converts the given color into a transparent color with the same red,
green, blue values.
|
static Color |
makeTransparent(Color color,
int alpha)
Converts the given color into a transparent color with the same red,
green, blue values.
|
static void |
setDefaultAlpha(int alpha)
Sets the default alpha value used for making colors transparent.
|
static void |
setFocusBackground(Color color)
Sets the default focus background color.
|
static void |
setFocusBorderColor(Color color)
Sets the color used for drawing the focus border (e.g. in
SpreadsheetLayer). |
static void |
setFocusForeground(Color color)
Sets the default focus foreground color.
|
static void |
setGridColor(Color color)
Sets the default grid color.
|
static void |
setSelectionBackground(Color color)
Sets the default selection background color.
|
static void |
setSelectionForeground(Color color)
Sets the default selection foreground color.
|
public static Color makeTransparent(Color color)
makeTransparent(Color, int) and uses the default alpha value.color - the now transparent copy of the passed in colorsetDefaultAlpha(int)public static Color makeTransparent(Color color, int alpha)
color - the now transparent copy of the passed in coloralpha - the alpha value that will be used for the new colorpublic static int getDefaultAlpha()
makeTransparent(Color)public static void setDefaultAlpha(int alpha)
alpha - the default alpha value ([0, 255])makeTransparent(Color)public static Color getFocusForeground()
public static void setFocusForeground(Color color)
color - the new focus foreground colorpublic static Color getFocusBackground()
public static void setFocusBackground(Color color)
color - the new focus background colorpublic static Color getSelectionForeground()
public static void setSelectionForeground(Color color)
color - the new selection foreground colorpublic static Color getSelectionBackground()
public static void setSelectionBackground(Color color)
color - the new selection background colorpublic static Color getGridColor()
public static void setGridColor(Color color)
color - the new grid colorpublic static Color getFocusBorderColor()
SpreadsheetLayer).public static void setFocusBorderColor(Color color)
SpreadsheetLayer).color - the color to use for drawing the borderCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.