Package be.gaudry.model.drawing.color
Class ContrastedColor
java.lang.Object
be.gaudry.model.drawing.color.ContrastedColor
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 Summary
ConstructorsConstructorDescriptionContrastedColor(Color foreColor, Color backColor)
Builds aContrastedColor
with a background Color and the associated foreground Color -
Method Summary
-
Constructor Details
-
ContrastedColor
Builds aContrastedColor
with a background Color and the associated foreground Color- Parameters:
foreColor
-backColor
-
-
-
Method Details
-
getForeColor
- Returns:
- the color to use for the text
-
getBackColor
- Returns:
- the color to use for the background
-