Uses of Class
org.pepstock.charba.client.dom.elements.CanvasGradientItem
-
Packages that use CanvasGradientItem 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.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. -
-
Uses of CanvasGradientItem in org.pepstock.charba.client.colors
Methods in org.pepstock.charba.client.colors that return CanvasGradientItem Modifier and Type Method Description CanvasGradientItem
CanvasObjectFactory. createGradient(IsChart chart, Gradient gradient, int datasetIndex, int index)
Creates a canvas gradient java script object using a Charba gradient and a chart instance which must provide a canvas instance and its context.Methods in org.pepstock.charba.client.colors with parameters of type CanvasGradientItem Modifier and Type Method Description static Gradient
GradientBuilder. retrieve(CanvasGradientItem canvasGradient)
Retrieves a cached pattern by aCanvasGradientItem
instance.
If the pattern doesn't exist, returnsnull
. -
Uses of CanvasGradientItem in org.pepstock.charba.client.commons
Methods in org.pepstock.charba.client.commons that return CanvasGradientItem Modifier and Type Method Description CanvasGradientItem
ArrayGradient. get(int index)
Gets the value at a given index.protected CanvasGradientItem
NativeObjectContainer. getValue(Key key, CanvasGradientItem defaultValue)
Returns a value (gradient) in the embedded JavaScript object at specific property.Methods in org.pepstock.charba.client.commons with parameters of type CanvasGradientItem Modifier and Type Method Description static ArrayGradient
ArrayGradient. fromOrEmpty(CanvasGradientItem... items)
This method creates new array instance with a variable number ofCanvasGradientItem
arguments.static ArrayGradient
ArrayGradient. fromOrNull(CanvasGradientItem... items)
This method creates new array instance with a variable number ofCanvasGradientItem
arguments.protected CanvasGradientItem
NativeObjectContainer. getValue(Key key, CanvasGradientItem defaultValue)
Returns a value (gradient) in the embedded JavaScript object at specific property.protected ArrayGradient
NativeObjectContainer. getValueOrArray(Key key, CanvasGradientItem 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 gradient.protected void
NativeObjectContainer. setValue(Key key, CanvasGradientItem value)
Sets a value (gradient) in the embedded JavaScript object at specific property.protected void
AbstractNode. setValueAndAddToParent(Key key, CanvasGradientItem value)
Sets a value (gradient) in the embedded JavaScript object at specific property.protected void
PropertyHandler. setValueAndAddToParent(Key key, CanvasGradientItem value)
Sets a value (gradient) in the embedded JavaScript object at specific property.protected void
NativeObjectContainer. setValueOrArray(Key key, CanvasGradientItem... values)
Sets a value (Array or gradient) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a gradient.protected void
AbstractNode. setValueOrArrayAndAddToParent(Key key, CanvasGradientItem... values)
Sets a value (Array or gradient) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a gradient.protected void
PropertyHandler. setValueOrArrayAndAddToParent(Key key, CanvasGradientItem... values)
Sets a value (Array or gradient) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a gradient.Method parameters in org.pepstock.charba.client.commons with type arguments of type CanvasGradientItem Modifier and Type Method Description static ArrayGradient
ArrayGradient. fromOrEmpty(List<CanvasGradientItem> items)
Creates a java script array of gradients starting from list of gradients.static ArrayGradient
ArrayGradient. fromOrNull(List<CanvasGradientItem> items)
Creates a java script array of gradients starting from list of gradients. -
Uses of CanvasGradientItem in org.pepstock.charba.client.dom.elements
Methods in org.pepstock.charba.client.dom.elements that return CanvasGradientItem Modifier and Type Method Description CanvasGradientItem
Context2dItem. createLinearGradient(double x0, double y0, double x1, double y1)
Creates a gradient along the line connecting two given coordinates.CanvasGradientItem
Context2dItem. createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1)
Creates a radial gradient using the size and coordinates of two circles.CanvasGradientItem
Context2dItem. getFillGradient()
Returns the filling styling is used for gradient style inside shapes.CanvasGradientItem
Context2dItem. getStrokeGradient()
Returns the stroke gradient is used for the lines around shapes.static CanvasGradientItem
CastHelper. toGradient(Object object)
Returns aCanvasGradientItem
object casting the argument.Methods in org.pepstock.charba.client.dom.elements with parameters of type CanvasGradientItem Modifier and Type Method Description void
Context2dItem. setFillGradient(CanvasGradientItem gradient)
Sets the filling styling is used for gradient style inside shapes.void
Context2dItem. setStrokeGradient(CanvasGradientItem gradient)
Sets the stroke gradient is used for the lines around shapes. -
Uses of CanvasGradientItem in org.pepstock.charba.client.items
Methods in org.pepstock.charba.client.items that return CanvasGradientItem Modifier and Type Method Description CanvasGradientItem
CommonElementOptions. getBackgroundColorAsCanvasGradient()
Returns the background color as canvas gradient.CanvasGradientItem
TooltipLabelColor. getBackgroundColorAsCanvasGradient()
Returns the background color as canvas gradient.CanvasGradientItem
CommonElementOptions. getBorderColorAsCanvasGradient()
Returns the border color as canvas gradient.CanvasGradientItem
TooltipLabelColor. getBorderColorAsCanvasGradient()
Returns the border color as canvas gradient.CanvasGradientItem
ElementProperties. getCanvasGradientValue(Key key)
Returns a value ((CanvasGradientItem
)) in the embedded JavaScript object at specific property.CanvasGradientItem
LegendItem. getFillStyleAsCanvasGradient()
Returns the fill style of the legend box as canvas gradient.CanvasGradientItem
LegendItem. getStrokeStyleAsCanvasGradient()
Returns the stroke style of the legend box as canvas gradient.Methods in org.pepstock.charba.client.items with parameters of type CanvasGradientItem Modifier and Type Method Description void
CommonElementOptions. setBackgroundColor(CanvasGradientItem backgroundColor)
Sets the background color as gradient.void
CommonElementOptions. setBorderColor(CanvasGradientItem borderColor)
Sets the border color as gradient.void
TooltipLabelColor. setBorderColor(CanvasGradientItem gradient)
Sets the border color of the tooltip item as canvas gradient.void
LegendLabelItem. setStrokeStyle(CanvasGradientItem gradient)
Sets the stroke style of the legend box as canvas gradient.
-