Class Pattern
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.colors.CanvasObject
-
- org.pepstock.charba.client.colors.Pattern
-
public final class Pattern extends CanvasObject
Entity to apply a canvas pattern in the a data set as background.
See here some interesting pattern images.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
CanvasPatternItem
getCanvasPattern()
Returns the canvas pattern if exists.int
getHeight()
Returns the image height used in the pattern.Img
getImage()
Returns the image used in the pattern if exists.Repetition
getRepetition()
Returns the repetition to use in the pattern.int
getWidth()
Returns the image width used in the pattern.int
hashCode()
-
Methods inherited from class org.pepstock.charba.client.colors.CanvasObject
getId
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkAndGetColor, checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
-
-
-
Method Detail
-
getImage
public Img getImage()
Returns the image used in the pattern if exists.- Returns:
- the image used in the pattern if exists, otherwise
null
.
-
getWidth
public int getWidth()
Returns the image width used in the pattern.- Returns:
- the image width used in the pattern.
-
getHeight
public int getHeight()
Returns the image height used in the pattern.- Returns:
- the image height used in the pattern.
-
getRepetition
public Repetition getRepetition()
Returns the repetition to use in the pattern.- Returns:
- the repetition to use in the pattern
-
getCanvasPattern
public CanvasPatternItem getCanvasPattern()
Returns the canvas pattern if exists.- Returns:
- the canvas pattern if exists, otherwise
null
.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classCanvasObject
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classCanvasObject
-
-