com.vaadin.flow.component.charts.model.
Class ButtonOptions
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.ButtonOptions
-
All Implemented Interfaces:
@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 ButtonOptions extends AbstractConfigurationObject
A collection of options for buttons appearing in the exporting module.
In styled mode, the buttons are styled with the
.highcharts-contextbutton
and.highcharts-button-symbol
class.See Also:
-
-
Constructor Summary
Constructors Constructor and Description ButtonOptions()
ButtonOptions(Boolean enabled)
ButtonOptions(String text)
-
Method Summary
All Methods Modifier and Type Method and Description HorizontalAlign
getAlign()
Boolean
getEnabled()
Number
getHeight()
Number
getSymbolSize()
Number
getSymbolStrokeWidth()
Number
getSymbolX()
Number
getSymbolY()
String
getText()
VerticalAlign
getVerticalAlign()
Number
getWidth()
Number
getY()
void
setAlign(HorizontalAlign align)
Alignment for the buttons.
void
setEnabled(Boolean enabled)
Whether to enable buttons.
void
setHeight(Number height)
Pixel height of the buttons.
void
setSymbolSize(Number symbolSize)
The pixel size of the symbol on the button.
void
setSymbolStrokeWidth(Number symbolStrokeWidth)
The pixel stroke width of the symbol on the button.
void
setSymbolX(Number symbolX)
The x position of the center of the symbol inside the button.
void
setSymbolY(Number symbolY)
The y position of the center of the symbol inside the button.
void
setText(String text)
A text string to add to the individual button.
void
setVerticalAlign(VerticalAlign verticalAlign)
The vertical alignment of the buttons.
void
setWidth(Number width)
The pixel width of the button.
void
setY(Number y)
The vertical offset of the button's position relative to its
verticalAlign
.
-
-
-
Constructor Detail
-
ButtonOptions
public ButtonOptions()
-
ButtonOptions
public ButtonOptions(Boolean enabled)
-
ButtonOptions
public ButtonOptions(String text)
-
-
Method Detail
-
getAlign
public HorizontalAlign getAlign()
See Also:
-
setAlign
public void setAlign(HorizontalAlign align)
Alignment for the buttons.
Defaults to: right
-
getEnabled
public Boolean getEnabled()
See Also:
-
setEnabled
public void setEnabled(Boolean enabled)
Whether to enable buttons.
Defaults to: true
-
getHeight
public Number getHeight()
See Also:
-
setHeight
public void setHeight(Number height)
Pixel height of the buttons.
Defaults to: 20
-
getSymbolSize
public Number getSymbolSize()
See Also:
-
setSymbolSize
public void setSymbolSize(Number symbolSize)
The pixel size of the symbol on the button.
Defaults to: 14
-
getSymbolStrokeWidth
public Number getSymbolStrokeWidth()
See Also:
-
setSymbolStrokeWidth
public void setSymbolStrokeWidth(Number symbolStrokeWidth)
The pixel stroke width of the symbol on the button.
Defaults to: 1
-
getSymbolX
public Number getSymbolX()
See Also:
-
setSymbolX
public void setSymbolX(Number symbolX)
The x position of the center of the symbol inside the button.
Defaults to: 12.5
-
getSymbolY
public Number getSymbolY()
See Also:
-
setSymbolY
public void setSymbolY(Number symbolY)
The y position of the center of the symbol inside the button.
Defaults to: 10.5
-
getText
public String getText()
See Also:
-
setText
public void setText(String text)
A text string to add to the individual button.
Defaults to: null
-
getVerticalAlign
public VerticalAlign getVerticalAlign()
See Also:
-
setVerticalAlign
public void setVerticalAlign(VerticalAlign verticalAlign)
The vertical alignment of the buttons. Can be one of "top", "middle" or "bottom".
Defaults to: top
-
getWidth
public Number getWidth()
See Also:
-
setWidth
public void setWidth(Number width)
The pixel width of the button.
Defaults to: 24
-
getY
public Number getY()
See Also:
-
setY
public void setY(Number y)
The vertical offset of the button's position relative to its
verticalAlign
. .Defaults to: 0
-
-