Package | Description |
---|---|
org.pepstock.charba.client.adapters |
Contains all classes to interact with date adapters implemented by CHART.JS to be abstract from date time java script library to use.
|
org.pepstock.charba.client.configuration |
Contains all elements to configure a chart instance (know as chart options at instance level).
|
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.enums |
Contains all enumerations of some chart options where only a specific set of values can be set.
|
org.pepstock.charba.client.options |
Contains all elements to configure charts at global level (know as chart global options).
|
Modifier and Type | Method and Description |
---|---|
Date |
DateAdapter.add(Date time,
long amount,
TimeUnit unit)
Adds the specified amount of unit to the given date.
|
Date |
DateAdapter.add(long time,
long amount,
TimeUnit unit)
Adds the specified amount of unit to the given timestamp.
|
double |
DateAdapter.diff(Date maxTime,
Date minTime,
TimeUnit unit)
Returns the number of unit between the given dates.
|
double |
DateAdapter.diff(long maxTime,
long minTime,
TimeUnit unit)
Returns the number of unit between the given timestamps.
|
Date |
DateAdapter.endOf(Date time,
TimeUnit unit)
Returns end of unit for the given date.
|
Date |
DateAdapter.endOf(long time,
TimeUnit unit)
Returns end of unit for the given timestamp.
|
String |
DateAdapter.format(Date time,
TimeUnit unit)
Returns the formatted date in the specified format for a given date, using the default format related to time unit.
|
String |
DateAdapter.format(long time,
TimeUnit unit)
Returns the formatted date in the specified format for a given timestamp, using the default format related to time unit.
|
String |
DateAdapterFormats.getFormat(TimeUnit unit)
|
Date |
DateAdapter.startOf(Date time,
TimeUnit unit)
Returns the start of unit for the given date.
|
Date |
DateAdapter.startOf(long time,
TimeUnit unit)
Returns the start of unit for the given timestamp.
|
Modifier and Type | Method and Description |
---|---|
TimeUnit |
Time.getMinUnit()
The minimum display format to be used for a time unit.
|
TimeUnit |
Time.getRound()
If defined, dates will be rounded to the start of this unit.
|
TimeUnit |
Time.getUnit()
If defined, will force the unit to be a certain type.
|
Modifier and Type | Method and Description |
---|---|
String |
DisplayFormats.getDisplayFormat(TimeUnit unit)
Returns the display formats are used to configure how different time units are formed in the strings for the axis tick marks.
|
void |
DisplayFormats.setDisplayFormat(TimeUnit unit,
String format)
Sets the display formats are used to configure how different time units are formed in the strings for the axis tick marks.
|
void |
Time.setMinUnit(TimeUnit unit)
The minimum display format to be used for a time unit.
|
void |
Time.setRound(TimeUnit round)
If defined, dates will be rounded to the start of this unit.
|
void |
Time.setUnit(TimeUnit unit)
If defined, will force the unit to be a certain type.
|
Modifier and Type | Method and Description |
---|---|
TimeUnit |
IsDefaultTime.getMinUnit()
The minimum display format to be used for a time unit.
|
TimeUnit |
IsDefaultTime.getRound()
If defined, dates will be rounded to the start of this unit.
|
TimeUnit |
IsDefaultTime.getUnit()
If defined, will force the unit to be a certain type.
|
Modifier and Type | Method and Description |
---|---|
TimeUnit |
DefaultChartTime.getMinUnit() |
TimeUnit |
DefaultChartTime.getRound() |
TimeUnit |
DefaultChartTime.getUnit() |
Modifier and Type | Method and Description |
---|---|
TimeUnit |
DefaultTime.getMinUnit() |
TimeUnit |
DefaultTime.getRound() |
TimeUnit |
DefaultTime.getUnit() |
Modifier and Type | Method and Description |
---|---|
static TimeUnit |
TimeUnit.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TimeUnit[] |
TimeUnit.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
TimeUnit |
Time.getMinUnit()
Returns the minimum display format to be used for a time unit.
|
TimeUnit |
Time.getRound()
If defined, dates will be rounded to the start of this unit.
|
TimeUnit |
Time.getUnit()
If defined, will force the unit to be a certain type.
|
Modifier and Type | Method and Description |
---|---|
String |
DisplayFormats.getDisplayFormat(TimeUnit unit)
Returns the display formats are used to configure how different time units are formed in the strings for the axis tick marks.
|
void |
DisplayFormats.setDisplayFormat(TimeUnit unit,
String format)
Sets the display formats are used to configure how different time units are formed in the strings for the axis tick marks.
|
void |
Time.setMinUnit(TimeUnit unit)
Sets the minimum display format to be used for a time unit.
|
void |
Time.setRound(TimeUnit round)
If defined, dates will be rounded to the start of this unit.
|
void |
Time.setUnit(TimeUnit unit)
If defined, will force the unit to be a certain type.
|