|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.askalon.graph.chart.SurfaceColorCalculator
public class SurfaceColorCalculator
This class calculates the color of a surface of the SurfaceChart, based on it's current height. It's intended for internal use only.
Constructor Summary | |
---|---|
SurfaceColorCalculator()
|
Method Summary | |
---|---|
Color |
getColorForHeight(double height)
Gets the color for a given height, based on the current minimum and maximum value. |
static Color |
getColorForPercent(double percent)
Gets the color for a given (normalized) value between 0.0 and 1.0. |
void |
setMaxValue(double value)
Sets the maximum value, which is the current highest value. |
void |
setMinValue(double value)
Sets the minimum value, which is the current lowest height. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SurfaceColorCalculator()
Method Detail |
---|
public void setMinValue(double value)
value
- the new minimum valuepublic void setMaxValue(double value)
value
- the new maximum valuepublic Color getColorForHeight(double height)
height
- the height for which the color should be calculated
Color
public static Color getColorForPercent(double percent)
percent
- value between 0.0 and 1.0
Color
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Part of: |
ASKALON Visualisation Diagrams |