Package org.pepstock.charba.client.utils
Contains some utilities to use in Charba, like HTML annotation builder, and other java script utilities useful for debugging.
- Author:
- Andrea "Stock" Stocchero
-
Interface Summary Interface Description JSON.Replacer A function that alters the behavior of the stringification process. -
Class Summary Class Description AnnotationBuilder Utility to have an image to apply to canvas of chart in order to add HTML custom information on chart.
The utility is leveraging onsvg+mxl
andforeignObject
elements.
The HTML content MUST be XML well-formed, following the xHTML specification, when passed as string.
This is the SVG XML tree, used:
Console Provides access to the browser's debugging console.
This object is the wrapper to console java script object.CScheduler This class provides asynchronous and delayed task scheduling, based setTimeout java script method.CSchedulerRegistration Registration objects returned when a task has been scheduled, used to cancel the scheduling.CTimer Simple utility to execute repeatedly calls aRunnable
with a fixed time delay between each call.Hasher Internal utility to calculate the hash of java script resources content.
Pay attention, you must use the chars and NOT the bytes because a byte variable can hold any value from -128 to 127 but a char variable can hold any value between 0 and 255.JSON This is the wrapper to JSON java script object.
The JSON object contains methods for parsing JSON and converting values to JSON.MultilineTextAnnotationBuilder Utility to build a canvas, to add to a chart, which contains the content where fonts and colors can be applied for each row.
Usually helpful to use in theAnnotationPlugin
.RegExp Regular expressions are patterns used to match character combinations in strings.
In JavaScript, regular expressions are also objects.RegExpResult Array object which maps the java script object.
A simple wrapper around a homogeneous native array of string values.Utilities Sets of methods used as common utilities.Window The window object represents an open window in a browser. -
Enum Summary Enum Description CTimer.Status Enumerates the possible status of the timer.