All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vaadin.flow.component.charts.model.Scrollbar Maven / Gradle / Ivy

There is a newer version: 24.4.12
Show newest version
package com.vaadin.flow.component.charts.model;

/*-
 * #%L
 * Vaadin Charts for Flow
 * %%
 * Copyright (C) 2014 - 2018 Vaadin Ltd
 * %%
 * This program is available under Commercial Vaadin Add-On License 3.0
 * (CVALv3).
 * 
 * See the file licensing.txt distributed with this software for more
 * information about licensing.
 * 
 * You should have received a copy of the CVALv3 along with this program.
 * If not, see .
 * #L%
 */

import javax.annotation.Generated;
import com.vaadin.flow.component.charts.model.style.Color;

/**
 * 

* 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. *

*/ @Generated(value = "This class is generated and shouldn't be modified", comments = "Incorrect and missing API should be reported to https://github.com/vaadin/vaadin-charts-flow/issues/new") public class Scrollbar extends AbstractConfigurationObject { private Number barBorderRadius; private Number barBorderWidth; private Number buttonBorderRadius; private Number buttonBorderWidth; private Boolean enabled; private Boolean liveRedraw; private Number margin; private Number minWidth; private Color rifleColor; private Boolean showFull; private Number size; private Color trackBackgroundColor; private Color trackBorderColor; private Number trackBorderRadius; private Number zIndex; private Number height; public Scrollbar() { } /** * @see #setBarBorderRadius(Number) */ public Number getBarBorderRadius() { return barBorderRadius; } /** * The border rounding radius of the bar. *

* Defaults to: 0 */ public void setBarBorderRadius(Number barBorderRadius) { this.barBorderRadius = barBorderRadius; } /** * @see #setBarBorderWidth(Number) */ public Number getBarBorderWidth() { return barBorderWidth; } /** * The width of the bar's border. *

* Defaults to: 1 */ public void setBarBorderWidth(Number barBorderWidth) { this.barBorderWidth = barBorderWidth; } /** * @see #setButtonBorderRadius(Number) */ public Number getButtonBorderRadius() { return buttonBorderRadius; } /** * The corner radius of the scrollbar buttons. *

* Defaults to: 0 */ public void setButtonBorderRadius(Number buttonBorderRadius) { this.buttonBorderRadius = buttonBorderRadius; } /** * @see #setButtonBorderWidth(Number) */ public Number getButtonBorderWidth() { return buttonBorderWidth; } /** * The border width of the scrollbar buttons. *

* Defaults to: 1 */ public void setButtonBorderWidth(Number buttonBorderWidth) { this.buttonBorderWidth = buttonBorderWidth; } public Scrollbar(Boolean enabled) { this.enabled = enabled; } /** * @see #setEnabled(Boolean) */ public Boolean getEnabled() { return enabled; } /** * Enable the scrollbar on the Y axis. *

* Defaults to: false */ public void setEnabled(Boolean enabled) { this.enabled = enabled; } /** * @see #setLiveRedraw(Boolean) */ public Boolean getLiveRedraw() { return liveRedraw; } /** * Whether to redraw the main chart as the scrollbar or the navigator zoomed * window is moved. Defaults to true for modern browsers and * false for legacy IE browsers as well as mobile devices. */ public void setLiveRedraw(Boolean liveRedraw) { this.liveRedraw = liveRedraw; } /** * @see #setMargin(Number) */ public Number getMargin() { return margin; } /** * Pixel margin between the scrollbar and the axis elements. *

* Defaults to: 10 */ public void setMargin(Number margin) { this.margin = margin; } /** * @see #setMinWidth(Number) */ public Number getMinWidth() { return minWidth; } /** * The minimum width of the scrollbar. *

* Defaults to: 6 */ public void setMinWidth(Number minWidth) { this.minWidth = minWidth; } /** * @see #setRifleColor(Color) */ public Color getRifleColor() { return rifleColor; } /** * The color of the small rifles in the middle of the scrollbar. *

* Defaults to: #333333 */ public void setRifleColor(Color rifleColor) { this.rifleColor = rifleColor; } /** * @see #setShowFull(Boolean) */ public Boolean getShowFull() { return showFull; } /** * Whether to show the scrollbar when it is fully zoomed out at max range. * Setting it to false on the Y axis makes the scrollbar stay * hidden until the user zooms in, like common in browsers. *

* Defaults to: true */ public void setShowFull(Boolean showFull) { this.showFull = showFull; } /** * @see #setSize(Number) */ public Number getSize() { return size; } /** * The width of a vertical scrollbar or height of a horizontal scrollbar. * Defaults to 20 on touch devices. *

* Defaults to: 14 */ public void setSize(Number size) { this.size = size; } /** * @see #setTrackBackgroundColor(Color) */ public Color getTrackBackgroundColor() { return trackBackgroundColor; } /** * The color of the track background. *

* Defaults to: #f2f2f2 */ public void setTrackBackgroundColor(Color trackBackgroundColor) { this.trackBackgroundColor = trackBackgroundColor; } /** * @see #setTrackBorderColor(Color) */ public Color getTrackBorderColor() { return trackBorderColor; } /** * The color of the border of the scrollbar track. *

* Defaults to: #f2f2f2 */ public void setTrackBorderColor(Color trackBorderColor) { this.trackBorderColor = trackBorderColor; } /** * @see #setTrackBorderRadius(Number) */ public Number getTrackBorderRadius() { return trackBorderRadius; } /** * The corner radius of the border of the scrollbar track. *

* Defaults to: 0 */ public void setTrackBorderRadius(Number trackBorderRadius) { this.trackBorderRadius = trackBorderRadius; } /** * @see #setZIndex(Number) */ public Number getZIndex() { return zIndex; } /** * Z index of the scrollbar elements. *

* Defaults to: 3 */ public void setZIndex(Number zIndex) { this.zIndex = zIndex; } /** * @see #setHeight(Number) */ public Number getHeight() { return height; } /** * 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. */ public void setHeight(Number height) { this.height = height; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy