You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.component.charts.model.

Class ButtonOptions

    • Constructor Detail

      • ButtonOptions

        public ButtonOptions()
      • ButtonOptions

        public ButtonOptions​(Boolean enabled)
      • ButtonOptions

        public ButtonOptions​(String text)
    • Method Detail

      • setAlign

        public void setAlign​(HorizontalAlign align)

        Alignment for the buttons.

        Defaults to: right

      • setEnabled

        public void setEnabled​(Boolean enabled)

        Whether to enable buttons.

        Defaults to: true

      • setHeight

        public void setHeight​(Number height)

        Pixel height of the buttons.

        Defaults to: 20

      • setSymbolFill

        public void setSymbolFill​(Color symbolFill)

        Fill color for the symbol within the button.

        Defaults to: #666666

      • setSymbolSize

        public void setSymbolSize​(Number symbolSize)

        The pixel size of the symbol on the button.

        Defaults to: 14

      • setSymbolStroke

        public void setSymbolStroke​(Color symbolStroke)

        The color of the symbol's stroke or line.

        Defaults to: #666666

      • setSymbolStrokeWidth

        public void setSymbolStrokeWidth​(Number symbolStrokeWidth)

        The pixel stroke width of the symbol on the button.

        Defaults to: 1

      • setSymbolX

        public void setSymbolX​(Number symbolX)

        The x position of the center of the symbol inside the button.

        Defaults to: 12.5

      • setSymbolY

        public void setSymbolY​(Number symbolY)

        The y position of the center of the symbol inside the button.

        Defaults to: 10.5

      • setText

        public void setText​(String text)

        A text string to add to the individual button.

        Defaults to: null

      • setVerticalAlign

        public void setVerticalAlign​(VerticalAlign verticalAlign)

        The vertical alignment of the buttons. Can be one of "top", "middle" or "bottom".

        Defaults to: top

      • setWidth

        public void setWidth​(Number width)

        The pixel width of the button.

        Defaults to: 24

      • setY

        public void setY​(Number y)

        The vertical offset of the button's position relative to its verticalAlign. .

        Defaults to: 0