|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.unihalle.informatik.MiToBo.visualization.drawing.DynamicColorLUT
@ALDMetaInfo(export=ALLOWED) public class DynamicColorLUT
A color lookup table that generates colors dynamically and randomly for indices that do not exist.
Constructor Summary | |
---|---|
DynamicColorLUT()
Constructor with a (seeded) random generator and channel offset = 20. |
|
DynamicColorLUT(Random rand)
Constructor for a specific random generator and channel offset = 20.. |
|
DynamicColorLUT(Random rand,
int channeloffset)
Constructor for a specific random generator and a given channel offset |
Method Summary | |
---|---|
int |
getColor(int key)
Get the color for a given key. |
void |
setColor(int key,
int color)
Set the color for given key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DynamicColorLUT()
public DynamicColorLUT(Random rand)
public DynamicColorLUT(Random rand, int channeloffset)
rand
- random generatorchanneloffset
- the minimum value of R, G and BMethod Detail |
---|
public void setColor(int key, int color)
public int getColor(int key)
key
is not present.
key
- lookup table key (or index)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |