public final class Merger extends Object
Modifier and Type | Method and Description |
---|---|
static Merger |
get()
Singleton method to get the instance
|
void |
load(IsChart chart,
NativeObjectContainer options,
OptionsEnvelop envelop)
Merges chart default options (by chart.defaults[type]), default scale options (by chart.defaults.scale) and global
options (by chart.defaults.global) and chart options.
The chain of priority is: chart options chart default options (by chart.defaults[type]) default scale options (by chart.defaults.scale) global options (by chart.defaults.global) |
void |
load(Type type,
OptionsEnvelop envelop)
Merges chart default options (by chart.defaults[type]), default scale options (by chart.defaults.scale) and global
options (by chart.defaults.global).
The chain of priority is: chart default options (by chart.defaults[type]) default scale options (by chart.defaults.scale) global options (by chart.defaults.global) |
NativeObject |
merge(NativeObjectContainer target,
NativeObjectContainer source,
String property)
Copies
source properties (creating a new java script object and setting the source one with the
property argument) into target only if not defined in target.target is not cloned and will be updated with source properties.The property is |
NativeObject |
merge(NativeObjectContainer target,
NativeObject source,
String property)
Copies
source properties (creating a new java script object and setting the source one with the
property argument) into target only if not defined in target.target is not cloned and will be updated with source properties.The property is |
NativeObject |
merge(NativeObject target,
NativeObjectContainer source,
String property)
Copies
source properties (creating a new java script object and setting the source one with the
property argument) into target only if not defined in target.target is not cloned and will be updated with source properties.The property is |
NativeObject |
merge(NativeObject target,
NativeObject source,
String property)
Copies
source properties (creating a new java script object and setting the source one with the
property argument) into target only if not defined in target.target is not cloned and will be updated with source properties.The property is |
public static Merger get()
public void load(IsChart chart, NativeObjectContainer options, OptionsEnvelop envelop)
chart
- chart instance which contains the chart options to be mergedoptions
- the options as native object container to be mergedenvelop
- the envelop for options as native optionspublic void load(Type type, OptionsEnvelop envelop)
type
- chart typeenvelop
- the envelop for options as native optionspublic NativeObject merge(NativeObjectContainer target, NativeObjectContainer source, String property)
source
properties (creating a new java script object and setting the source
one with the
property argument) into target
only if not defined in target.target
is not cloned and will be updated with source
properties.target
- The target object in which source
is merged into.source
- Object to merge into target
.property
- property of root java script object to addpublic NativeObject merge(NativeObject target, NativeObjectContainer source, String property)
source
properties (creating a new java script object and setting the source
one with the
property argument) into target
only if not defined in target.target
is not cloned and will be updated with source
properties.target
- The target object in which source
is merged into.source
- Object to merge into target
.property
- property of root java script object to addpublic NativeObject merge(NativeObjectContainer target, NativeObject source, String property)
source
properties (creating a new java script object and setting the source
one with the
property argument) into target
only if not defined in target.target
is not cloned and will be updated with source
properties.target
- The target object in which source
is merged into.source
- Object to merge into target
.property
- property of root java script object to addpublic NativeObject merge(NativeObject target, NativeObject source, String property)
source
properties (creating a new java script object and setting the source
one with the
property argument) into target
only if not defined in target.target
is not cloned and will be updated with source
properties.target
- The target object in which source
is merged into.source
- Object to merge into target
.property
- property of root java script object to add