public final class Gradient extends CanvasObject
Linear
or Radial
.CANVAS
or CHART
area.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<GradientColor> |
getColors()
Returns the unmodifiable list of stopping colors.
|
IsColor |
getInterpolatedColorByOffset(double offset)
Returns a color using the gradient as source of colors.
|
GradientOrientation |
getOrientation()
Returns the gradient orientation.
|
GradientScope |
getScope()
Returns the gradient scope.
|
GradientType |
getType()
Returns the gradient type.
|
int |
hashCode() |
getId
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public GradientType getType()
public GradientOrientation getOrientation()
public GradientScope getScope()
public List<GradientColor> getColors()
public int hashCode()
hashCode
in class CanvasObject
public boolean equals(Object obj)
equals
in class CanvasObject
public IsColor getInterpolatedColorByOffset(double offset)
offset
- offset to search in the the gradient colors