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