| 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.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.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. 
 | 
| 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 | 
|---|---|
CanvasPatternItem | 
CanvasObjectFactory.createPattern(IsChart chart,
             Pattern pattern)
Creates a canvas pattern java script object using a Charba pattern and a chart instance which must provide a canvas instance and its context. 
 | 
CanvasPatternItem | 
Pattern.getCanvasPattern()
Returns the canvas pattern if exists. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static PatternBuilder | 
PatternBuilder.create(CanvasPatternItem canvasPattern)
Creates the object using an already created canvas pattern. 
The dimension of canvas pattern image will be the default TilesFactoryDefaults.DEFAULT_SIZE. | 
static PatternBuilder | 
PatternBuilder.create(CanvasPatternItem canvasPattern,
      int squareSize)
Creates the object using an already created canvas pattern. 
The dimension of canvas pattern image is unique then the image of pattern is a square.  | 
static PatternBuilder | 
PatternBuilder.create(CanvasPatternItem canvasPattern,
      int width,
      int height)
Creates the object using an already created canvas pattern. 
This is mainly used by tiles.  | 
static Pattern | 
PatternBuilder.retrieve(CanvasPatternItem canvasPattern)
Retrieves a cached pattern by a  
CanvasPatternItem instance.If the pattern doesn't exist, returns null. | 
| Modifier and Type | Method and Description | 
|---|---|
CanvasPatternItem | 
TilesBuilder.asTile()
Returns a canvas pattern, using the shape, background color, shape color and size. 
 | 
static CanvasPatternItem | 
TilesFactory.createTile()
Returns a canvas pattern, using default values, shape is  
square, background color, shape color and size. | 
static CanvasPatternItem | 
TilesFactory.createTile(IsShape shape)
Returns a canvas pattern, using the shape as argument and the other default values, background color, shape color and size. 
 | 
static CanvasPatternItem | 
TilesFactory.createTile(IsShape shape,
          IsColor backgroundColor)
Returns a canvas pattern, using the shape and back ground color as arguments and the other default values, shape color and size. 
 | 
static CanvasPatternItem | 
TilesFactory.createTile(IsShape shape,
          IsColor backgroundColor,
          IsColor shapeColor)
Returns a canvas pattern, using the shape, back ground color and shape color as arguments and the size as default value. 
 | 
static CanvasPatternItem | 
TilesFactory.createTile(IsShape shape,
          IsColor backgroundColor,
          IsColor shapeColor,
          int size)
Returns a canvas pattern, using the shape, back ground color, shape color and size as arguments. 
 | 
static CanvasPatternItem | 
TilesFactory.createTile(IsShape shape,
          String backgroundColor)
Returns a canvas pattern, using the shape and back ground color as arguments and the other default values, shape color and size. 
 | 
static CanvasPatternItem | 
TilesFactory.createTile(IsShape shape,
          String backgroundColor,
          String shapeColor)
Returns a canvas pattern, using the shape, back ground color and shape color as arguments and the size as default value. 
 | 
static CanvasPatternItem | 
TilesFactory.createTile(IsShape shape,
          String backgroundColor,
          String shapeColor,
          int size)
Returns a canvas pattern, using the shape, back ground color, shape color and size as arguments. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
CanvasPatternItem | 
ArrayPattern.get(int index)
Gets the value at a given index. 
 | 
protected CanvasPatternItem | 
NativeObjectContainer.getValue(Key key,
        CanvasPatternItem defaultValue)
Returns a value (pattern) in the embedded JavaScript object at specific property. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static ArrayPattern | 
ArrayPattern.fromOrEmpty(CanvasPatternItem... items)
This method creates new array instance with a variable number of  
CanvasPatternItem arguments. | 
static ArrayPattern | 
ArrayPattern.fromOrNull(CanvasPatternItem... items)
This method creates new array instance with a variable number of  
CanvasPatternItem arguments. | 
protected CanvasPatternItem | 
NativeObjectContainer.getValue(Key key,
        CanvasPatternItem defaultValue)
Returns a value (pattern) in the embedded JavaScript object at specific property. 
 | 
protected ArrayPattern | 
NativeObjectContainer.getValueOrArray(Key key,
               CanvasPatternItem 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 pattern.  | 
protected void | 
NativeObjectContainer.setValue(Key key,
        CanvasPatternItem value)
Sets a value (pattern) in the embedded JavaScript object at specific property. 
 | 
protected void | 
PropertyHandler.setValueAndAddToParent(Key key,
                      CanvasPatternItem value)
Sets a value (pattern) in the embedded JavaScript object at specific property. 
 | 
protected void | 
AbstractNode.setValueAndAddToParent(Key key,
                      CanvasPatternItem value)
Sets a value (pattern) in the embedded JavaScript object at specific property. 
 | 
protected void | 
NativeObjectContainer.setValueOrArray(Key key,
               CanvasPatternItem... values)
Sets a value (Array or pattern) in the embedded JavaScript object at specific property. 
This must be used when a java script property can contain an array or a pattern.  | 
protected void | 
PropertyHandler.setValueOrArrayAndAddToParent(Key key,
                             CanvasPatternItem... values)
Sets a value (Array or pattern) in the embedded JavaScript object at specific property. 
This must be used when a java script property can contain an array or a pattern.  | 
protected void | 
AbstractNode.setValueOrArrayAndAddToParent(Key key,
                             CanvasPatternItem... values)
Sets a value (Array or pattern) in the embedded JavaScript object at specific property. 
This must be used when a java script property can contain an array or a pattern.  | 
| Modifier and Type | Method and Description | 
|---|---|
static ArrayPattern | 
ArrayPattern.fromOrEmpty(List<CanvasPatternItem> items)
Creates a java script array of patterns starting from list of patterns. 
 | 
static ArrayPattern | 
ArrayPattern.fromOrNull(List<CanvasPatternItem> items)
Creates a java script array of patterns starting from list of patterns. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
CanvasPatternItem | 
Context2dItem.createPattern(Canvas canvas,
             Repetition repetition)
Creates a pattern using the specified canvas and repetition. 
 | 
CanvasPatternItem | 
Context2dItem.createPattern(Img image,
             Repetition repetition)
Creates a pattern using the specified image and repetition. 
 | 
CanvasPatternItem | 
Context2dItem.getFillPattern()
Returns the filling styling is used for pattern style inside shapes. 
 | 
CanvasPatternItem | 
Context2dItem.getStrokePattern()
Returns the stroke pattern is used for the lines around shapes. 
 | 
static CanvasPatternItem | 
CastHelper.toPattern(Object object)
Returns a  
CanvasPatternItem object casting the argument. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
Context2dItem.setFillPattern(CanvasPatternItem pattern)
Sets the filling styling is used for pattern style inside shapes. 
 | 
void | 
Context2dItem.setStrokePattern(CanvasPatternItem pattern)
Sets the stroke pattern is used for the lines around shapes. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
CanvasPatternItem | 
TooltipLabelColor.getBackgroundColorAsCanvasPattern()
Returns the background color as canvas pattern. 
 | 
CanvasPatternItem | 
DatasetElementOptions.getBackgroundColorAsCanvasPattern()
Returns the background color as canvas pattern. 
 | 
CanvasPatternItem | 
LegendItem.getFillStyleAsCanvasPattern()
Returns the fill style of the legend box as canvas pattern. 
 | 
CanvasPatternItem | 
LegendItem.getStrokeStyleAsCanvasPattern()
Returns the stroke style of the legend box as canvas pattern. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
LegendLabelItem.setStrokeStyle(CanvasPatternItem pattern)
Sets the stroke style of the legend box as canvas pattern. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static String | 
Utilities.getImageURLFromCanvasPattern(CanvasPatternItem pattern,
                            int width,
                            int height)
Returns a data URL for the current content of a canvas pattern instance. 
 |