org.paneris.melati.site
Class ColourChooser
java.lang.Object
org.paneris.melati.site.ColourChooser
public class ColourChooser
- extends Object
A little something to generate alternating colours.
Test with something like http://localhost:8080/Display/melatitest/Contrast
- Since:
- 3 Mar 2009
- Author:
- timp
|
Constructor Summary |
ColourChooser(org.melati.Melati melati)
Constructor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColourChooser
public ColourChooser(org.melati.Melati melati)
- Constructor.
- Parameters:
melati - required by getContextUtil
contrastingColour
public static String contrastingColour(String rgb)
- Return a contrasting colour given a colour.
- Parameters:
rgb - the colour to contrast with
- Returns:
- the colour string
Copyright © 1997-2012 PanEris. All Rights Reserved.