|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infovis.visualization.ColorVisualization infovis.visualization.color.NominalColor
public class NominalColor
Nominal columns color visualization.
Constructor Summary | |
---|---|
NominalColor(Column column)
Creates a new NominalColor object. |
|
NominalColor(Column column,
int numcategories)
Creates a new NominalColor object. |
Method Summary | |
---|---|
Color |
getColor(int row)
Returns a |
int |
getColorIndex(int row)
Returns the color at the specified index. |
int |
getColorValue(int row)
Returns the color value omputed for the specified row. |
void |
stateChanged(ChangeEvent e)
|
Methods inherited from class infovis.visualization.ColorVisualization |
---|
colorComplement, computeColor, getColumn, setColumn |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NominalColor(Column column, int numcategories)
column
- the Column,numcategories
- number of categories.public NominalColor(Column column)
column
- the Column,Method Detail |
---|
public int getColorIndex(int row)
row
- the index
public int getColorValue(int row)
Color are coded as a 32bits integers. If the
color is coded with red, green, blue and alpha
floating point values between 0 and 1, the
returned value is:
((((int)(a * 255)) & 0xFF) << 24) |
((((int)(r * 255)) & 0xFF) << 16) |
((((int)(g * 255)) & 0xFF) << 8) |
((((int)(b * 255)) & 0xFF) << 0);
getColorValue
in class ColorVisualization
public Color getColor(int row)
getColor
in class ColorVisualization
public void stateChanged(ChangeEvent e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |