|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.nite.gui.util.ColourFactory
public class ColourFactory
A colour factory is a singleton object that can create text colours and background colours for a certain hue. The text colours will be legible on a white background. The background colours will have a good contrast with black text.
Method Summary | |
---|---|
java.awt.Color |
getBackgroundColor(double hue)
Returns a background colour with the specified hue. |
static ColourFactory |
getInstance()
Returns the singleton colour factory. |
java.awt.Color |
getTextColour(double hue)
Returns a text colour with the specified hue. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ColourFactory getInstance()
Returns the singleton colour factory.
public java.awt.Color getTextColour(double hue)
Returns a text colour with the specified hue.
hue
- the hue (between 0.0 and 1.0)
public java.awt.Color getBackgroundColor(double hue)
Returns a background colour with the specified hue.
hue
- the hue (between 0.0 and 1.0)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |