Class BarBoxConfig

java.lang.Object
org.jjazz.cl_editor.barbox.api.BarBoxConfig

public class BarBoxConfig extends Object
A BarBoxConfig defines the BarRenderer types supported by a BarBox and the active ones.

This is an immutable class.

  • Constructor Details

    • BarBoxConfig

      public BarBoxConfig(String... brTypes)
      Create a config with all BarRenderer types active by default.
      Parameters:
      brTypes - Duplicate strings are ignored. No blank string allowed.
      See Also:
      • BarRendererFactory
  • Method Details

    • getUpdatedConfig

      public BarBoxConfig getUpdatedConfig(String... activeBrTypes)
      Return a new instance of this BarBoxConfig with only the specified BarRenderer types active.
      Parameters:
      activeBrTypes - Duplicate strings are ignored
      Returns:
    • getSupportedBarRenderers

      public List<String> getSupportedBarRenderers()
    • getActiveBarRenderers

      public List<String> getActiveBarRenderers()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hasSameSupportedBarRenderers

      public boolean hasSameSupportedBarRenderers(BarBoxConfig bbc)
      Return true if bbc has the same supported BarRenderers (order is not taken into account).
      Parameters:
      bbc -
      Returns:
    • hasSameActiveBarRenderers

      public boolean hasSameActiveBarRenderers(BarBoxConfig bbc)
      Return true if bbc has the same active BarRenderers (order is not taken into account).
      Parameters:
      bbc -
      Returns:
    • hashCode

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object