Uses of Class
org.pepstock.charba.client.dom.elements.CanvasPatternItem
-
Packages that use CanvasPatternItem 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. -
-
Uses of CanvasPatternItem in org.pepstock.charba.client.colors
Methods in org.pepstock.charba.client.colors that return CanvasPatternItem Modifier and Type Method Description CanvasPatternItemCanvasObjectFactory. 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.CanvasPatternItemPattern. getCanvasPattern()Returns the canvas pattern if exists.Methods in org.pepstock.charba.client.colors with parameters of type CanvasPatternItem Modifier and Type Method Description static PatternBuilderPatternBuilder. create(CanvasPatternItem canvasPattern)Creates the object using an already created canvas pattern.
The dimension of canvas pattern image will be the defaultTilesFactoryDefaults.DEFAULT_SIZE.static PatternBuilderPatternBuilder. 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 PatternBuilderPatternBuilder. create(CanvasPatternItem canvasPattern, int width, int height)Creates the object using an already created canvas pattern.
This is mainly used by tiles.static PatternPatternBuilder. retrieve(CanvasPatternItem canvasPattern)Retrieves a cached pattern by aCanvasPatternIteminstance.
If the pattern doesn't exist, returnsnull. -
Uses of CanvasPatternItem in org.pepstock.charba.client.colors.tiles
Methods in org.pepstock.charba.client.colors.tiles that return CanvasPatternItem Modifier and Type Method Description CanvasPatternItemTilesBuilder. asTile()Returns a canvas pattern, using the shape, background color, shape color and size.static CanvasPatternItemTilesFactory. createTile()Returns a canvas pattern, using default values, shape issquare, background color, shape color and size.static CanvasPatternItemTilesFactory. createTile(IsShape shape)Returns a canvas pattern, using the shape as argument and the other default values, background color, shape color and size.static CanvasPatternItemTilesFactory. 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 CanvasPatternItemTilesFactory. 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 CanvasPatternItemTilesFactory. 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.static CanvasPatternItemTilesFactory. 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 CanvasPatternItemTilesFactory. 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 CanvasPatternItemTilesFactory. 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. -
Uses of CanvasPatternItem in org.pepstock.charba.client.commons
Methods in org.pepstock.charba.client.commons that return CanvasPatternItem Modifier and Type Method Description CanvasPatternItemArrayPattern. get(int index)Gets the value at a given index.protected CanvasPatternItemNativeObjectContainer. getValue(Key key, CanvasPatternItem defaultValue)Returns a value (pattern) in the embedded JavaScript object at specific property.Methods in org.pepstock.charba.client.commons with parameters of type CanvasPatternItem Modifier and Type Method Description static ArrayPatternArrayPattern. fromOrEmpty(CanvasPatternItem... items)This method creates new array instance with a variable number ofCanvasPatternItemarguments.static ArrayPatternArrayPattern. fromOrNull(CanvasPatternItem... items)This method creates new array instance with a variable number ofCanvasPatternItemarguments.protected CanvasPatternItemNativeObjectContainer. getValue(Key key, CanvasPatternItem defaultValue)Returns a value (pattern) in the embedded JavaScript object at specific property.protected ArrayPatternNativeObjectContainer. 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 voidNativeObjectContainer. setValue(Key key, CanvasPatternItem value)Sets a value (pattern) in the embedded JavaScript object at specific property.protected voidAbstractNode. setValueAndAddToParent(Key key, CanvasPatternItem value)Sets a value (pattern) in the embedded JavaScript object at specific property.protected voidPropertyHandler. setValueAndAddToParent(Key key, CanvasPatternItem value)Sets a value (pattern) in the embedded JavaScript object at specific property.protected voidNativeObjectContainer. 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 voidAbstractNode. 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 voidPropertyHandler. 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.Method parameters in org.pepstock.charba.client.commons with type arguments of type CanvasPatternItem Modifier and Type Method Description static ArrayPatternArrayPattern. fromOrEmpty(List<CanvasPatternItem> items)Creates a java script array of patterns starting from list of patterns.static ArrayPatternArrayPattern. fromOrNull(List<CanvasPatternItem> items)Creates a java script array of patterns starting from list of patterns. -
Uses of CanvasPatternItem in org.pepstock.charba.client.dom.elements
Methods in org.pepstock.charba.client.dom.elements that return CanvasPatternItem Modifier and Type Method Description CanvasPatternItemContext2dItem. createPattern(Canvas canvas, Repetition repetition)Creates a pattern using the specified canvas and repetition.CanvasPatternItemContext2dItem. createPattern(Img image, Repetition repetition)Creates a pattern using the specified image and repetition.CanvasPatternItemContext2dItem. getFillPattern()Returns the filling styling is used for pattern style inside shapes.CanvasPatternItemContext2dItem. getStrokePattern()Returns the stroke pattern is used for the lines around shapes.static CanvasPatternItemCastHelper. toPattern(Object object)Returns aCanvasPatternItemobject casting the argument.Methods in org.pepstock.charba.client.dom.elements with parameters of type CanvasPatternItem Modifier and Type Method Description voidContext2dItem. setFillPattern(CanvasPatternItem pattern)Sets the filling styling is used for pattern style inside shapes.voidContext2dItem. setStrokePattern(CanvasPatternItem pattern)Sets the stroke pattern is used for the lines around shapes. -
Uses of CanvasPatternItem in org.pepstock.charba.client.items
Methods in org.pepstock.charba.client.items that return CanvasPatternItem Modifier and Type Method Description CanvasPatternItemDatasetElementOptions. getBackgroundColorAsCanvasPattern()Returns the background color as canvas pattern.CanvasPatternItemTooltipLabelColor. getBackgroundColorAsCanvasPattern()Returns the background color as canvas pattern.CanvasPatternItemLegendItem. getFillStyleAsCanvasPattern()Returns the fill style of the legend box as canvas pattern.CanvasPatternItemLegendItem. getStrokeStyleAsCanvasPattern()Returns the stroke style of the legend box as canvas pattern.Methods in org.pepstock.charba.client.items with parameters of type CanvasPatternItem Modifier and Type Method Description voidLegendLabelItem. setStrokeStyle(CanvasPatternItem pattern)Sets the stroke style of the legend box as canvas pattern. -
Uses of CanvasPatternItem in org.pepstock.charba.client.utils
Methods in org.pepstock.charba.client.utils with parameters of type CanvasPatternItem Modifier and Type Method Description static StringUtilities. getImageURLFromCanvasPattern(CanvasPatternItem pattern, int width, int height)Returns a data URL for the current content of a canvas pattern instance.
-