|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfovis.visualization.ColorVisualization
infovis.visualization.color.OrderedColor
public class OrderedColor
Color BasicVisualization for Ordered values.
| Constructor Summary | |
|---|---|
OrderedColor(NumberColumn column)
Creates a new OrderedColor object. |
|
OrderedColor(NumberColumn column,
Color[] ramp)
|
|
OrderedColor(NumberColumn column,
Color start,
Color end)
Constructor for OrderedColor. |
|
| Method Summary | |
|---|---|
Color[] |
getCache()
|
int |
getCacheSize()
|
Color |
getColor(int row)
Returns a |
int |
getColorAtParameter(double t)
|
int |
getColorFor(double value)
|
double |
getColorParameterFor(double value)
|
int |
getColorValue(int row)
Returns the color value omputed for the specified row. |
Column |
getColumn()
Returns the managed Column. |
static Color[] |
getDefaultRamp()
|
Color |
getEnd()
Returns the end Color. |
Color[] |
getRampReference()
|
Color |
getStart()
Returns the start Color. |
void |
setCacheSize(int cacheSize)
|
void |
setColumn(Column c)
Sets the managed column. |
static void |
setDefaultRamp(Color[] ramp)
|
static void |
setDefaults(Color[] ramp)
|
void |
setEnd(Color end)
Sets the end color. |
void |
setRamp(Color[] ramp)
|
void |
setRange(double min,
double max)
|
void |
setStart(Color start)
Sets the start color. |
void |
stateChanged(ChangeEvent e)
|
void |
update()
|
| Methods inherited from class infovis.visualization.ColorVisualization |
|---|
colorComplement, computeColor |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrderedColor(NumberColumn column,
Color[] ramp)
public OrderedColor(NumberColumn column,
Color start,
Color end)
public OrderedColor(NumberColumn column)
column - the managed column.| Method Detail |
|---|
public static void setDefaults(Color[] ramp)
public void setColumn(Column c)
setColumn in class ColorVisualizationc - the column.public void stateChanged(ChangeEvent e)
ChangeListener.stateChanged(ChangeEvent)public Color[] getCache()
public void update()
public Column getColumn()
ColorVisualization
getColumn in class ColorVisualizationColorVisualization.getColumn()public double getColorParameterFor(double value)
public int getColorAtParameter(double t)
public int getColorFor(double value)
public int getColorValue(int row)
ColorVisualizationColor 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 ColorVisualizationColorVisualization.getColor(int)public Color getColor(int row)
ColorVisualization
getColor in class ColorVisualizationpublic Color[] getRampReference()
public void setRamp(Color[] ramp)
public Color getStart()
public void setStart(Color start)
start - the start Color.public Color getEnd()
public void setEnd(Color end)
end - the end Color.public static Color[] getDefaultRamp()
public static void setDefaultRamp(Color[] ramp)
public int getCacheSize()
public void setCacheSize(int cacheSize)
public void setRange(double min,
double max)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||