|
||||||||||
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
public abstract class ColorRamp
This class defines a color ramp that should be used by a server when
generating a renderer from either UniqueValueDefinition
or
ClassBreaksDefinition
.
Constructor Summary | |
---|---|
|
ColorRamp(org.codehaus.jackson.JsonNode node)
Instantiates a new color ramp from the given JsonNode. |
protected |
ColorRamp(String type)
Instantiates a new color ramp. |
Method Summary | |
---|---|
String |
toJson()
Convert this instance to a JSON string to allow it to be passed to a dynamic map service REST endpoint. |
protected void |
toJson(org.codehaus.jackson.JsonGenerator node)
This method is used by toJson() to turn this instance into a
JSON string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColorRamp(org.codehaus.jackson.JsonNode node)
node
- the node defining a color rampprotected ColorRamp(String type)
type
- the typeMethod Detail |
---|
public String toJson() throws Exception
Exception
- the exceptionprotected void toJson(org.codehaus.jackson.JsonGenerator node) throws IOException, org.codehaus.jackson.JsonGenerationException, Exception
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.
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 |