|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfovis.visualization.ColorVisualization
public abstract class ColorVisualization
Interface for Color Visualizations.
Constructor Summary | |
---|---|
ColorVisualization(Column column)
|
Method Summary | |
---|---|
static Color |
colorComplement(Color c)
|
static int |
computeColor(double r,
double g,
double b,
double a)
Convert r,g,b,a float values into an int. |
Color |
getColor(int row)
Returns a |
abstract int |
getColorValue(int row)
Returns the color value omputed for the specified row. |
Column |
getColumn()
Returns the managed Column. |
void |
setColumn(Column c)
Sets the managed column |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.swing.event.ChangeListener |
---|
stateChanged |
Constructor Detail |
---|
public ColorVisualization(Column column)
Method Detail |
---|
public Column getColumn()
public void setColumn(Column c)
c
- the new column to managepublic abstract 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);
public Color getColor(int row)
public static int computeColor(double r, double g, double b, double a)
r
- DOCUMENT ME!g
- DOCUMENT ME!b
- DOCUMENT ME!a
- DOCUMENT ME!
public static Color colorComplement(Color c)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |