Class Scrollbar
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.Scrollbar
- All Implemented Interfaces:
Serializable
An optional scrollbar to display on the Y axis in response to limiting the minimum an maximum of the axis values.
In
styled mode, all the presentational options for the scrollbar are
replaced by the classes .highcharts-scrollbar-thumb,
.highcharts-scrollbar-arrow,
.highcharts-scrollbar-button,
.highcharts-scrollbar-rifles and
.highcharts-scrollbar-track.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSize()voidsetBarBackgroundColor(Color barBackgroundColor) The background color of the scrollbar itself.voidsetBarBorderColor(Color barBorderColor) The color of the scrollbar's border.voidsetBarBorderRadius(Number barBorderRadius) The border rounding radius of the bar.voidsetBarBorderWidth(Number barBorderWidth) The width of the bar's border.voidsetButtonArrowColor(Color buttonArrowColor) The color of the small arrow inside the scrollbar buttons.voidsetButtonBackgroundColor(Color buttonBackgroundColor) The color of scrollbar buttons.voidsetButtonBorderColor(Color buttonBorderColor) The color of the border of the scrollbar buttons.voidsetButtonBorderRadius(Number buttonBorderRadius) The corner radius of the scrollbar buttons.voidsetButtonBorderWidth(Number buttonBorderWidth) The border width of the scrollbar buttons.voidsetEnabled(Boolean enabled) Enable the scrollbar on the Y axis.voidThe height of the scrollbar.voidsetLiveRedraw(Boolean liveRedraw) Whether to redraw the main chart as the scrollbar or the navigator zoomed window is moved.voidPixel margin between the scrollbar and the axis elements.voidsetMinWidth(Number minWidth) The minimum width of the scrollbar.voidsetRifleColor(Color rifleColor) The color of the small rifles in the middle of the scrollbar.voidsetShowFull(Boolean showFull) Whether to show the scrollbar when it is fully zoomed out at max range.voidThe width of a vertical scrollbar or height of a horizontal scrollbar.voidsetTrackBackgroundColor(Color trackBackgroundColor) The color of the track background.voidsetTrackBorderColor(Color trackBorderColor) The color of the border of the scrollbar track.voidsetTrackBorderRadius(Number trackBorderRadius) The corner radius of the border of the scrollbar track.voidsetTrackBorderWidth(Number trackBorderWidth) The width of the border of the scrollbar track.voidZ index of the scrollbar elements.
-
Constructor Details
-
Scrollbar
public Scrollbar() -
Scrollbar
-
-
Method Details
-
getBarBackgroundColor
- See Also:
-
setBarBackgroundColor
The background color of the scrollbar itself.Defaults to: #cccccc
-
getBarBorderColor
- See Also:
-
setBarBorderColor
The color of the scrollbar's border.Defaults to: #cccccc
-
getBarBorderRadius
- See Also:
-
setBarBorderRadius
The border rounding radius of the bar.Defaults to: 0
-
getBarBorderWidth
- See Also:
-
setBarBorderWidth
The width of the bar's border.Defaults to: 1
-
getButtonArrowColor
- See Also:
-
setButtonArrowColor
The color of the small arrow inside the scrollbar buttons.Defaults to: #333333
-
getButtonBackgroundColor
- See Also:
-
setButtonBackgroundColor
The color of scrollbar buttons.Defaults to: #e6e6e6
-
getButtonBorderColor
- See Also:
-
setButtonBorderColor
The color of the border of the scrollbar buttons.Defaults to: #cccccc
-
getButtonBorderRadius
- See Also:
-
setButtonBorderRadius
The corner radius of the scrollbar buttons.Defaults to: 0
-
getButtonBorderWidth
- See Also:
-
setButtonBorderWidth
The border width of the scrollbar buttons.Defaults to: 1
-
getEnabled
- See Also:
-
setEnabled
Enable the scrollbar on the Y axis.Defaults to: false
-
getLiveRedraw
- See Also:
-
setLiveRedraw
Whether to redraw the main chart as the scrollbar or the navigator zoomed window is moved. Defaults totruefor modern browsers andfalsefor legacy IE browsers as well as mobile devices. -
getMargin
- See Also:
-
setMargin
Pixel margin between the scrollbar and the axis elements.Defaults to: 10
-
getMinWidth
- See Also:
-
setMinWidth
The minimum width of the scrollbar.Defaults to: 6
-
getRifleColor
- See Also:
-
setRifleColor
The color of the small rifles in the middle of the scrollbar.Defaults to: #333333
-
getShowFull
- See Also:
-
setShowFull
Whether to show the scrollbar when it is fully zoomed out at max range. Setting it tofalseon the Y axis makes the scrollbar stay hidden until the user zooms in, like common in browsers.Defaults to: true
-
getSize
- See Also:
-
setSize
The width of a vertical scrollbar or height of a horizontal scrollbar. Defaults to 20 on touch devices.Defaults to: 14
-
getTrackBackgroundColor
- See Also:
-
setTrackBackgroundColor
The color of the track background.Defaults to: #f2f2f2
-
getTrackBorderColor
- See Also:
-
setTrackBorderColor
The color of the border of the scrollbar track.Defaults to: #f2f2f2
-
getTrackBorderRadius
- See Also:
-
setTrackBorderRadius
The corner radius of the border of the scrollbar track.Defaults to: 0
-
getZIndex
- See Also:
-
setZIndex
Z index of the scrollbar elements.Defaults to: 3
-
getHeight
- See Also:
-
setHeight
The height of the scrollbar. The height also applies to the width of the scroll arrows so that they are always squares. Defaults to 20 for touch devices and 14 for mouse devices. -
getTrackBorderWidth
- See Also:
-
setTrackBorderWidth
The width of the border of the scrollbar track. Defaults to 1.
-