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