public class CIMGradientFill extends CIMFill
| Constructor and Description |
|---|
CIMGradientFill() |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(JSONObject jsonObject)
Deserializes this object from its JSON representation.
|
static CIMGradientFill |
fromJSON(java.lang.String json)
Creates the object with a specified state from a JSON encoding.
|
double |
getAngle()
Gets the angle of the gradient when the GradientMethod is set to Linear or Rectangular.
|
CIMColorRamp |
getColorRamp()
Gets the color scheme that is applied to the fill.
|
GradientFillMethod |
getGradientMethod()
Gets a value which specifies how the gradient is applied within the fill.
|
double |
getGradientSize()
Gets a value which determines how much of the feature is covered by the color scheme.
|
SymbolUnits |
getGradientSizeUnits()
Gets a value which specifies whether GradientSize is applied with an absolute distance or a relative percentage.
|
GradientStrokeType |
getGradientType()
Gets a value which specifies if the gradient is applied with discrete intervals or if it is continuous.
|
int |
getInterval()
Gets how many bands draw when the GradientType is set to Discrete.
|
void |
serialize(JSONObject jsonObject)
Serializes this object to its JSON representation.
|
void |
setAngle(double angle)
Sets the angle of the gradient when the GradientMethod is set to Linear or Rectangular.
|
void |
setColorRamp(CIMColorRamp colorRamp)
Sets the color scheme that is applied to the fill.
|
void |
setGradientMethod(GradientFillMethod gradientMethod)
Sets a value which specifies how the gradient is applied within the fill.
|
void |
setGradientSize(double gradientSize)
Sets a value which determines how much of the feature is covered by the color scheme.
|
void |
setGradientSizeUnits(SymbolUnits gradientSizeUnits)
Sets a value which specifies whether GradientSize is applied with an absolute distance or a relative percentage.
|
void |
setGradientType(GradientStrokeType gradientType)
Sets a value which specifies if the gradient is applied with discrete intervals or if it is continuous.
|
void |
setInterval(int interval)
Sets how many bands draw when the GradientType is set to Discrete.
|
java.lang.String |
toJSON()
Creates a JSON encoding of the object and its current state.
|
getAnimations, getColorLocked, getEffects, getEnable, getName, getOverprint, getPrimitiveName, setAnimations, setColorLocked, setEffects, setEnable, setName, setOverprint, setPrimitiveNamepublic double getAngle()
public void setAngle(double angle)
public CIMColorRamp getColorRamp()
public void setColorRamp(CIMColorRamp colorRamp)
public GradientFillMethod getGradientMethod()
public void setGradientMethod(GradientFillMethod gradientMethod)
public double getGradientSize()
public void setGradientSize(double gradientSize)
public SymbolUnits getGradientSizeUnits()
public void setGradientSizeUnits(SymbolUnits gradientSizeUnits)
public GradientStrokeType getGradientType()
public void setGradientType(GradientStrokeType gradientType)
public int getInterval()
public void setInterval(int interval)
public static CIMGradientFill fromJSON(java.lang.String json) throws CIMJSONException
CIMJSONExceptionpublic java.lang.String toJSON()
public void deserialize(JSONObject jsonObject) throws CIMJSONException
deserialize in class CIMFillCIMJSONExceptionpublic void serialize(JSONObject jsonObject)