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.
Constructor and Description |
---|
ButtonOptions() |
ButtonOptions(Boolean enabled) |
ButtonOptions(String text) |
Modifier and Type | Method and Description |
---|---|
HorizontalAlign |
getAlign() |
Boolean |
getEnabled() |
Number |
getHeight() |
Color |
getSymbolFill() |
Number |
getSymbolSize() |
Color |
getSymbolStroke() |
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 |
setSymbolFill(Color symbolFill)
Fill color for the symbol within the button.
|
void |
setSymbolSize(Number symbolSize)
The pixel size of the symbol on the button.
|
void |
setSymbolStroke(Color symbolStroke)
The color of the symbol's stroke or line.
|
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 . |
public ButtonOptions()
public ButtonOptions(Boolean enabled)
public ButtonOptions(String text)
public HorizontalAlign getAlign()
setAlign(HorizontalAlign)
public void setAlign(HorizontalAlign align)
Defaults to: right
public Boolean getEnabled()
setEnabled(Boolean)
public void setEnabled(Boolean enabled)
Defaults to: true
public Number getHeight()
setHeight(Number)
public void setHeight(Number height)
Defaults to: 20
public Color getSymbolFill()
setSymbolFill(Color)
public void setSymbolFill(Color symbolFill)
Defaults to: #666666
public Number getSymbolSize()
setSymbolSize(Number)
public void setSymbolSize(Number symbolSize)
Defaults to: 14
public Color getSymbolStroke()
setSymbolStroke(Color)
public void setSymbolStroke(Color symbolStroke)
Defaults to: #666666
public Number getSymbolStrokeWidth()
setSymbolStrokeWidth(Number)
public void setSymbolStrokeWidth(Number symbolStrokeWidth)
Defaults to: 1
public Number getSymbolX()
setSymbolX(Number)
public void setSymbolX(Number symbolX)
Defaults to: 12.5
public Number getSymbolY()
setSymbolY(Number)
public void setSymbolY(Number symbolY)
Defaults to: 10.5
public String getText()
setText(String)
public void setText(String text)
Defaults to: null
public VerticalAlign getVerticalAlign()
setVerticalAlign(VerticalAlign)
public void setVerticalAlign(VerticalAlign verticalAlign)
Defaults to: top
public Number getWidth()
setWidth(Number)
public void setWidth(Number width)
Defaults to: 24
public Number getY()
setY(Number)
public void setY(Number y)
verticalAlign
. .
Defaults to: 0
Copyright © 2022. All rights reserved.