Uses of Class
org.pepstock.charba.client.dom.elements.CanvasPatternItem
-
Packages that use CanvasPatternItem Package Description org.pepstock.charba.client.colors Contains the enumerations of HTML and GWT Material colors, to consume out-of-the-box, and utilities to create and manage own colors and classes to define gradients of patterns for charts.org.pepstock.charba.client.colors.tiles Contains all classes to build tiles to use in the a canvas patterns or a Charba pattern.org.pepstock.charba.client.commons Core classes to manage the inter-operations with java script code.org.pepstock.charba.client.dom.elements Contains a set of DOM elements that Charba is using.org.pepstock.charba.client.items Contains all elements generated by CHART.JS, which are mapping java script objects, to use at runtime in plugins, events or controllers.org.pepstock.charba.client.utils Contains some utilities to use in Charba, like HTML annotation builder, and other java script utilities useful for debugging. -
-
Uses of CanvasPatternItem in org.pepstock.charba.client.colors
Methods in org.pepstock.charba.client.colors that return CanvasPatternItem Modifier and Type Method Description CanvasPatternItem
CanvasObjectFactory. createPattern(IsChart chart, Pattern pattern)
Creates a canvas pattern java script object using a Charba pattern and a chart instance which must provide a canvas instance and its context.CanvasPatternItem
Pattern. getCanvasPattern()
Returns the canvas pattern if exists.Methods in org.pepstock.charba.client.colors with parameters of type CanvasPatternItem Modifier and Type Method Description static PatternBuilder
PatternBuilder. create(CanvasPatternItem canvasPattern)
Creates the object using an already created canvas pattern.
The dimension of canvas pattern image will be the defaultTilesFactoryDefaults.DEFAULT_SIZE
.static PatternBuilder
PatternBuilder. create(CanvasPatternItem canvasPattern, int squareSize)
Creates the object using an already created canvas pattern.
The dimension of canvas pattern image is unique then the image of pattern is a square.static PatternBuilder
PatternBuilder. create(CanvasPatternItem canvasPattern, int width, int height)
Creates the object using an already created canvas pattern.
This is mainly used by tiles.static Pattern
PatternBuilder. retrieve(CanvasPatternItem canvasPattern)
Retrieves a cached pattern by aCanvasPatternItem
instance.
If the pattern doesn't exist, returnsnull
. -
Uses of CanvasPatternItem in org.pepstock.charba.client.colors.tiles
Methods in org.pepstock.charba.client.colors.tiles that return CanvasPatternItem Modifier and Type Method Description CanvasPatternItem
TilesBuilder. asTile()
Returns a canvas pattern, using the shape, background color, shape color and size.static CanvasPatternItem
TilesFactory. createTile()
Returns a canvas pattern, using default values, shape issquare
, background color, shape color and size.static CanvasPatternItem
TilesFactory. createTile(IsShape shape)
Returns a canvas pattern, using the shape as argument and the other default values, background color, shape color and size.static CanvasPatternItem
TilesFactory. createTile(IsShape shape, String backgroundColor)
Returns a canvas pattern, using the shape and back ground color as arguments and the other default values, shape color and size.static CanvasPatternItem
TilesFactory. createTile(IsShape shape, String backgroundColor, String shapeColor)
Returns a canvas pattern, using the shape, back ground color and shape color as arguments and the size as default value.static CanvasPatternItem
TilesFactory. createTile(IsShape shape, String backgroundColor, String shapeColor, int size)
Returns a canvas pattern, using the shape, back ground color, shape color and size as arguments.static CanvasPatternItem
TilesFactory. createTile(IsShape shape, IsColor backgroundColor)
Returns a canvas pattern, using the shape and back ground color as arguments and the other default values, shape color and size.static CanvasPatternItem
TilesFactory. createTile(IsShape shape, IsColor backgroundColor, IsColor shapeColor)
Returns a canvas pattern, using the shape, back ground color and shape color as arguments and the size as default value.static CanvasPatternItem
TilesFactory. createTile(IsShape shape, IsColor backgroundColor, IsColor shapeColor, int size)
Returns a canvas pattern, using the shape, back ground color, shape color and size as arguments. -
Uses of CanvasPatternItem in org.pepstock.charba.client.commons
Methods in org.pepstock.charba.client.commons that return CanvasPatternItem Modifier and Type Method Description CanvasPatternItem
ArrayPattern. get(int index)
Gets the value at a given index.protected CanvasPatternItem
NativeObjectContainer. getValue(Key key, CanvasPatternItem defaultValue)
Returns a value (pattern) in the embedded JavaScript object at specific property.Methods in org.pepstock.charba.client.commons with parameters of type CanvasPatternItem Modifier and Type Method Description static ArrayPattern
ArrayPattern. fromOrEmpty(CanvasPatternItem... items)
This method creates new array instance with a variable number ofCanvasPatternItem
arguments.static ArrayPattern
ArrayPattern. fromOrNull(CanvasPatternItem... items)
This method creates new array instance with a variable number ofCanvasPatternItem
arguments.protected CanvasPatternItem
NativeObjectContainer. getValue(Key key, CanvasPatternItem defaultValue)
Returns a value (pattern) in the embedded JavaScript object at specific property.protected ArrayPattern
NativeObjectContainer. getValueOrArray(Key key, CanvasPatternItem defaultValue)
Returns a value (array) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a pattern.protected void
NativeObjectContainer. setValue(Key key, CanvasPatternItem value)
Sets a value (pattern) in the embedded JavaScript object at specific property.protected void
AbstractNode. setValueAndAddToParent(Key key, CanvasPatternItem value)
Sets a value (pattern) in the embedded JavaScript object at specific property.protected void
PropertyHandler. setValueAndAddToParent(Key key, CanvasPatternItem value)
Sets a value (pattern) in the embedded JavaScript object at specific property.protected void
NativeObjectContainer. setValueOrArray(Key key, CanvasPatternItem... values)
Sets a value (Array or pattern) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a pattern.protected void
AbstractNode. setValueOrArrayAndAddToParent(Key key, CanvasPatternItem... values)
Sets a value (Array or pattern) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a pattern.protected void
PropertyHandler. setValueOrArrayAndAddToParent(Key key, CanvasPatternItem... values)
Sets a value (Array or pattern) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a pattern.Method parameters in org.pepstock.charba.client.commons with type arguments of type CanvasPatternItem Modifier and Type Method Description static ArrayPattern
ArrayPattern. fromOrEmpty(List<CanvasPatternItem> items)
Creates a java script array of patterns starting from list of patterns.static ArrayPattern
ArrayPattern. fromOrNull(List<CanvasPatternItem> items)
Creates a java script array of patterns starting from list of patterns. -
Uses of CanvasPatternItem in org.pepstock.charba.client.dom.elements
Methods in org.pepstock.charba.client.dom.elements that return CanvasPatternItem Modifier and Type Method Description CanvasPatternItem
Context2dItem. createPattern(Canvas canvas, Repetition repetition)
Creates a pattern using the specified canvas and repetition.CanvasPatternItem
Context2dItem. createPattern(Img image, Repetition repetition)
Creates a pattern using the specified image and repetition.CanvasPatternItem
Context2dItem. getFillPattern()
Returns the filling styling is used for pattern style inside shapes.CanvasPatternItem
Context2dItem. getStrokePattern()
Returns the stroke pattern is used for the lines around shapes.static CanvasPatternItem
CastHelper. toPattern(Object object)
Returns aCanvasPatternItem
object casting the argument.Methods in org.pepstock.charba.client.dom.elements with parameters of type CanvasPatternItem Modifier and Type Method Description void
Context2dItem. setFillPattern(CanvasPatternItem pattern)
Sets the filling styling is used for pattern style inside shapes.void
Context2dItem. setStrokePattern(CanvasPatternItem pattern)
Sets the stroke pattern is used for the lines around shapes. -
Uses of CanvasPatternItem in org.pepstock.charba.client.items
Methods in org.pepstock.charba.client.items that return CanvasPatternItem Modifier and Type Method Description CanvasPatternItem
CommonElementOptions. getBackgroundColorAsCanvasPattern()
Returns the background color as canvas pattern.CanvasPatternItem
TooltipLabelColor. getBackgroundColorAsCanvasPattern()
Returns the background color as canvas pattern.CanvasPatternItem
ElementProperties. getCanvasPatternValue(Key key)
Returns a value (CanvasPatternItem
) in the embedded JavaScript object at specific property.CanvasPatternItem
LegendItem. getFillStyleAsCanvasPattern()
Returns the fill style of the legend box as canvas pattern.CanvasPatternItem
LegendItem. getStrokeStyleAsCanvasPattern()
Returns the stroke style of the legend box as canvas pattern.Methods in org.pepstock.charba.client.items with parameters of type CanvasPatternItem Modifier and Type Method Description void
CommonElementOptions. setBackgroundColor(CanvasPatternItem backgroundColor)
Sets the background color as pattern.void
LegendLabelItem. setStrokeStyle(CanvasPatternItem pattern)
Sets the stroke style of the legend box as canvas pattern. -
Uses of CanvasPatternItem in org.pepstock.charba.client.utils
Methods in org.pepstock.charba.client.utils with parameters of type CanvasPatternItem Modifier and Type Method Description static String
Utilities. getImageURLFromCanvasPattern(CanvasPatternItem pattern, int width, int height)
Returns a data URL for the current content of a canvas pattern instance.
-