public class TimeSeriesLineOptions extends ScalesOptions
Constructor and Description |
---|
TimeSeriesLineOptions(IsChart chart,
IsDefaultScaledOptions defaultValues)
Builds the object storing the chart instance and default values.
|
Modifier and Type | Method and Description |
---|---|
IsChart |
getChart()
Returns the chart instance
|
protected T |
getConfiguration()
Returns the configuration element.
|
Decimation |
getDecimation()
Returns the decimation plugin element.
|
org.pepstock.charba.client.configuration.TimeSeriesOptions |
getOptions()
Returns a options which will implements show lines and span gaps.
|
TimeSeriesScales |
getScales()
Returns the scales element.
|
Segment |
getSegment()
Returns the segment element.
|
default boolean |
isShowLine()
If
false , the lines between points are not drawn. |
default boolean |
isSpanGaps()
If false,
Double.NaN data causes a break in the line. |
ChartEnvelop<NativeObject> |
loadNativeObject(ChartEnvelop<NativeObject> envelop)
Returns the native object instance inside an envelop.
It can be called only from org.pepstock.charba.client package. |
void |
merge(NativeObjectContainer source,
String property)
Merge a native object in the this one with a specific property name.
This is used by plugins implementation (native java script ones) when they are not using the standard way to add plugin configuration in the options of chart. |
static void |
register(IsChart chart,
org.pepstock.charba.client.configuration.IsEventProvider provider)
Adds the event provider implementation as handlers of chart.
|
protected void |
setConfiguration(T configuration) |
default void |
setShowLine(boolean showLine)
If
false , the lines between points are not drawn. |
default void |
setSpanGaps(boolean spanGaps)
If false,
Double.NaN data causes a break in the line. |
String |
toJSON()
Returns the JSON representation of the object.
|
getAxisById
afterAxisConfigurationUpdate, afterConfigurationUpdate, beforeAxisConfigurationUpdate, beforeConfigurationUpdate, getAnimationContainer, getAspectRatio, getBackgroundColor, getBackgroundColorAsString, getBorderColor, getBorderColorAsString, getColor, getColorAsString, getDatasets, getDevicePixelRatio, getElements, getEvents, getFiller, getFont, getHover, getInteraction, getLayout, getLegend, getLocale, getPlugins, getResizeDelay, getSubtitle, getTitle, getTooltips, hasAxisClickHandlers, hasAxisEnterHandlers, hasAxisHoverHandlers, hasAxisLeaveHandlers, hasDatasetSelectionHandlers, hasSubtitleClickHandlers, hasSubtitleEnterHandlers, hasSubtitleLeaveHandlers, hasTitleClickHandlers, hasTitleEnterHandlers, hasTitleLeaveHandlers, isDestroyOnDetach, isDrawOnAttach, isMaintainAspectRatio, isResponsive, load, loadOptions, onAdd, onRemove, setAspectRatio, setBackgroundColor, setBackgroundColor, setBorderColor, setBorderColor, setChartOptions, setColor, setColor, setDestroyOnDetach, setDevicePixelRatio, setDrawOnAttach, setEvents, setLocale, setMaintainAspectRatio, setResizeDelay, setResponsive
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnimation, getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
public TimeSeriesLineOptions(IsChart chart, IsDefaultScaledOptions defaultValues)
chart
- chart instancedefaultValues
- defaults options of line chartpublic org.pepstock.charba.client.configuration.TimeSeriesOptions getOptions()
public Decimation getDecimation()
public Segment getSegment()
public void setShowLine(boolean showLine)
false
, the lines between points are not drawn.showLine
- if false
, the lines between points are not drawn.public boolean isShowLine()
false
, the lines between points are not drawn.false
, the lines between points are not drawn.public void setSpanGaps(boolean spanGaps)
Double.NaN
data causes a break in the line.spanGaps
- If false, Double.NaN
data causes a break in the line.public boolean isSpanGaps()
Double.NaN
data causes a break in the line.Double.NaN
data causes a break in the line.public final TimeSeriesScales getScales()
ScalesOptions
getScales
in class ScalesOptions
public static void register(IsChart chart, org.pepstock.charba.client.configuration.IsEventProvider provider)
chart
- chart instanceprovider
- event provider implmentationprotected final void setConfiguration(T configuration)
configuration
- the configuration to setprotected final T getConfiguration()
public final void merge(NativeObjectContainer source, String property)
source
- native object container to addproperty
- property namepublic final String toJSON()
public final ChartEnvelop<NativeObject> loadNativeObject(ChartEnvelop<NativeObject> envelop)
org.pepstock.charba.client
package.envelop
- envelop instance which will contain the native objectpublic final IsChart getChart()