Class ContrastedColor

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

public class ContrastedColor extends Object
A ContrastedColor maintains in a unique object a background Color and the associated foreground Color, to avoid unreadable associations. 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
  • Constructor Details

    • ContrastedColor

      public ContrastedColor(Color foreColor, Color backColor)
      Builds a ContrastedColor with a background Color and the associated foreground Color
      Parameters:
      foreColor -
      backColor -
  • Method Details

    • getForeColor

      public Color getForeColor()
      Returns:
      the color to use for the text
    • getBackColor

      public Color getBackColor()
      Returns:
      the color to use for the background