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.data |
Contains all elements to configure the datasets of a chart instance (know as chart data at instance level).
|
org.pepstock.charba.client.impl.plugins |
Contains some plugins implementations, available out-of-the box.
|
org.pepstock.charba.client.impl.plugins.enums |
Contains the enumeration items to configure out of the box CHARBA plugins.
|
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.
|
Modifier and Type | Method and Description |
---|---|
Gradient |
Gradient.GradientFactory.create(NativeObject nativeObject) |
Gradient |
UiGradient.createGradient()
Creates a LINEAR gradient, with
topDown orientation and chart scope. |
Gradient |
UiGradient.createGradient(GradientType type)
Creates a gradient by a type, with
chart scope. |
Gradient |
UiGradient.createGradient(GradientType type,
GradientOrientation orientation)
Creates a gradient by a type and an orientation, with
chart scope. |
Gradient |
UiGradient.createGradient(GradientType type,
GradientOrientation orientation,
GradientScope scope)
Creates a gradient by a type, an orientation and a scope.
|
Gradient |
UiGradient.createGradient(GradientType type,
GradientScope scope)
Creates a gradient by a type and a scope.
|
Modifier and Type | Method and Description |
---|---|
CanvasGradient |
CanvasObjectFactory.createGradient(IsChart chart,
Gradient gradient,
int datasetIndex,
int index)
Creates a GWT canvas gradient java script object using a Charba gradient and a chart instance which must provide a canvas
instance and its context.
|
protected abstract Area |
CanvasObjectFactory.getArea(IsChart chart,
Gradient gradient)
Returns an area object used to define the area of LINEAR gradient.
|
protected abstract Center |
CanvasObjectFactory.getCenter(IsChart chart,
Gradient gradient,
int datasetIndex,
int index)
Returns the coordinates of a center of arc for RADIAL gradient.
|
protected abstract Radius |
CanvasObjectFactory.getRadius(IsChart chart,
Gradient gradient,
int datasetIndex,
int index)
Returns the inner and outer radius of arc for RADIAL gradient.
|
Modifier and Type | Method and Description |
---|---|
Gradient |
LiningDataset.getBackgroundColorAsGradient()
Returns the fill gradient under the line.
If property is missing or not a gradient, returns null . |
Gradient |
LiningDataset.getBorderColorAsGradient()
Returns the gradient of the line.
If property is missing or not a gradient, returns null . |
Gradient |
Data.retrieveFillStyleAsGradient(LegendItem legendItem)
Returns a gradient object set as background color for a dataset related to legend item.
|
Gradient |
Data.retrieveStrokeStyleAsGradient(LegendItem legendItem)
Returns a gradient object set as border color for a dataset related to legend item.
|
Modifier and Type | Method and Description |
---|---|
List<Gradient> |
HovingFlexDataset.getBackgroundColorAsGradient()
Returns the fill gradient of elements.
|
List<Gradient> |
HovingFlexDataset.getBorderColorAsGradient()
Returns the gradient of the bar border.
|
List<Gradient> |
HovingFlexDataset.getHoverBackgroundColorAsGradient()
Returns the fill gradients of elements when hovered.
|
List<Gradient> |
HovingDataset.getHoverBackgroundColorAsGradient()
Returns the fill gradients of the arcs in the dataset when hovered.
|
List<Gradient> |
HovingFlexDataset.getHoverBorderColorAsGradient()
Returns the stroke gradients of the elements when hovered.
|
List<Gradient> |
HovingDataset.getHoverBorderColorAsGradient()
Returns the stroke gradients of the arcs in the dataset when hovered.
|
List<Gradient> |
LiningDataset.getPointBackgroundColorAsGradient()
Returns the fill color for points.
|
List<Gradient> |
LiningDataset.getPointBorderColorAsGradient()
Returns the border gradient for points.
|
List<Gradient> |
LiningDataset.getPointHoverBackgroundColorAsGradient()
Returns the point background color when hovered.
|
List<Gradient> |
LiningDataset.getPointHoverBorderColorAsGradient()
Returns the point border gradient when hovered.
|
Modifier and Type | Method and Description |
---|---|
protected Area |
DatasetCanvasObjectFactory.getArea(IsChart chart,
Gradient gradient) |
protected Center |
DatasetCanvasObjectFactory.getCenter(IsChart chart,
Gradient gradient,
int datasetIndex,
int index) |
protected Radius |
DatasetCanvasObjectFactory.getRadius(IsChart chart,
Gradient gradient,
int datasetIndex,
int index) |
void |
HovingFlexDataset.setBackgroundColor(Gradient... backgroundColor)
Sets the fill gradient of the elements.
|
void |
LiningDataset.setBackgroundColor(Gradient backgroundColor)
Sets the fill gradient under the line.
|
void |
HovingFlexDataset.setBorderColor(Gradient... borderColor)
Sets the gradient of the bar border as gradient.
|
void |
LiningDataset.setBorderColor(Gradient borderColor)
Sets the gradient of the line.
|
void |
HovingFlexDataset.setHoverBackgroundColor(Gradient... colors)
Sets the fill gradient of the elements when hovered.
|
void |
HovingDataset.setHoverBackgroundColor(Gradient... colors)
Sets the fill gradient of the arcs in the dataset when hovered.
|
void |
HovingFlexDataset.setHoverBorderColor(Gradient... colors)
Sets the stroke gradient of elements when hovered as gradient.
|
void |
HovingDataset.setHoverBorderColor(Gradient... colors)
Sets the stroke gradient of the arcs in the dataset when hovered as gradient.
|
void |
LiningDataset.setPointBackgroundColor(Gradient... pointBackgroundColor)
Sets the gradients for points.
|
void |
LiningDataset.setPointBorderColor(Gradient... pointBorderColor)
Sets the border gradient for points.
|
void |
LiningDataset.setPointHoverBackgroundColor(Gradient... pointHoverBackgroundColor)
Sets the point background gradient when hovered.
|
void |
LiningDataset.setPointHoverBorderColor(Gradient... pointHoverBorderColor)
Sets the point border gradient when hovered.
|
Modifier and Type | Method and Description |
---|---|
Gradient |
ChartBackgroundColorOptions.getBackgroundColorAsGradient()
Returns the background gradient.
|
Gradient |
ChartBackgroundColor.getGradient()
Returns the gradient if it has been set, otherwise
null . |
Modifier and Type | Method and Description |
---|---|
void |
ChartBackgroundColorOptions.setBackgroundColor(Gradient gradient)
Sets the background gradient.
|
Constructor and Description |
---|
ChartBackgroundColor(Gradient gradient)
Builds the object with the default gradient for all charts.
|
Modifier and Type | Method and Description |
---|---|
void |
GwtMaterialScheme.loadGradient(Gradient gradient)
Loads a gradient with the scheme of colors, setting the offset proportionally.
|
Modifier and Type | Method and Description |
---|---|
Gradient |
LegendLabelItem.getFillStyleAsGradient()
Returns the fill style of the legend box as gradient.
|
Gradient |
LegendLabelItem.getStrokeStyleAsGradient()
Returns the stroke style of the legend box as gradient.
|
Modifier and Type | Method and Description |
---|---|
void |
LegendLabelItem.setFillStyle(IsChart chart,
Gradient gradient)
Sets the fill style of the legend box as gradient.
|
void |
LegendLabelItem.setStrokeStyle(IsChart chart,
Gradient gradient)
Sets the stroke style of the legend box as gradient.
|
Modifier and Type | Method and Description |
---|---|
static String |
Utilities.toCSSBackgroundProperty(Gradient gradient)
Returns the CSS syntax to represent the gradient.
The dimension of canvas pattern image will be the dimension of pattern. |