|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.internal.value.RampDefinition
public class RampDefinition
This class is used to store the properties of an AlgorithmicColorRamp
and serialize/deserialize to/from JSON.
Nested Class Summary | |
---|---|
static class |
RampDefinition.Algorithm
Defines an algorithm used by a map server to generate a color ramp given starting and ending colors. |
Constructor Summary | |
---|---|
RampDefinition(int from,
int to,
RampDefinition.Algorithm algorithm)
Instantiates a new ramp definition with the given from and to colors and the given algorithm. |
Method Summary | |
---|---|
RampDefinition.Algorithm |
getAlgorithm()
Gets the algorithm used to generate intermediate colors between the from color and the to color. |
int |
getFromColor()
Gets the from color. |
int |
getToColor()
Gets the to color. |
void |
setAlgorithm(RampDefinition.Algorithm algorithm)
Sets the algorithm used to generate intermediate colors between the from color and the to color. |
void |
setFromColor(int fromColor)
Sets the from color. |
void |
setToColor(int toColor)
Sets the to color. |
protected void |
toJson(org.codehaus.jackson.JsonGenerator node)
Write this class to the given JsonNode. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RampDefinition(int from, int to, RampDefinition.Algorithm algorithm)
from
- the fromto
- the toalgorithm
- the algorithmRampDefinition.Algorithm
Method Detail |
---|
public int getFromColor()
public void setFromColor(int fromColor)
fromColor
- the new from colorpublic int getToColor()
public void setToColor(int toColor)
toColor
- the new to colorpublic RampDefinition.Algorithm getAlgorithm()
public void setAlgorithm(RampDefinition.Algorithm algorithm)
algorithm
- the new algorithmRampDefinition.Algorithm
protected void toJson(org.codehaus.jackson.JsonGenerator node) throws Exception
node
- the node to write this instance's value to
Exception
- the exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |