public class Scrollbar extends AbstractConfigurationObject
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
.
Modifier and Type | Method and Description |
---|---|
Number |
getBarBorderRadius() |
Number |
getBarBorderWidth() |
Number |
getButtonBorderRadius() |
Number |
getButtonBorderWidth() |
Boolean |
getEnabled() |
Number |
getHeight() |
Boolean |
getLiveRedraw() |
Number |
getMargin() |
Number |
getMinWidth() |
Color |
getRifleColor() |
Boolean |
getShowFull() |
Number |
getSize() |
Color |
getTrackBackgroundColor() |
Color |
getTrackBorderColor() |
Number |
getTrackBorderRadius() |
Number |
getZIndex() |
void |
setBarBorderRadius(Number barBorderRadius)
The border rounding radius of the bar.
|
void |
setBarBorderWidth(Number barBorderWidth)
The width of the bar's border.
|
void |
setButtonBorderRadius(Number buttonBorderRadius)
The corner radius of the scrollbar buttons.
|
void |
setButtonBorderWidth(Number buttonBorderWidth)
The border width of the scrollbar buttons.
|
void |
setEnabled(Boolean enabled)
Enable the scrollbar on the Y axis.
|
void |
setHeight(Number height)
The height of the scrollbar.
|
void |
setLiveRedraw(Boolean liveRedraw)
Whether to redraw the main chart as the scrollbar or the navigator zoomed
window is moved.
|
void |
setMargin(Number margin)
Pixel margin between the scrollbar and the axis elements.
|
void |
setMinWidth(Number minWidth)
The minimum width of the scrollbar.
|
void |
setRifleColor(Color rifleColor)
The color of the small rifles in the middle of the scrollbar.
|
void |
setShowFull(Boolean showFull)
Whether to show the scrollbar when it is fully zoomed out at max range.
|
void |
setSize(Number size)
The width of a vertical scrollbar or height of a horizontal scrollbar.
|
void |
setTrackBackgroundColor(Color trackBackgroundColor)
The color of the track background.
|
void |
setTrackBorderColor(Color trackBorderColor)
The color of the border of the scrollbar track.
|
void |
setTrackBorderRadius(Number trackBorderRadius)
The corner radius of the border of the scrollbar track.
|
void |
setZIndex(Number zIndex)
Z index of the scrollbar elements.
|
public Scrollbar()
public Scrollbar(Boolean enabled)
public Number getBarBorderRadius()
setBarBorderRadius(Number)
public void setBarBorderRadius(Number barBorderRadius)
Defaults to: 0
public Number getBarBorderWidth()
setBarBorderWidth(Number)
public void setBarBorderWidth(Number barBorderWidth)
Defaults to: 1
public Number getButtonBorderRadius()
setButtonBorderRadius(Number)
public void setButtonBorderRadius(Number buttonBorderRadius)
Defaults to: 0
public Number getButtonBorderWidth()
setButtonBorderWidth(Number)
public void setButtonBorderWidth(Number buttonBorderWidth)
Defaults to: 1
public Boolean getEnabled()
setEnabled(Boolean)
public void setEnabled(Boolean enabled)
Defaults to: false
public Boolean getLiveRedraw()
setLiveRedraw(Boolean)
public void setLiveRedraw(Boolean liveRedraw)
true
for modern browsers and
false
for legacy IE browsers as well as mobile devices.public Number getMargin()
setMargin(Number)
public void setMargin(Number margin)
Defaults to: 10
public Number getMinWidth()
setMinWidth(Number)
public void setMinWidth(Number minWidth)
Defaults to: 6
public Color getRifleColor()
setRifleColor(Color)
public void setRifleColor(Color rifleColor)
Defaults to: #333333
public Boolean getShowFull()
setShowFull(Boolean)
public void setShowFull(Boolean showFull)
false
on the Y axis makes the scrollbar stay
hidden until the user zooms in, like common in browsers.
Defaults to: true
public Number getSize()
setSize(Number)
public void setSize(Number size)
Defaults to: 14
public Color getTrackBackgroundColor()
setTrackBackgroundColor(Color)
public void setTrackBackgroundColor(Color trackBackgroundColor)
Defaults to: #f2f2f2
public Color getTrackBorderColor()
setTrackBorderColor(Color)
public void setTrackBorderColor(Color trackBorderColor)
Defaults to: #f2f2f2
public Number getTrackBorderRadius()
setTrackBorderRadius(Number)
public void setTrackBorderRadius(Number trackBorderRadius)
Defaults to: 0
public Number getZIndex()
setZIndex(Number)
public void setZIndex(Number zIndex)
Defaults to: 3
public Number getHeight()
setHeight(Number)
public void setHeight(Number height)
Copyright © 2023. All rights reserved.