Class Options
- java.lang.Object
-
- org.pepstock.charba.client.commons.NativeObjectContainer
-
- org.pepstock.charba.client.commons.AbstractNode
-
- org.pepstock.charba.client.options.AbstractModel<Options,IsDefaultOptions>
-
- org.pepstock.charba.client.options.Options
-
- All Implemented Interfaces:
HasCallbackScope,IsDefaultAnimationContainer,IsDefaultAnimationTransition,IsDefaultEventHandler,IsDefaultOptions,HasAnimationOptions,HasEvents,HasSpanGaps
- Direct Known Subclasses:
GlobalOptions,ScaledOptions
public class Options extends AbstractModel<Options,IsDefaultOptions> implements IsDefaultOptions, HasSpanGaps, HasAnimationOptions, HasCallbackScope, HasEvents
Base object which maps chart options.- Author:
- Andrea "Stock" Stocchero
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classOptions.CommonPropertyName of properties of native object.
Properties common with which extends this class.
-
Constructor Summary
Constructors Modifier Constructor Description protectedOptions(String scope, IsDefaultOptions defaultValues)Creates the object only with default provider.protectedOptions(String scope, IsDefaultOptions defaultValues, NativeObject nativeObject)Creates the object only with default provider and native object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnimationgetAnimation()Returns the animation element.AnimationContainergetAnimationContainer()Returns an animation container instance to use in the default methods of this interface.doublegetAspectRatio()Canvas aspect ratio (i.e.IsColorgetBackgroundColor()Returns the default background color to use in the chart, on all objects, if not override by the specific configuration.StringgetBackgroundColorAsString()Returns the default background color to use in the chart, on all objects, if not override by the specific configuration.IsColorgetBorderColor()Returns the default border color to use in the chart, on all objects, if not override by the specific configuration.StringgetBorderColorAsString()Returns the default border color to use in the chart, on all objects, if not override by the specific configuration.StringgetCharbaId()Returns the CHARBA id when the options are related to a chart instance.doublegetCircumference()Returns the sweep to allow arcs to cover.IsColorgetColor()Returns the default color to use in the chart, on all objects, if not override by the specific configuration.StringgetColorAsString()Returns the default color to use in the chart, on all objects, if not override by the specific configuration.doublegetCutout()Returns the portion of the chart that is cut out of the middle.
AsDouble, it is considered to be pixels.StringgetCutoutPercentage()Returns the portion of the chart that is cut out of the middle.
AsStringand ending with '%', percentage of the chart radius.DatasetsgetDatasets()Returns the data sets element.DecimationgetDecimation()Returns the decimation plugin element.doublegetDevicePixelRatio()The chart's canvas will use a 1:1 pixel ratio, unless the physical display has a higher pixel ratio (e.g.ElementsgetElements()Returns the elements element.EventsOptionHandlergetEventsOptionHandler()Returns a event handler handler instance to use in the default methods of this interface.FillergetFiller()Returns the filler plugin element.FontgetFont()Returns the font element.HovergetHover()Returns the hover element.IndexAxisgetIndexAxis()Returns the base axis for the dataset, only for bar options.InteractiongetInteraction()Returns the interaction element.LayoutgetLayout()Returns the layout element.LegendgetLegend()Returns the legend element.CLocalegetLocale()Returns the locale instance for internationalization.PluginsgetPlugins()Returns the plugins element.doublegetRadius()Returns the outer radius of the chart.
AsDouble, it is considered to be pixels.StringgetRadiusPercentage()Returns the outer radius of the chart.
AsStringand ending with '%', percentage of the maximum radius.doublegetResizeDelay()Returns the delay the resize update by give amount of milliseconds.
This can ease the resize process by debouncing update of the elements.doublegetRotation()Returns the starting angle to draw arcs from.StringgetScope()Returns the scope of the options, which is the options are used for defaults, chart defaults or chart.SpanGapHandlergetSpanGapHandler()Returns a span gap handler instance to use in the default methods of this interface.SubtitlegetSubtitle()Returns the title element.TitlegetTitle()Returns the title element.TooltipsgetTooltips()Returns the tooltips element.booleanisDestroyOnDetach()Returnstrueif the chart is configured to be destroyed on the detach from DIV element, otherwisefalse.booleanisDrawOnAttach()Returnstrueif the chart is configured to be drawn on the attach of DIV element, otherwisefalse.booleanisMaintainAspectRatio()Returns the maintaining of the original canvas aspect ratio (width / height) when resizing.booleanisResponsive()Returns the resizing of the chart canvas when its container does.booleanisShowLine()Iffalse, the lines between points are not drawn.booleanisSkipNull()Iftrue, null or undefined values will not be drawn.booleanisSpanGaps()If false,Double.NaNdata causes a break in the line.voidsetAspectRatio(double ratio)Canvas aspect ratio (i.e.voidsetBackgroundColor(String backgroundColor)Sets the default background color to use in the chart, on all objects, if not override by the specific configuration.voidsetBackgroundColor(IsColor backgroundColor)Sets the default background color to use in the chart, on all objects, if not override by the specific configuration.voidsetBorderColor(String borderColor)Sets the default border color to use in the chart, on all objects, if not override by the specific configuration.voidsetBorderColor(IsColor borderColor)Sets the default border color to use in the chart, on all objects, if not override by the specific configuration.voidsetCircumference(double circumference)Sets the sweep to allow arcs to cover.voidsetColor(String color)Sets the default color to use in the chart, on all objects, if not override by the specific configuration.voidsetColor(IsColor color)Sets the default color to use in the chart, on all objects, if not override by the specific configuration.voidsetCutout(double cutout)Sets the portion of the chart that is cut out of the middle.
AsDouble, it is considered to be pixels.voidsetCutoutPercentage(String cutout)Sets the portion of the chart that is cut out of the middle.
AsStringand ending with '%', percentage of the chart radius.voidsetDestroyOnDetach(boolean destroyOnDetach)Setstrueif the chart is configured to be destroyed on the detach from DIV element, otherwisefalse.voidsetDevicePixelRatio(double ratio)The chart's canvas will use a 1:1 pixel ratio, unless the physical display has a higher pixel ratio (e.g.voidsetDrawOnAttach(boolean drawOnAttach)Setstrueif the chart is configured to be draw on the attach of DIV element, otherwisefalse.voidsetIndexAxis(IndexAxis indexAxis)Sets the base axis for the dataset.voidsetLocale(CLocale locale)Sets the locale instance for internationalization.voidsetMaintainAspectRatio(boolean maintainAspectRatio)Sets the maintaining of the original canvas aspect ratio (width / height) when resizing.voidsetRadius(double radius)Sets the outer radius of the chart.
AsDouble, it is considered to be pixels.voidsetRadiusPercentage(String radius)Sets the outer radius of the chart.
AsStringand ending with '%', percentage of the maximum radius.voidsetResizeDelay(int delay)Sets the delay the resize update by give amount of milliseconds.
This can ease the resize process by debouncing update of the elements.voidsetResponsive(boolean responsive)Sets the resizing of the chart canvas when its container does.voidsetRotation(double rotation)Sets the starting angle to draw arcs from.voidsetShowLine(boolean showLine)Iffalse, the lines between points are not drawn.voidsetSkipNull(boolean skipNull)Iftrue, null or undefined values will not be drawn.-
Methods inherited from class org.pepstock.charba.client.options.AbstractModel
getDefaultValues, getParent, loadPadding, setCallbackToModel, setCallbackToModel, setEventToModel
-
Methods inherited from class org.pepstock.charba.client.commons.AbstractNode
checkAndAddToParent, getChildKey, getParentNode, getRootNode, retrieveRoot, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setArrayValueAndAddToParent, setElementAndAddToParent, setInternalCallbackToModel, setInternalCallbackToModel, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent, setValueOrArrayAndAddToParent
-
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainer
checkDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.options.HasAnimationOptions
getAnimations, getTransitions, isAnimationEnabled, setAnimationEnabled
-
Methods inherited from interface org.pepstock.charba.client.options.HasEvents
getEvents, setEvents, setEvents
-
Methods inherited from interface org.pepstock.charba.client.options.HasSpanGaps
getSpanGaps, setSpanGaps, setSpanGaps
-
-
-
-
Constructor Detail
-
Options
protected Options(String scope, IsDefaultOptions defaultValues)
Creates the object only with default provider. This is used as the root element.
New native java script object is created and it's empty.- Parameters:
scope- scope of the optionsdefaultValues- default provider instance.
-
Options
protected Options(String scope, IsDefaultOptions defaultValues, NativeObject nativeObject)
Creates the object only with default provider and native object. This is used as the root element.- Parameters:
scope- scope of the optionsdefaultValues- default provider instance.nativeObject- native object to store properties.
-
-
Method Detail
-
getFont
public final Font getFont()
Returns the font element.- Specified by:
getFontin interfaceIsDefaultOptions- Returns:
- the font
-
getSpanGapHandler
public final SpanGapHandler getSpanGapHandler()
Description copied from interface:HasSpanGapsReturns a span gap handler instance to use in the default methods of this interface.- Specified by:
getSpanGapHandlerin interfaceHasSpanGaps- Returns:
- a span gap handler instance
-
getEventsOptionHandler
public final EventsOptionHandler getEventsOptionHandler()
Description copied from interface:HasEventsReturns a event handler handler instance to use in the default methods of this interface.- Specified by:
getEventsOptionHandlerin interfaceHasEvents- Returns:
- a event handler handler instance
-
getScope
public final String getScope()
Returns the scope of the options, which is the options are used for defaults, chart defaults or chart.- Specified by:
getScopein interfaceHasCallbackScope- Returns:
- the scope of the options
-
getAnimation
public Animation getAnimation()
Returns the animation element.- Specified by:
getAnimationin interfaceHasAnimationOptions- Specified by:
getAnimationin interfaceIsDefaultAnimationTransition- Returns:
- the animation
-
getAnimationContainer
public final AnimationContainer getAnimationContainer()
Description copied from interface:HasAnimationOptionsReturns an animation container instance to use in the default methods of this interface.- Specified by:
getAnimationContainerin interfaceHasAnimationOptions- Returns:
- an animation container instance
-
getLegend
public Legend getLegend()
Returns the legend element.- Specified by:
getLegendin interfaceIsDefaultOptions- Returns:
- the legend
-
getHover
public final Hover getHover()
Returns the hover element.- Specified by:
getHoverin interfaceIsDefaultOptions- Returns:
- the hover
-
getInteraction
public final Interaction getInteraction()
Returns the interaction element.- Specified by:
getInteractionin interfaceIsDefaultOptions- Returns:
- the interaction
-
getLayout
public final Layout getLayout()
Returns the layout element.- Specified by:
getLayoutin interfaceIsDefaultOptions- Returns:
- the layout
-
getDecimation
public final Decimation getDecimation()
Returns the decimation plugin element.- Specified by:
getDecimationin interfaceIsDefaultOptions- Returns:
- the decimation plugin element
-
getFiller
public final Filler getFiller()
Returns the filler plugin element.- Specified by:
getFillerin interfaceIsDefaultOptions- Returns:
- the filler plugin element
-
getElements
public final Elements getElements()
Returns the elements element.- Specified by:
getElementsin interfaceIsDefaultOptions- Returns:
- the elements
-
getTitle
public final Title getTitle()
Returns the title element.- Specified by:
getTitlein interfaceIsDefaultOptions- Returns:
- the title
-
getSubtitle
public final Subtitle getSubtitle()
Returns the title element.- Specified by:
getSubtitlein interfaceIsDefaultOptions- Returns:
- the title
-
getTooltips
public final Tooltips getTooltips()
Returns the tooltips element.- Specified by:
getTooltipsin interfaceIsDefaultOptions- Returns:
- the tooltips
-
getPlugins
public Plugins getPlugins()
Returns the plugins element.- Specified by:
getPluginsin interfaceIsDefaultOptions- Returns:
- the plugins
-
getDatasets
public Datasets getDatasets()
Returns the data sets element.- Specified by:
getDatasetsin interfaceIsDefaultOptions- Returns:
- the data sets element
-
getCharbaId
public String getCharbaId()
Returns the CHARBA id when the options are related to a chart instance.- Returns:
- the CHARBA id when the options are related to a chart instance otherwise
Undefined.STRING.
-
setLocale
public void setLocale(CLocale locale)
Sets the locale instance for internationalization.- Parameters:
locale- the locale instance
-
getLocale
public CLocale getLocale()
Returns the locale instance for internationalization.- Specified by:
getLocalein interfaceIsDefaultOptions- Returns:
- the locale instance
-
setResponsive
public void setResponsive(boolean responsive)
Sets the resizing of the chart canvas when its container does.- Parameters:
responsive- the resizing of the chart canvas when its container does.
-
isResponsive
public boolean isResponsive()
Returns the resizing of the chart canvas when its container does.- Specified by:
isResponsivein interfaceIsDefaultOptions- Returns:
- the resizing of the chart canvas when its container does.
-
setMaintainAspectRatio
public void setMaintainAspectRatio(boolean maintainAspectRatio)
Sets the maintaining of the original canvas aspect ratio (width / height) when resizing.- Parameters:
maintainAspectRatio- the maintaining of the original canvas aspect ratio (width / height) when resizing.
-
isMaintainAspectRatio
public boolean isMaintainAspectRatio()
Returns the maintaining of the original canvas aspect ratio (width / height) when resizing.- Specified by:
isMaintainAspectRatioin interfaceIsDefaultOptions- Returns:
- the maintaining of the original canvas aspect ratio (width / height) when resizing.
-
setAspectRatio
public void setAspectRatio(double ratio)
Canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas).
Note that this option is ignored if the height is explicitly defined either as attribute or via the style.- Parameters:
ratio- the aspect ratio.
-
getAspectRatio
public double getAspectRatio()
Canvas aspect ratio (i.e. width / height, a value of 1 representing a square canvas).
Note that this option is ignored if the height is explicitly defined either as attribute or via the style.- Specified by:
getAspectRatioin interfaceIsDefaultOptions- Returns:
- the aspect ratio.
-
setResizeDelay
public void setResizeDelay(int delay)
Sets the delay the resize update by give amount of milliseconds.
This can ease the resize process by debouncing update of the elements.- Parameters:
delay- the delay the resize update by give amount of milliseconds
-
getResizeDelay
public double getResizeDelay()
Returns the delay the resize update by give amount of milliseconds.
This can ease the resize process by debouncing update of the elements.- Specified by:
getResizeDelayin interfaceIsDefaultOptions- Returns:
- the delay the resize update by give amount of milliseconds
-
setDevicePixelRatio
public void setDevicePixelRatio(double ratio)
The chart's canvas will use a 1:1 pixel ratio, unless the physical display has a higher pixel ratio (e.g. Retina displays). Setting devicePixelRatio to a value other than 1 will force the canvas size to be scaled by that amount.- Parameters:
ratio- the pixel ratio.
-
getDevicePixelRatio
public double getDevicePixelRatio()
The chart's canvas will use a 1:1 pixel ratio, unless the physical display has a higher pixel ratio (e.g. Retina displays). Setting devicePixelRatio to a value other than 1 will force the canvas size to be scaled by that amount. Returns the pixel ratio.- Specified by:
getDevicePixelRatioin interfaceIsDefaultOptions- Returns:
- the pixel ratio.
-
isDrawOnAttach
public boolean isDrawOnAttach()
Returnstrueif the chart is configured to be drawn on the attach of DIV element, otherwisefalse.- Specified by:
isDrawOnAttachin interfaceIsDefaultOptions- Returns:
- the drawOnAttach
trueif the chart is configured to be drawn on the attach of DIV element, otherwisefalse.
-
setDrawOnAttach
public void setDrawOnAttach(boolean drawOnAttach)
Setstrueif the chart is configured to be draw on the attach of DIV element, otherwisefalse.- Parameters:
drawOnAttach- the drawOnAttach to set
-
isDestroyOnDetach
public boolean isDestroyOnDetach()
Returnstrueif the chart is configured to be destroyed on the detach from DIV element, otherwisefalse.- Specified by:
isDestroyOnDetachin interfaceIsDefaultOptions- Returns:
- the destroyOnDetach
trueif the chart is configured to be destroyed on the attach of DIV element, otherwisefalse.
-
setDestroyOnDetach
public void setDestroyOnDetach(boolean destroyOnDetach)
Setstrueif the chart is configured to be destroyed on the detach from DIV element, otherwisefalse.- Parameters:
destroyOnDetach- the destroyOnDetach to set
-
setColor
public void setColor(IsColor color)
Sets the default color to use in the chart, on all objects, if not override by the specific configuration.- Parameters:
color- color to use in the chart.
-
setColor
public void setColor(String color)
Sets the default color to use in the chart, on all objects, if not override by the specific configuration.- Parameters:
color- color to use in the chart.
-
getColorAsString
public String getColorAsString()
Returns the default color to use in the chart, on all objects, if not override by the specific configuration.- Specified by:
getColorAsStringin interfaceIsDefaultOptions- Returns:
- color to use in the chart.
-
getColor
public IsColor getColor()
Returns the default color to use in the chart, on all objects, if not override by the specific configuration.- Returns:
- color to use in the chart.
-
setBackgroundColor
public void setBackgroundColor(IsColor backgroundColor)
Sets the default background color to use in the chart, on all objects, if not override by the specific configuration.- Parameters:
backgroundColor- background color to use in the chart.
-
setBackgroundColor
public void setBackgroundColor(String backgroundColor)
Sets the default background color to use in the chart, on all objects, if not override by the specific configuration.- Parameters:
backgroundColor- background color to use in the chart.
-
getBackgroundColorAsString
public String getBackgroundColorAsString()
Returns the default background color to use in the chart, on all objects, if not override by the specific configuration.- Specified by:
getBackgroundColorAsStringin interfaceIsDefaultOptions- Returns:
- background color to use in the chart.
-
getBackgroundColor
public IsColor getBackgroundColor()
Returns the default background color to use in the chart, on all objects, if not override by the specific configuration.- Returns:
- background color to use in the chart.
-
setBorderColor
public void setBorderColor(IsColor borderColor)
Sets the default border color to use in the chart, on all objects, if not override by the specific configuration.- Parameters:
borderColor- border color to use in the chart.
-
setBorderColor
public void setBorderColor(String borderColor)
Sets the default border color to use in the chart, on all objects, if not override by the specific configuration.- Parameters:
borderColor- border color to use in the chart.
-
getBorderColorAsString
public String getBorderColorAsString()
Returns the default border color to use in the chart, on all objects, if not override by the specific configuration.- Specified by:
getBorderColorAsStringin interfaceIsDefaultOptions- Returns:
- border color to use in the chart.
-
getBorderColor
public IsColor getBorderColor()
Returns the default border color to use in the chart, on all objects, if not override by the specific configuration.- Returns:
- border color to use in the chart.
-
setShowLine
public void setShowLine(boolean showLine)
Iffalse, the lines between points are not drawn.- Parameters:
showLine- iffalse, the lines between points are not drawn.
-
isShowLine
public boolean isShowLine()
Iffalse, the lines between points are not drawn.- Specified by:
isShowLinein interfaceIsDefaultOptions- Returns:
- if
false, the lines between points are not drawn.
-
setSkipNull
public void setSkipNull(boolean skipNull)
Iftrue, null or undefined values will not be drawn.- Parameters:
skipNull- iftrue, null or undefined values will not be drawn
-
isSkipNull
public boolean isSkipNull()
Iftrue, null or undefined values will not be drawn.- Specified by:
isSkipNullin interfaceIsDefaultOptions- Returns:
- If
true, null or undefined values will not be drawn
-
setCutout
public void setCutout(double cutout)
Sets the portion of the chart that is cut out of the middle.
AsDouble, it is considered to be pixels.- Parameters:
cutout- the portion of the chart that is cut out of the middle.
AsDouble, it is considered to be pixels.
-
getCutout
public double getCutout()
Returns the portion of the chart that is cut out of the middle.
AsDouble, it is considered to be pixels.- Specified by:
getCutoutin interfaceIsDefaultOptions- Returns:
- the portion of the chart that is cut out of the middle.
AsDouble, it is considered to be pixels.
-
setCutoutPercentage
public void setCutoutPercentage(String cutout)
Sets the portion of the chart that is cut out of the middle.
AsStringand ending with '%', percentage of the chart radius.- Parameters:
cutout- the portion of the chart that is cut out of the middle.
AsStringand ending with '%', percentage of the chart radius.
-
getCutoutPercentage
public String getCutoutPercentage()
Returns the portion of the chart that is cut out of the middle.
AsStringand ending with '%', percentage of the chart radius.- Specified by:
getCutoutPercentagein interfaceIsDefaultOptions- Returns:
- the portion of the chart that is cut out of the middle.
AsStringand ending with '%', percentage of the chart radius.
-
setRadius
public void setRadius(double radius)
Sets the outer radius of the chart.
AsDouble, it is considered to be pixels.- Parameters:
radius- the outer radius of the chart.
AsDouble, it is considered to be pixels.
-
getRadius
public double getRadius()
Returns the outer radius of the chart.
AsDouble, it is considered to be pixels.- Specified by:
getRadiusin interfaceIsDefaultOptions- Returns:
- the outer radius of the chart.
AsDouble, it is considered to be pixels.
-
setRadiusPercentage
public void setRadiusPercentage(String radius)
Sets the outer radius of the chart.
AsStringand ending with '%', percentage of the maximum radius.- Parameters:
radius- the outer radius of the chart.
AsStringand ending with '%', percentage of the maximum radius.
-
getRadiusPercentage
public String getRadiusPercentage()
Returns the outer radius of the chart.
AsStringand ending with '%', percentage of the maximum radius.- Specified by:
getRadiusPercentagein interfaceIsDefaultOptions- Returns:
- the outer radius of the chart.
AsStringand ending with '%', percentage of the maximum radius.
-
setRotation
public void setRotation(double rotation)
Sets the starting angle to draw arcs from.- Parameters:
rotation- starting angle to draw arcs from.
-
getRotation
public double getRotation()
Returns the starting angle to draw arcs from.- Specified by:
getRotationin interfaceIsDefaultOptions- Returns:
- starting angle to draw arcs from.
-
setCircumference
public void setCircumference(double circumference)
Sets the sweep to allow arcs to cover.- Parameters:
circumference- the sweep to allow arcs to cover.
-
getCircumference
public double getCircumference()
Returns the sweep to allow arcs to cover.- Specified by:
getCircumferencein interfaceIsDefaultOptions- Returns:
- the sweep to allow arcs to cover.
-
setIndexAxis
public void setIndexAxis(IndexAxis indexAxis)
Sets the base axis for the dataset. UseIndexAxis.Yfor horizontal bar.- Parameters:
indexAxis- the base axis for the dataset
-
getIndexAxis
public IndexAxis getIndexAxis()
Returns the base axis for the dataset, only for bar options.- Specified by:
getIndexAxisin interfaceIsDefaultOptions- Returns:
- the base axis for the dataset, only for bar options
-
isSpanGaps
public boolean isSpanGaps()
Description copied from interface:IsDefaultOptionsIf false,Double.NaNdata causes a break in the line.- Specified by:
isSpanGapsin interfaceHasSpanGaps- Specified by:
isSpanGapsin interfaceIsDefaultOptions- Returns:
- If false,
Double.NaNdata causes a break in the line.
-
-