Package | Description |
---|---|
org.pepstock.charba.client.commons |
Core classes to manage the inter-operations with java script code.
|
Modifier and Type | Method and Description |
---|---|
static ArrayGradient |
ArrayGradient.fromOrEmpty(CanvasGradientItem... items)
This method creates new array instance with a variable number of
CanvasGradientItem arguments. |
static ArrayGradient |
ArrayGradient.fromOrEmpty(List<CanvasGradientItem> items)
Creates a java script array of gradients starting from list of gradients.
|
static ArrayGradient |
ArrayGradient.fromOrNull(CanvasGradientItem... items)
This method creates new array instance with a variable number of
CanvasGradientItem arguments. |
static ArrayGradient |
ArrayGradient.fromOrNull(List<CanvasGradientItem> items)
Creates a java script array of gradients starting from list of gradients.
|
protected ArrayGradient |
NativeObjectContainer.getValueOrArray(Key key,
CanvasGradientItem defaultValue)
Returns a value (array) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a gradient. |