public final class Pattern extends CanvasObject
| Modifier and Type | Class and Description |
|---|---|
static class |
Pattern.PatternFactory
Inner class to create pattern by a native object.
|
| Constructor and Description |
|---|
Pattern(Image image)
Creates the object using an image to use in the pattern.
The repetition used is repeat. |
Pattern(Image image,
Context2d.Repetition repetition)
Creates the object using an image to use in the pattern and repetition to apply to pattern.
|
Pattern(ImageElement image)
Creates the object using an image to use in the pattern.
The repetition used is repeat. |
Pattern(ImageElement image,
Context2d.Repetition repetition)
Creates the object using an image to use in the pattern and repetition to apply to pattern.
|
Pattern(ImageResource image)
Creates the object using an image to use in the pattern.
The repetition used is repeat. |
Pattern(ImageResource image,
Context2d.Repetition repetition)
Creates the object using an image to use in the pattern and repetition to apply to pattern.
|
| Modifier and Type | Method and Description |
|---|---|
ImageElement |
getImage()
Returns the image to use into pattern
|
Context2d.Repetition |
getRepetition()
Returns the repetition to use into pattern.
|
getIdgetArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, typepublic Pattern(ImageResource image)
image - image to use as patternpublic Pattern(Image image)
image - image to use as patternpublic Pattern(ImageElement image)
image - image to use as patternpublic Pattern(ImageResource image, Context2d.Repetition repetition)
image - image to use as patternrepetition - repetition value to apply to patternpublic Pattern(Image image, Context2d.Repetition repetition)
image - image to use as patternrepetition - repetition value to apply to patternpublic Pattern(ImageElement image, Context2d.Repetition repetition)
image - image to use as patternrepetition - repetition value to apply to patternpublic ImageElement getImage()
public Context2d.Repetition getRepetition()