Class FigureSubscription

java.lang.Object
io.deephaven.web.client.api.widget.plot.FigureSubscription

public final class FigureSubscription extends Object
Represents the subscriptions that are needed to get data for the series in a figure. The equals and hashcode method are designed to only match the features which can change while still maintaining the current subscription - the actual "subscribed" series can change as long as they don't affect these other parameters.
  • Constructor Details

  • Method Details

    • replaceSeries

      public Set<JsSeries> replaceSeries(Set<JsSeries> replacements)
      Ensures that all of these series are present in this subscription, and returns the ones which were added, if any, so they can get a notification of their current data. Replacement series must match this subscription already - the only facet that will be checked is that the columns match.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • subscribe

      public void subscribe()
    • unsubscribe

      public void unsubscribe()
    • getSeries

      public Set<JsSeries> getSeries()