Enum Class VisualSet.UpdatePolicy

java.lang.Object
java.lang.Enum<VisualSet.UpdatePolicy>
com.amalgamasimulation.charts.visualsets.VisualSet.UpdatePolicy
All Implemented Interfaces:
Serializable, Comparable<VisualSet.UpdatePolicy>, Constable
Enclosing class:
VisualSet<T>

public static enum VisualSet.UpdatePolicy extends Enum<VisualSet.UpdatePolicy>
Enumeration that determines a policy of how the visual set is updated in response to an update of underlying collection of visual elements corresponding data elements.
Author:
Aleksey Kirillov
  • Enum Constant Details

    • DYNAMIC

      public static final VisualSet.UpdatePolicy DYNAMIC
      Update visual elements for all data elements every time the chart is being redrawn
    • APPEND_ONLY

      public static final VisualSet.UpdatePolicy APPEND_ONLY
      Update visual elements only for data elements that have been appended after the last update
    • MANUAL

      public static final VisualSet.UpdatePolicy MANUAL
      Do not update the visual elements until explicitly asked to update by calling VisualSet.update() method
  • Method Details

    • values

      public static VisualSet.UpdatePolicy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static VisualSet.UpdatePolicy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null