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
      • getHoverColorFromAsString

        public String getHoverColorFromAsString()
        Returns the starting color of the flow between sankey elements, when hovered.
        Returns:
        the starting color of the flow between sankey elements, when hovered
      • getHoverColorFrom

        public IsColor getHoverColorFrom()
        Returns the starting color of the flow between sankey elements, when hovered.
        Returns:
        the starting color of the flow between sankey elements, when hovered
      • setHoverColorFrom

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

        public void setHoverColorFrom​(String color)
        Sets the starting color of the flow between sankey elements, when hovered.
        Parameters:
        color - the starting color of the flow between sankey elements, when hovered
      • getHoverColorToAsString

        public String getHoverColorToAsString()
        Returns the ending color of the flow between sankey elements, when hovered.
        Returns:
        the ending color of the flow between sankey elements, when hovered
      • getHoverColorTo

        public IsColor getHoverColorTo()
        Returns the ending color of the flow between sankey elements, when hovered.
        Returns:
        the ending color of the flow between sankey elements, when hovered
      • setHoverColorTo

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

        public void setHoverColorTo​(String color)
        Sets the ending color of the flow between sankey elements, when hovered.
        Parameters:
        color - the ending color of the flow between sankey elements, when hovered