Class SankeyElementOptions


  • public final class SankeyElementOptions
    extends ChartElementOptions
    Maps the out-of-the-box CHART.JS element options used to represents flows on the charts.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getColorMode

        public ColorMode getColorMode()
        Returns the color mode between sankey elements.
        Returns:
        the color mode between sankey elements
      • setColorMode

        public void setColorMode​(ColorMode colorMode)
        Sets the color mode between sankey elements.
        Parameters:
        colorMode - the color mode between sankey elements
      • getColorFromAsString

        public String getColorFromAsString()
        Returns the starting color of the flow between sankey elements.
        Returns:
        the starting color of the flow between sankey elements
      • getColorFrom

        public IsColor getColorFrom()
        Returns the starting color of the flow between sankey elements.
        Returns:
        the starting color of the flow between sankey elements
      • setColorFrom

        public void setColorFrom​(IsColor color)
        Sets the starting color of the flow between sankey elements.
        Parameters:
        color - the starting color of the flow between sankey elements
      • setColorFrom

        public void setColorFrom​(String color)
        Sets the starting color of the flow between sankey elements.
        Parameters:
        color - the starting color of the flow between sankey elements
      • getColorToAsString

        public String getColorToAsString()
        Returns the ending color of the flow between sankey elements.
        Returns:
        the ending color of the flow between sankey elements
      • getColorTo

        public IsColor getColorTo()
        Returns the ending color of the flow between sankey elements.
        Returns:
        the ending color of the flow between sankey elements
      • setColorTo

        public void setColorTo​(IsColor color)
        Sets the ending color of the flow between sankey elements.
        Parameters:
        color - the ending color of the flow between sankey elements
      • setColorTo

        public void setColorTo​(String color)
        Sets the ending color of the flow between sankey elements.
        Parameters:
        color - the ending color of the flow between sankey elements