Modifier and Type | Method and Description |
---|---|
static ArrayPattern |
from(CanvasPattern... items)
This method creates new array instance with a variable number of
CanvasPattern arguments. |
static ArrayPattern |
from(List<CanvasPattern> items)
Creates a java script array of images starting from list of images.
|
static ArrayPattern |
fromOrNull(CanvasPattern... items)
This method creates new array instance with a variable number of
CanvasPattern arguments. |
static ArrayPattern |
fromOrNull(List<CanvasPattern> items)
Creates a java script array of images starting from list of images.
|
CanvasPattern |
get(int index)
Gets the value at a given index.
|
@JsOverlay public static ArrayPattern fromOrNull(CanvasPattern... items)
CanvasPattern
arguments.items
- canvasPattern items to create new arraynull
if argument is null
or length to 0@JsOverlay public static ArrayPattern from(CanvasPattern... items)
CanvasPattern
arguments.items
- canvasPattern items to create new arraynull
or length to 0@JsOverlay public static ArrayPattern fromOrNull(List<CanvasPattern> items)
items
- list of images to load into new java script array.null
if argument is null
or empty@JsOverlay public static ArrayPattern from(List<CanvasPattern> items)
items
- list of images to load into new java script array.null
or empty@JsOverlay public CanvasPattern get(int index)
index
- the index to be retrieved