|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgcspy.utils.ColorDB
public class ColorDB
Maps colors to/from names
Method Summary | |
---|---|
void |
dump()
Print out all the indices, names and values for all colours in the database |
java.awt.Color |
getColor(int index)
Return the colour corresponding to an index |
java.awt.Color |
getColor(java.lang.String name)
Return the colour corresponding to a name |
static ColorDB |
getColorDB()
Get the colours database |
int |
getIndex(java.awt.Color c)
Return the index corresponding to a colour |
int |
getLength()
Get the number of colours in the database |
java.lang.String |
getName(java.awt.Color c)
Return the name corresponding to a colour |
java.lang.String |
getName(int index)
Return the name corresponding to a colour index |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.awt.Color getColor(int index)
index
- The index
public java.awt.Color getColor(java.lang.String name)
name
- The name
public java.lang.String getName(int index)
index
- The index
public java.lang.String getName(java.awt.Color c)
c
- The colour
public int getIndex(java.awt.Color c)
c
- The colour
public int getLength()
public void dump()
public static ColorDB getColorDB()
public static void main(java.lang.String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |