Class BrolColor

java.lang.Object
be.gaudry.model.drawing.color.BrolColor

public final class BrolColor extends Object
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 Details

    • DEFAULT_LINE_FORGROUND_COLOR

      public static final Color DEFAULT_LINE_FORGROUND_COLOR
      Color for the line foreground into a table or a sheet.
    • DEFAULT_LINE_BACKGROUND_COLOR

      public static final Color DEFAULT_LINE_BACKGROUND_COLOR
      Color for the line background into a table or a sheet.
    • ALTERNATE_LINE_FORGROUND_COLOR

      public static final Color ALTERNATE_LINE_FORGROUND_COLOR
      Color for the alternate line foreground into a table or a sheet.
    • ALTERNATE_LINE_BACKGROUND_COLOR

      public static final Color ALTERNATE_LINE_BACKGROUND_COLOR
      Color for the alternate line background into a table or a sheet.
    • SELECTED_LINE_FORGROUND_COLOR

      public static final Color SELECTED_LINE_FORGROUND_COLOR
      Color for the selected line foreground into a table or a sheet.
    • SELECTED_LINE_BACKGROUND_COLOR

      public static final Color SELECTED_LINE_BACKGROUND_COLOR
      Color for the selected line background into a table or a sheet.
    • DROPLOCATION_FORGROUND_COLOR

      public static final Color DROPLOCATION_FORGROUND_COLOR
      Color for the drop location foreground into a table or a sheet.
    • DROPLOCATION_BACKGROUND_COLOR

      public static final Color DROPLOCATION_BACKGROUND_COLOR
      Color for the drop location background into a table or a sheet.
    • COMPONENT_BORDER_COLOR

      public static final Color COMPONENT_BORDER_COLOR
      Color of the dark border of the Broldev's GUI components (Dark blue).
    • COMPONENT_BACKGROUND_COLOR

      public static final Color COMPONENT_BACKGROUND_COLOR
      Background Color of the Broldev's GUI components (Egg)
    • COMPONENT_BORDER_HILIGHT_COLOR

      public static final Color COMPONENT_BORDER_HILIGHT_COLOR
      Highlight Color of the Broldev's GUI components (Orange)
  • Method Details

    • getBrolColor

      public static 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. \nIf the index is higher than the count 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