public class CIMGradientStroke extends CIMStroke
| Constructor and Description |
|---|
CIMGradientStroke() |
| Modifier and Type | Method and Description |
|---|---|
void |
deserialize(JSONObject jsonObject)
Deserializes this object from its JSON representation.
|
static CIMGradientStroke |
fromJSON(java.lang.String json)
Creates the object with a specified state from a JSON encoding.
|
CIMColorRamp |
getColorRamp()
Gets the color scheme that is applied to the stroke.
|
GradientStrokeMethod |
getGradientMethod()
Gets how the gradient is applied along the stroke.
|
double |
getGradientSize()
Gets how much of the feature is covered by the color scheme.
|
SymbolUnits |
getGradientSizeUnits()
Gets whether GradientSize is applied with an absolute distance or a relative percentage.
|
GradientStrokeType |
getGradientType()
Gets whether the gradient is applied with discrete or continuous intervals.
|
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 |
setColorRamp(CIMColorRamp colorRamp)
Sets the color scheme that is applied to the stroke.
|
void |
setGradientMethod(GradientStrokeMethod gradientMethod)
Sets how the gradient is applied along the stroke.
|
void |
setGradientSize(double gradientSize)
Sets how much of the feature is covered by the color scheme.
|
void |
setGradientSizeUnits(SymbolUnits gradientSizeUnits)
Sets whether GradientSize is applied with an absolute distance or a relative percentage.
|
void |
setGradientType(GradientStrokeType gradientType)
Sets whether the gradient is applied with discrete or continuous intervals.
|
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.
|
getAnchor3D, getCapStyle, getCloseCaps3D, getHeight3D, getJoinStyle, getLineStyle3D, getMiterLimit, getWidth, setAnchor3D, setCapStyle, setCloseCaps3D, setHeight3D, setJoinStyle, setLineStyle3D, setMiterLimit, setWidthgetAnimations, getColorLocked, getEffects, getEnable, getName, getOverprint, getPrimitiveName, setAnimations, setColorLocked, setEffects, setEnable, setName, setOverprint, setPrimitiveNamepublic CIMColorRamp getColorRamp()
public void setColorRamp(CIMColorRamp colorRamp)
public GradientStrokeMethod getGradientMethod()
public void setGradientMethod(GradientStrokeMethod 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 CIMGradientStroke fromJSON(java.lang.String json) throws CIMJSONException
CIMJSONExceptionpublic java.lang.String toJSON()
public void deserialize(JSONObject jsonObject) throws CIMJSONException
deserialize in class CIMStrokeCIMJSONExceptionpublic void serialize(JSONObject jsonObject)