Class ButtonOptions
- All Implemented Interfaces:
Serializable
A collection of options for buttons appearing in the exporting module.
The examples below are using basic Highcharts, but the syntax is exactly the same for Highmaps.
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for ButtonOptions.ButtonOptions(Boolean enabled) Constructor for ButtonOptions.ButtonOptions(String text) Constructor for ButtonOptions. -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()Getter for the fieldalign.Getter for the fieldalignTo.Getter for the fieldenabled.Getter for the fieldheight.getStyle()Getter for the fieldstyle.Getter for the fieldsymbolFill.Getter for the fieldsymbolSize.Getter for the fieldsymbolStroke.Getter for the fieldsymbolStrokeWidth.Getter for the fieldsymbolX.Getter for the fieldsymbolY.getText()Getter for the fieldtext.Getter for the fieldverticalAlign.getWidth()Getter for the fieldwidth.getX()Getter for the fieldx.getY()Getter for the fieldy.voidsetAlign(HorizontalAlign align) Alignment for the buttons.voidsetAlignTo(String alignTo) What box to align the buttons to.voidsetEnabled(Boolean enabled) Whether to enable buttons.voidPixel height of the buttons.voidText styles for the map navigation buttons.voidsetSymbolFill(Color symbolFill) Fill color for the symbol within the button.voidsetSymbolSize(Number symbolSize) The pixel size of the symbol on the button.voidsetSymbolStroke(Color symbolStroke) The color of the symbol's stroke or line.voidsetSymbolStrokeWidth(Number symbolStrokeWidth) The pixel stroke width of the symbol on the button.voidsetSymbolX(Number symbolX) The x position of the center of the symbol inside the button.voidsetSymbolY(Number symbolY) The y position of the center of the symbol inside the button.voidA text string to add to the individual button.voidsetVerticalAlign(VerticalAlign verticalAlign) The vertical alignment of the buttons.voidThe pixel width of the button.voidThe X offset of the buttons relative to itsalignsetting.voidThe vertical offset of the button's position relative to itsverticalAlign. .
-
Constructor Details
-
Method Details
-
getAlign
Getter for the field
align.- Returns:
- a
HorizontalAlignobject. - See Also:
-
setAlign
Alignment for the buttons.Defaults to: right
- Parameters:
align- aHorizontalAlignobject.
-
getEnabled
Getter for the field
enabled.- Returns:
- a
Booleanobject. - See Also:
-
setEnabled
Whether to enable buttons.Defaults to: true
- Parameters:
enabled- aBooleanobject.
-
getHeight
Getter for the field
height.- Returns:
- a
Numberobject. - See Also:
-
setHeight
Pixel height of the buttons.Defaults to: 20
- Parameters:
height- aNumberobject.
-
getSymbolFill
Getter for the field
symbolFill.- Returns:
- a
Colorobject. - See Also:
-
setSymbolFill
Fill color for the symbol within the button.Defaults to: #E0E0E0
- Parameters:
symbolFill- aColorobject.
-
getSymbolSize
Getter for the field
symbolSize.- Returns:
- a
Numberobject. - See Also:
-
setSymbolSize
The pixel size of the symbol on the button.Defaults to: 14
- Parameters:
symbolSize- aNumberobject.
-
getSymbolStroke
Getter for the field
symbolStroke.- Returns:
- a
Colorobject. - See Also:
-
setSymbolStroke
The color of the symbol's stroke or line.Defaults to: #666
- Parameters:
symbolStroke- aColorobject.
-
getSymbolStrokeWidth
Getter for the field
symbolStrokeWidth.- Returns:
- a
Numberobject. - See Also:
-
setSymbolStrokeWidth
The pixel stroke width of the symbol on the button.Defaults to: 1
- Parameters:
symbolStrokeWidth- aNumberobject.
-
getSymbolX
Getter for the field
symbolX.- Returns:
- a
Numberobject. - See Also:
-
setSymbolX
The x position of the center of the symbol inside the button.Defaults to: 12.5
- Parameters:
symbolX- aNumberobject.
-
getSymbolY
Getter for the field
symbolY.- Returns:
- a
Numberobject. - See Also:
-
setSymbolY
The y position of the center of the symbol inside the button.Defaults to: 10.5
- Parameters:
symbolY- aNumberobject.
-
getText
Getter for the field
text.- Returns:
- a
Stringobject. - See Also:
-
setText
A text string to add to the individual button.Defaults to: null
- Parameters:
text- aStringobject.
-
getVerticalAlign
Getter for the field
verticalAlign.- Returns:
- a
VerticalAlignobject. - See Also:
-
setVerticalAlign
The vertical alignment of the buttons. Can be one of "top", "middle" or "bottom".Defaults to: top
- Parameters:
verticalAlign- aVerticalAlignobject.
-
getWidth
Getter for the field
width.- Returns:
- a
Numberobject. - See Also:
-
setWidth
The pixel width of the button.Defaults to: 24
- Parameters:
width- aNumberobject.
-
getY
Getter for the field
y.- Returns:
- a
Numberobject. - See Also:
-
setY
The vertical offset of the button's position relative to itsverticalAlign. .Defaults to: 0
- Parameters:
y- aNumberobject.
-
getAlignTo
Getter for the field
alignTo.- Returns:
- a
Stringobject. - See Also:
-
setAlignTo
What box to align the buttons to. Possible values areplotBoxandspacingBox.Defaults to: plotBox
- Parameters:
alignTo- aStringobject.
-
getStyle
Getter for the field
style.- Returns:
- a
Styleobject. - See Also:
-
setStyle
Text styles for the map navigation buttons. Defaults to{ fontSize: '15px', fontWeight: 'bold', textAlign: 'center' }- Parameters:
style- aStyleobject.
-
getX
Getter for the field
x.- Returns:
- a
Numberobject. - See Also:
-
setX
The X offset of the buttons relative to itsalignsetting.Defaults to: 0
- Parameters:
x- aNumberobject.
-