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 booleanequals(Object obj)CanvasPatternItemgetCanvasPattern()Returns the canvas pattern if exists.intgetHeight()Returns the image height used in the pattern.ImggetImage()Returns the image used in the pattern if exists.RepetitiongetRepetition()Returns the repetition to use in the pattern.intgetWidth()Returns the image width used in the pattern.inthashCode()-
Methods inherited from class org.pepstock.charba.client.colors.CanvasObject
getId
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
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, 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:
hashCodein classCanvasObject
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classCanvasObject
-
-