Class SankeyDataPoint


  • public final class SankeyDataPoint
    extends AbstractDataPoint
    Maps the data passed to a sankey dataset.
    Author:
    Andrea "Stock" Stocchero
    • Constructor Detail

      • SankeyDataPoint

        public SankeyDataPoint()
        Creates the object with an empty native object.
      • SankeyDataPoint

        public SankeyDataPoint​(Key from,
                               Key to,
                               double flow)
        Creates the object with the passed point values.
        Parameters:
        from - from value of data point
        to - to value of data point
        flow - value of the data point
      • SankeyDataPoint

        public SankeyDataPoint​(String from,
                               Key to,
                               double flow)
        Creates the object with the passed point values.
        Parameters:
        from - from value of data point
        to - to value of data point
        flow - value of the data point
      • SankeyDataPoint

        public SankeyDataPoint​(Key from,
                               String to,
                               double flow)
        Creates the object with the passed point values.
        Parameters:
        from - from value of data point
        to - to value of data point
        flow - value of the data point
      • SankeyDataPoint

        public SankeyDataPoint​(String from,
                               String to,
                               double flow)
        Creates the object with the passed point values.
        Parameters:
        from - from value of data point
        to - to value of data point
        flow - value of the data point
    • Method Detail

      • setFlow

        public void setFlow​(double flow)
        Sets flow value.
        Parameters:
        flow - flow value.
      • getFlow

        public double getFlow()
        Returns flow value.
        Returns:
        flow value.
      • setFrom

        public void setFrom​(String from)
        Sets from value as string.
        Parameters:
        from - from value as string
      • setFrom

        public void setFrom​(Key from)
        Sets from value as key.
        Parameters:
        from - from value as key
      • getFrom

        public String getFrom()
        Returns from value as string.
        Returns:
        from value as string or Undefined.STRING if is not set
      • getFromAsKey

        public Key getFromAsKey()
        Returns from value as Key.
        Returns:
        from value as Key or null if is not set
      • setTo

        public void setTo​(String to)
        Sets to value as string.
        Parameters:
        to - to value as string
      • setTo

        public void setTo​(Key to)
        Sets to value as key.
        Parameters:
        to - to value as key
      • getTo

        public String getTo()
        Returns to value as string.
        Returns:
        to value as string or Undefined.STRING if is not set
      • getToAsKey

        public Key getToAsKey()
        Returns to value as Key.
        Returns:
        to value as Key or null if is not set