Package | Description |
---|---|
org.pepstock.charba.client |
Main package with all charts implementation, global classes and common interfaces.
|
org.pepstock.charba.client.annotation |
Contains all classes to activate the
AnnotationPlugin#ID plugin (AKA chartjs-plugin-annotation.js ) for CHART.js. |
org.pepstock.charba.client.callbacks |
All callbacks interfaces to be implemented, also to use the scriptable options of CHART.JS.
|
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.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.options |
Contains all elements to configure charts at global level (know as chart global options).
|
org.pepstock.charba.client.utils.toast |
Contains all classes to use
Toaster utility. |
Modifier and Type | Method and Description |
---|---|
IsImmutableFont |
Helpers.toFont(IsDefaultFont font)
Parses font options and returns a normalized font object.
|
String |
Helpers.toFontString(IsDefaultFont font)
Builds the font string (shorthand property of CSS font) to use in the canvas object.
See here CSS specification. |
Modifier and Type | Class and Description |
---|---|
class |
Font
Base object to map font options for
AnnotationPlugin.ID plugin LINE LABEL configuration. |
Modifier and Type | Method and Description |
---|---|
static <C extends ChartContext> |
ScriptableUtils.getOptionValueAsFont(C context,
Scriptable<FontItem,C> callback,
IsDefaultFont defaultValue)
Returns the font item value as value of the property by invoking a callback which is typed to a font item.
|
Modifier and Type | Method and Description |
---|---|
IsDefaultFont |
IsDefaultTooltips.getBodyFont()
Returns the body line font.
|
IsDefaultFont |
IsDefaultOptions.getFont()
Returns the font element.
|
IsDefaultFont |
IsDefaultFontContainer.getFont()
Returns the font element.
|
IsDefaultFont |
IsDefaultTooltips.getFooterFont()
Returns the footer font.
|
IsDefaultFont |
IsDefaultTooltips.getTitleFont()
Returns the title font.
|
Modifier and Type | Method and Description |
---|---|
default FontItem |
IsDefaultFont.create(IsDefaultFont defaultValues)
Creates a font options instance using default or cloning current instance.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultChartFont
Defaults for font option element, based on chart type.
|
Modifier and Type | Method and Description |
---|---|
IsDefaultFont |
DefaultChartTooltips.getBodyFont() |
IsDefaultFont |
DefaultChartLegendLabels.getFont() |
IsDefaultFont |
DefaultChartLegendTitle.getFont() |
IsDefaultFont |
DefaultChartPointLabels.getFont() |
IsDefaultFont |
DefaultChartScaleTitle.getFont() |
IsDefaultFont |
DefaultChartTicks.getFont() |
IsDefaultFont |
DefaultChartTooltips.getFooterFont() |
IsDefaultFont |
DefaultChartTooltips.getTitleFont() |
Constructor and Description |
---|
DefaultChartFont(IsDefaultFont font)
Creates the object by font option element instance.
|
Modifier and Type | Class and Description |
---|---|
class |
DefaultRoutedFont
CHART.JS default values for font items, defined inside to children element of defaults (i.e.
|
Modifier and Type | Method and Description |
---|---|
IsDefaultFont |
DefaultTooltips.getBodyFont() |
IsDefaultFont |
DefaultLegendTitle.getFont() |
IsDefaultFont |
DefaultLegendLabels.getFont() |
IsDefaultFont |
DefaultPointLabels.getFont() |
IsDefaultFont |
DefaultSubtitle.getFont() |
IsDefaultFont |
AbstractDefaultOptions.getFont() |
IsDefaultFont |
DefaultTitle.getFont() |
IsDefaultFont |
DefaultTicks.getFont() |
IsDefaultFont |
DefaultScaleTitle.getFont() |
IsDefaultFont |
DefaultTooltips.getFooterFont() |
IsDefaultFont |
DefaultTooltips.getTitleFont() |
Modifier and Type | Class and Description |
---|---|
class |
FontItem
Font options item to use mainly for callbacks.
|
Constructor and Description |
---|
FontItem(IsDefaultFont defaultValues)
Creates an empty font to use for chart configuration when the font is created by a callback.
|
Modifier and Type | Interface and Description |
---|---|
interface |
IsFont
Interface to map a font element.
|
interface |
IsImmutableFont
Interface to map a font element in read-only mode, normalized by CHART.JS by
Helpers.toFont(org.pepstock.charba.client.items.FontItem) , providing also the CSS string of
font itself. |
Modifier and Type | Class and Description |
---|---|
class |
AbstractFont
Base class to map the font properties of an element.
|
class |
AbstractImmutableFont
Base class to map a font element in read-only mode, normalized by CHART.JS by
Helpers.toFont(org.pepstock.charba.client.items.FontItem) , providing also the CSS string of
font itself. |
class |
AbstractScriptableFont<T extends ChartContext>
Object can be provided with additional configuration by callbacks to define font options at runtime, and with the possibility to reset
FontCallback if the
IsScriptableFontProvider instance has been set with a FontCallback . |
Modifier and Type | Method and Description |
---|---|
FontItem |
Font.create(IsDefaultFont defaultValues) |
Constructor and Description |
---|
AbstractFont(IsDefaultFont defaultValues)
Creates an empty font to use for chart configuration.
|
AbstractFont(IsDefaultFont defaultValues,
NativeObject nativeObject)
Creates a font to use for chart configuration, wrapping a native object instance.
|
AbstractScriptableFont(IsScriptableFontProvider<T> scriptableFontProvider,
IsDefaultFont defaultValues)
Creates an empty font to use for chart configuration.
|
AbstractScriptableFont(IsScriptableFontProvider<T> scriptableFontProvider,
IsDefaultFont defaultValues,
NativeObject nativeObject)
Creates a font to use for chart configuration, wrapping a native object instance.
|
Modifier and Type | Method and Description |
---|---|
IsDefaultFont |
ToastItemAction.getFont()
Returns the font element.
|