|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.core.internal.value.ColorRamp com.esri.core.internal.value.AlgorithmicColorRamp
public class AlgorithmicColorRamp
This class defines an algorithmically generated color ramp to be used by a server when generating a class breaks or unique value renderer. The color ramp is defined by from and to colors and an algorithm that should be used to generate the intermediate colors.
Constructor Summary | |
---|---|
AlgorithmicColorRamp(int from,
int to,
RampDefinition.Algorithm algorithm)
Instantiates a new algorithmic color ramp using the given from and to colors and the given algorithm. |
|
AlgorithmicColorRamp(org.codehaus.jackson.JsonNode node)
Instantiates a new algorithmic color ramp from the given JsonNode. |
|
AlgorithmicColorRamp(RampDefinition rampDefinition)
Instantiates a new algorithmic color ramp from a given RampDefinition . |
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)
This method is used by ColorRamp.toJson() to turn this instance into a
JSON string. |
Methods inherited from class com.esri.core.internal.value.ColorRamp |
---|
toJson |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AlgorithmicColorRamp(int from, int to, RampDefinition.Algorithm algorithm)
from
- the from colorto
- the to coloralgorithm
- the algorithm used to generate intermediate colorsRampDefinition.Algorithm
public AlgorithmicColorRamp(RampDefinition rampDefinition)
RampDefinition
.
rampDefinition
- the ramp definition that will define this color ramppublic AlgorithmicColorRamp(org.codehaus.jackson.JsonNode node)
node
- the node defining an algorithmic color rampMethod 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 IOException, org.codehaus.jackson.JsonGenerationException, Exception
ColorRamp
ColorRamp.toJson()
to turn this instance into a
JSON string.
This method should be overridden in subclasses to add their class data to
the given JSON node. Note that this base class method should be called by
the override.
toJson
in class ColorRamp
node
- the node
IOException
- Signals that an I/O exception has occurred.
org.codehaus.jackson.JsonGenerationException
- the json generation exception
Exception
- the exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |