Package | Description |
---|---|
org.pepstock.charba.client |
Main package with all charts implementation, global classes and common interfaces.
|
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.configuration |
Contains all elements to configure a chart instance (know as chart options at instance level).
|
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.defaults |
Contains all interfaces need to provide defaults values of the chart options.
|
org.pepstock.charba.client.defaults.chart |
Contains the default values of chart options based on type of chart instance.
|
org.pepstock.charba.client.defaults.globals |
Contains the default values of chart options for all chart types (CHART.JS options defaults).
|
org.pepstock.charba.client.dom |
Contains all classes needed to work with DOM tree, base classes of a DOM tree.
|
org.pepstock.charba.client.dom.elements |
Contains a set of DOM elements that Charba is using.
|
org.pepstock.charba.client.gwt.widgets |
Contains all charts classes wrapped as GWT widget in order to enable to use inside to GWT UIBinder.
|
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 |
---|---|
Canvas |
AbstractChart.getCanvas()
Returns the canvas element used to draw the chart.
|
Canvas |
IsChart.getCanvas()
Returns the canvas element used to draw the chart.
|
Modifier and Type | Method and Description |
---|---|
void |
Helpers.clipArea(Canvas canvas,
double width,
double height)
Clips an area on the canvas context, using the
Context2dItem of the canvas.The area is specified by size. Starting points are 0. |
void |
Helpers.clipArea(Canvas canvas,
double x,
double y,
double width,
double height)
Clips an area on the canvas context, using the
Context2dItem of the canvas.The area is specified by coordinates and size. |
void |
Helpers.clipArea(Canvas canvas,
IsArea area)
Clips an area on the canvas context, using the
Context2dItem of the canvas. |
Modifier and Type | Method and Description |
---|---|
protected Canvas |
ShapeDrawer.initCanvas(Canvas outerCanvas,
int size)
Initialized the internal canvas to use for drawing.
|
Modifier and Type | Method and Description |
---|---|
protected Canvas |
ShapeDrawer.initCanvas(Canvas outerCanvas,
int size)
Initialized the internal canvas to use for drawing.
|
Modifier and Type | Method and Description |
---|---|
Canvas |
ArrayCanvas.get(int index)
Gets the value at a given index.
|
Canvas |
ArrayCanvasList.get(int index)
Returns the element at the specified position in this list.
|
protected Canvas |
NativeObjectContainer.getValue(Key key,
Canvas defaultValue)
Returns a value (canvas) in the embedded JavaScript object at specific property.
|
Canvas |
ArrayCanvasList.remove(int index)
Removes the element at the specified position in this list.
Shifts any subsequent elements to the left (subtracts one from their indices). |
Canvas |
ArrayCanvasList.set(int index,
Canvas element)
Replaces the element at the specified position in this list with the specified element.
|
Modifier and Type | Method and Description |
---|---|
static List<Canvas> |
ArrayListHelper.unmodifiableList(ArrayCanvas values)
Creates a array list of canvas by a java script array of canvas.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ArrayCanvasList.add(Canvas element)
Appends the specified element to the end of this list
|
void |
ArrayCanvasList.add(int index,
Canvas element)
Inserts the specified element at the specified position in this list.
Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices). |
void |
ArrayCanvasList.addAll(Canvas... values)
Loads an array of elements in the the list
|
static ArrayCanvas |
ArrayCanvas.fromOrEmpty(Canvas... items)
This method creates new array instance with a variable number of
HTMLCanvasElement arguments. |
static ArrayCanvas |
ArrayCanvas.fromOrNull(Canvas... items)
This method creates new array instance with a variable number of
HTMLCanvasElement arguments. |
protected Canvas |
NativeObjectContainer.getValue(Key key,
Canvas defaultValue)
Returns a value (canvas) in the embedded JavaScript object at specific property.
|
protected ArrayCanvas |
NativeObjectContainer.getValueOrArray(Key key,
Canvas 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 canvas. |
Canvas |
ArrayCanvasList.set(int index,
Canvas element)
Replaces the element at the specified position in this list with the specified element.
|
protected void |
NativeObjectContainer.setValue(Key key,
Canvas value)
Sets a value (canvas) in the embedded JavaScript object at specific property.
|
protected void |
PropertyHandler.setValueAndAddToParent(Key key,
Canvas value)
Sets a value (canvas) in the embedded JavaScript object at specific property.
|
protected void |
AbstractNode.setValueAndAddToParent(Key key,
Canvas value)
Sets a value (canvas) in the embedded JavaScript object at specific property.
|
protected void |
NativeObjectContainer.setValueOrArray(Key key,
Canvas... values)
Sets a value (array or canvas) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a image. |
protected void |
PropertyHandler.setValueOrArrayAndAddToParent(Key key,
Canvas... values)
Sets a value (array or canvas) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a canvas. |
protected void |
AbstractNode.setValueOrArrayAndAddToParent(Key key,
Canvas... values)
Sets a value (array or canvas) in the embedded JavaScript object at specific property.
This must be used when a java script property can contain an array or a canvas. |
Modifier and Type | Method and Description |
---|---|
boolean |
ArrayCanvasList.addAll(Collection<? extends Canvas> collection)
Appends all of the elements in the specified collection to the end of this list, in the order that they are returned by the specified collection's iterator
|
static ArrayCanvas |
ArrayCanvas.fromOrEmpty(List<Canvas> items)
Creates a java script array of canvas starting from list of canvas.
|
static ArrayCanvas |
ArrayCanvas.fromOrNull(List<Canvas> items)
Creates a java script array of canvas starting from list of canvas.
|
Modifier and Type | Method and Description |
---|---|
Canvas |
Bar.getPointStyleAsCanvas()
Returns the style of the point as canvas.
|
Canvas |
Point.getPointStyleAsCanvas()
Returns the style of the point as canvas.
|
Canvas |
LegendLabels.getPointStyleAsCanvas()
Returns the style of the point as canvas.
|
Modifier and Type | Method and Description |
---|---|
void |
Bar.setPointStyle(Canvas pointStyle)
Sets the style of the point as canvas.
|
void |
Point.setPointStyle(Canvas pointStyle)
Sets the style of the point as canvas.
|
void |
LegendLabels.setPointStyle(Canvas pointStyle)
Sets the style of the legend, overriding point style from dataset, as canvas.
Only applies if LegendLabels.setUsePointStyle(boolean) is set to true . |
Modifier and Type | Method and Description |
---|---|
Canvas |
BarDataset.getPointStyleAsCanvas()
Returns the style of the point for legend as canvas.
|
Modifier and Type | Method and Description |
---|---|
void |
BarDataset.setPointStyle(Canvas pointStyle)
Sets the style of the point for legend as canvas.
|
Modifier and Type | Method and Description |
---|---|
default Canvas |
IsDefaultPointStyleHandler.getPointStyleAsCanvas()
Returns the style of the point as canvas.
If property is missing or not an canvas, returns null . |
Modifier and Type | Method and Description |
---|---|
Canvas |
DefaultChartLegendLabels.getPointStyleAsCanvas() |
Canvas |
DefaultChartPoint.getPointStyleAsCanvas() |
Canvas |
DefaultChartBar.getPointStyleAsCanvas() |
Modifier and Type | Method and Description |
---|---|
Canvas |
DefaultLegendLabels.getPointStyleAsCanvas() |
Canvas |
DefaultBar.getPointStyleAsCanvas() |
Modifier and Type | Method and Description |
---|---|
Canvas |
DOMBuilder.createCanvasElement()
Creates a <canvas> element.
|
Modifier and Type | Method and Description |
---|---|
Canvas |
Context2dItem.getCanvas()
Returns the canvas of the canvas rendering context 2D object.
|
static Canvas |
CastHelper.toCanvas(Object object)
Returns a
Canvas object casting the argument. |
Modifier and Type | Method and Description |
---|---|
CanvasPatternItem |
Context2dItem.createPattern(Canvas canvas,
Repetition repetition)
Creates a pattern using the specified canvas and repetition.
|
void |
Context2dItem.drawImage(Canvas canvas,
double dx,
double dy)
Draws a canvas onto the canvas.
|
void |
Context2dItem.drawImage(Canvas canvas,
double dx,
double dy,
double dWidth)
Draws a canvas onto the canvas.
|
void |
Context2dItem.drawImage(Canvas canvas,
double dx,
double dy,
double dWidth,
double dHeight)
Draws a canvas onto the canvas.
|
Modifier and Type | Method and Description |
---|---|
Canvas |
AbstractChartWidget.getCanvas() |
Modifier and Type | Field and Description |
---|---|
static Canvas |
Undefined.CANVAS_ELEMENT
Default value for HTMLCanvasElement instances, null.
|
Modifier and Type | Method and Description |
---|---|
Canvas |
LegendItem.getPointStyleAsCanvas()
Returns the style (as canvas) of the legend box (only used if usePointStyle is true)
|
Canvas |
DatasetElementOptions.getPointStyleAsCanvas()
Returns the style of the point as canvas.
If property is missing or not an canvas, returns null . |
Canvas |
TooltipLabelPointStyle.getPointStyleAsCanvas()
Returns the style of the point as canvas.
If property is missing or not an canvas, returns null . |
Modifier and Type | Method and Description |
---|---|
void |
LegendLabelItem.setPointStyle(Canvas pointStyle)
Sets the style (as canvas) of the legend box (only used if usePointStyle is true)
|
void |
TooltipLabelPointStyle.setPointStyle(Canvas pointStyle)
Sets the style of the point as canvas.
|
Constructor and Description |
---|
TooltipLabelPointStyle(Canvas poitnStyle)
Creates the object setting the point style argument
|