Package be.gaudry.model.drawing.color
Class BrolColor
java.lang.Object
be.gaudry.model.drawing.color.BrolColor
BrolColor is a set of
Colors
and ContrastedColors
available for the Broldev applications.
This may be useful when we need to use undefined colors at runtime.
Provided by the broldev.core.model project.- Since:
- 1.0 Jun 24, 2008, broldev.core.model 0.0.1-SNAPSHOT dependency
- Version:
- 1.0 Jun 24, 2008
- Author:
- Steph GAUDRY
-
Field Summary
Modifier and TypeFieldDescriptionstatic Color
Color
for the alternate line background into a table or a sheet.static Color
Color
for the alternate line foreground into a table or a sheet.static Color
BackgroundColor
of the Broldev's GUI components (Egg)static Color
Color
of the dark border of the Broldev's GUI components (Dark blue).static Color
HighlightColor
of the Broldev's GUI components (Orange)static Color
Color
for the line background into a table or a sheet.static Color
Color
for the line foreground into a table or a sheet.static Color
Color
for the drop location background into a table or a sheet.static Color
Color
for the drop location foreground into a table or a sheet.static Color
Color
for the selected line background into a table or a sheet.static Color
Color
for the selected line foreground into a table or a sheet. -
Method Summary
Modifier and TypeMethodDescriptionstatic ContrastedColor
getBrolColor(int index)
Provides a way to load colors from the available set into an iteration by giving an index (0 based) to avoid loading twice the same color.static int
-
Field Details
-
DEFAULT_LINE_FORGROUND_COLOR
Color
for the line foreground into a table or a sheet. -
DEFAULT_LINE_BACKGROUND_COLOR
Color
for the line background into a table or a sheet. -
ALTERNATE_LINE_FORGROUND_COLOR
Color
for the alternate line foreground into a table or a sheet. -
ALTERNATE_LINE_BACKGROUND_COLOR
Color
for the alternate line background into a table or a sheet. -
SELECTED_LINE_FORGROUND_COLOR
Color
for the selected line foreground into a table or a sheet. -
SELECTED_LINE_BACKGROUND_COLOR
Color
for the selected line background into a table or a sheet. -
DROPLOCATION_FORGROUND_COLOR
Color
for the drop location foreground into a table or a sheet. -
DROPLOCATION_BACKGROUND_COLOR
Color
for the drop location background into a table or a sheet. -
COMPONENT_BORDER_COLOR
Color
of the dark border of the Broldev's GUI components (Dark blue). -
COMPONENT_BACKGROUND_COLOR
BackgroundColor
of the Broldev's GUI components (Egg) -
COMPONENT_BORDER_HILIGHT_COLOR
HighlightColor
of the Broldev's GUI components (Orange)
-
-
Method Details
-
getBrolColor
Provides a way to load colors from the available set into an iteration by giving an index (0 based) to avoid loading twice the same color. \nIf the index is higher than thecount of colors
, a color is picked in a random way from the set.- Parameters:
index
-- Returns:
- a
ContrastedColor
to give foreground and background.
-
getColorsCount
public static int getColorsCount()- Returns:
- the count of available colors
-