public class CIMMultipartColorRamp extends CIMColorRamp
| Constructor and Description |
|---|
CIMMultipartColorRamp() |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(JSONObject jsonObject)
Deserializes this object from its JSON representation.
|
static CIMMultipartColorRamp |
fromJSON(java.lang.String json)
Creates the object with a specified state from a JSON encoding.
|
CIMColorRamp[] |
getColorRamps()
Gets the ordered list of color ramps (also known as schemes) that are combined to build the multipart ramp.
|
double[] |
getWeights()
Gets the proportional weight for each color ramp (also known as a color scheme) that make up the multipart ramp.
|
void |
serialize(JSONObject jsonObject)
Serializes this object to its JSON representation.
|
void |
setColorRamps(CIMColorRamp[] colorRamps)
Sets the ordered list of color ramps (also known as schemes) that are combined to build the multipart ramp.
|
void |
setWeights(double[] weights)
Sets the proportional weight for each color ramp (also known as a color scheme) that make up the multipart ramp.
|
java.lang.String |
toJSON()
Creates a JSON encoding of the object and its current state.
|
getColorSpace, setColorSpaceArrayFromJSON, JSONFromArraypublic CIMColorRamp[] getColorRamps()
public void setColorRamps(CIMColorRamp[] colorRamps)
public double[] getWeights()
public void setWeights(double[] weights)
public static CIMMultipartColorRamp fromJSON(java.lang.String json) throws CIMJSONException
CIMJSONExceptionpublic java.lang.String toJSON()
public void deserialize(JSONObject jsonObject) throws CIMJSONException
deserialize in class CIMColorRampCIMJSONExceptionpublic void serialize(JSONObject jsonObject)
serialize in class CIMColorRamp