public class AlgorithmicColorRamp
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
AlgorithmicColorRamp.Algorithm |
Modifier and Type | Method and Description |
---|---|
static AlgorithmicColorRamp |
create()
Creates a new AlgorithmicColorRamp object.
|
AlgorithmicColorRamp.Algorithm |
getAlgorithm()
The algorithim used to generate the colors between the fromColor and toColor.
|
Color |
getFromColor()
The first color in the color ramp.
|
Color |
getToColor()
The last color in the color ramp.
|
void |
setAlgorithm(AlgorithmicColorRamp.Algorithm algorithm)
Set the algorithm parameter.
|
void |
setFromColor(Color fromColor)
Set the fromColor parameter.
|
void |
setToColor(Color toColor)
Set the toColor parameter.
|
com.google.gwt.core.client.JavaScriptObject |
toJson()
Returns an easily serializable object representation of an algorithmic color ramp.
|
public static AlgorithmicColorRamp create()
public final AlgorithmicColorRamp.Algorithm getAlgorithm()
public final void setAlgorithm(AlgorithmicColorRamp.Algorithm algorithm)
algorithm
- - The algorithim used to generate the colors between the fromColor and toColor. Each
algorithim uses different methods for generating the intervening colors.public final Color getFromColor()
public final void setFromColor(Color fromColor)
fromColor
- - The first color in the color ramp.public final Color getToColor()
public final void setToColor(Color toColor)
toColor
- - The last color in the color ramp.public final com.google.gwt.core.client.JavaScriptObject toJson()