| 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.dom.elements | 
 Contains a set of DOM elements that Charba is using. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
Helpers.clipArea(Context2dItem context,
        double width,
        double height)
Clips an area on the canvas context. 
The area is specified by size. Starting points are 0.  | 
void | 
Helpers.clipArea(Context2dItem context,
        double x,
        double y,
        double width,
        double height)
Clips an area on the canvas context. 
The area is specified by coordinates and size.  | 
void | 
Helpers.clipArea(Context2dItem context,
        IsArea area)
Clips an area on the canvas context. 
 | 
void | 
Helpers.unclipArea(Context2dItem context)
Unclips the area previously set. 
 | 
| Constructor and Description | 
|---|
Chart(Context2dItem context,
     NativeObject configuration)
Builds CHART object at CHART.JS level. 
This constructor MUST be empty.  | 
| Modifier and Type | Method and Description | 
|---|---|
protected void | 
ShapeDrawer.applyFillProperties(Context2dItem context,
                   String shapeColor)
Applies the common configuration to context for fill designing. 
 | 
protected void | 
ShapeDrawer.applyStrokeProperties(Context2dItem context,
                     String shapeColor,
                     int size)
Applies the common configuration to context for stroke designing. 
 | 
protected void | 
ShapeDrawer.applyStrokeProperties(Context2dItem context,
                     String shapeColor,
                     int size,
                     CapStyle lineCap,
                     JoinStyle lineJoin)
Applies the common configuration to context for stroke designing. 
 | 
protected void | 
ImageShape.drawTile(Context2dItem context,
        String backgroundColor,
        String shapeColor,
        int size)  | 
protected abstract void | 
ShapeDrawer.drawTile(Context2dItem context,
        String backgroundColor,
        String shapeColor,
        int size)
Draws the tile applying the requested shape. 
 | 
protected void | 
CharacterShape.drawTile(Context2dItem context,
        String backgroundColor,
        String shapeColor,
        int size)  | 
| Modifier and Type | Method and Description | 
|---|---|
Context2dItem | 
Canvas.getContext2d()
Returns a drawing 2D context on the canvas. 
 |