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 CanvasGradientItemCanvasObjectFactory. 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 GradientGradientBuilder. retrieve(CanvasGradientItem canvasGradient)Retrieves a cached pattern by aCanvasGradientIteminstance.
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 CanvasGradientItemArrayGradient. get(int index)Gets the value at a given index.protected CanvasGradientItemNativeObjectContainer. 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 ArrayGradientArrayGradient. fromOrEmpty(CanvasGradientItem... items)This method creates new array instance with a variable number ofCanvasGradientItemarguments.static ArrayGradientArrayGradient. fromOrNull(CanvasGradientItem... items)This method creates new array instance with a variable number ofCanvasGradientItemarguments.protected CanvasGradientItemNativeObjectContainer. getValue(Key key, CanvasGradientItem defaultValue)Returns a value (gradient) in the embedded JavaScript object at specific property.protected ArrayGradientNativeObjectContainer. 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 voidNativeObjectContainer. setValue(Key key, CanvasGradientItem value)Sets a value (gradient) in the embedded JavaScript object at specific property.protected voidAbstractNode. setValueAndAddToParent(Key key, CanvasGradientItem value)Sets a value (gradient) in the embedded JavaScript object at specific property.protected voidPropertyHandler. setValueAndAddToParent(Key key, CanvasGradientItem value)Sets a value (gradient) in the embedded JavaScript object at specific property.protected voidNativeObjectContainer. 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 voidAbstractNode. 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 voidPropertyHandler. 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 ArrayGradientArrayGradient. fromOrEmpty(List<CanvasGradientItem> items)Creates a java script array of gradients starting from list of gradients.static ArrayGradientArrayGradient. 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 CanvasGradientItemContext2dItem. createLinearGradient(double x0, double y0, double x1, double y1)Creates a gradient along the line connecting two given coordinates.CanvasGradientItemContext2dItem. 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.CanvasGradientItemContext2dItem. getFillGradient()Returns the filling styling is used for gradient style inside shapes.CanvasGradientItemContext2dItem. getStrokeGradient()Returns the stroke gradient is used for the lines around shapes.static CanvasGradientItemCastHelper. toGradient(Object object)Returns aCanvasGradientItemobject casting the argument.Methods in org.pepstock.charba.client.dom.elements with parameters of type CanvasGradientItem Modifier and Type Method Description voidContext2dItem. setFillGradient(CanvasGradientItem gradient)Sets the filling styling is used for gradient style inside shapes.voidContext2dItem. 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 CanvasGradientItemDatasetElementOptions. getBackgroundColorAsCanvasGradient()Returns the background color as canvas gradient.CanvasGradientItemTooltipLabelColor. getBackgroundColorAsCanvasGradient()Returns the background color as canvas gradient.CanvasGradientItemDatasetElementOptions. getBorderColorAsCanvasGradient()Returns the border color as canvas gradient.CanvasGradientItemTooltipLabelColor. getBorderColorAsCanvasGradient()Returns the border color as canvas gradient.CanvasGradientItemLegendItem. getFillStyleAsCanvasGradient()Returns the fill style of the legend box as canvas gradient.CanvasGradientItemLegendItem. 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 voidTooltipLabelColor. setBorderColor(CanvasGradientItem gradient)Sets the border color of the tooltip item as canvas gradient.voidLegendLabelItem. setStrokeStyle(CanvasGradientItem gradient)Sets the stroke style of the legend box as canvas gradient.
-