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.
|
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
static Gradient |
GradientBuilder.retrieve(CanvasGradientItem canvasGradient)
Retrieves a cached pattern by a
CanvasGradientItem instance.If the pattern doesn't exist, returns null . |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
static ArrayGradient |
ArrayGradient.fromOrEmpty(CanvasGradientItem... items)
This method creates new array instance with a variable number of
CanvasGradientItem arguments. |
static ArrayGradient |
ArrayGradient.fromOrNull(CanvasGradientItem... items)
This method creates new array instance with a variable number of
CanvasGradientItem 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 |
PropertyHandler.setValueAndAddToParent(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 |
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 |
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. |
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. |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and 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 a
CanvasGradientItem object casting the argument. |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
CanvasGradientItem |
TooltipLabelColor.getBackgroundColorAsCanvasGradient()
Returns the background color as canvas gradient.
|
CanvasGradientItem |
DatasetElementOptions.getBackgroundColorAsCanvasGradient()
Returns the background color as canvas gradient.
|
CanvasGradientItem |
TooltipLabelColor.getBorderColorAsCanvasGradient()
Returns the border color as canvas gradient.
|
CanvasGradientItem |
DatasetElementOptions.getBorderColorAsCanvasGradient()
Returns the border color as canvas gradient.
|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|