Class BoundedParameter

All Implemented Interfaces:
LXPath, LXNormalizedParameter, LXParameter
Direct Known Subclasses:
CompoundParameter

public class BoundedParameter extends LXListenableNormalizedParameter
Simple parameter class with a double value.
  • Field Details

  • Constructor Details

    • BoundedParameter

      public BoundedParameter(String label)
      Labeled parameter with value of 0 and range of 0-1
      Parameters:
      label - Label for parameter
    • BoundedParameter

      public BoundedParameter(String label, double value)
      A bounded parameter with label and value, initial value of 0 and a range of 0-1
      Parameters:
      label - Label
      value - value
    • BoundedParameter

      public BoundedParameter(String label, double value, double max)
      A bounded parameter with an initial value, and range from 0 to max
      Parameters:
      label - Label
      value - value
      max - Maximum value
    • BoundedParameter

      public BoundedParameter(String label, double value, double v0, double v1)
      A bounded parameter with initial value and range from v0 to v1. Note that it is not necessary for v0 to be less than v1, if it is desired for the knob's value to progress negatively.
      Parameters:
      label - Label
      value - Initial value
      v0 - Start of range
      v1 - End of range
    • BoundedParameter

      public BoundedParameter(LXListenableParameter underlying, double v0, double v1)
      Creates a BoundedParameter which limits the value of an underlying MutableParameter to a given range. Changes to the BoundedParameter are forwarded to the MutableParameter, and vice versa. If the MutableParameter is set to a value outside the specified bounds, this BoundedParmaeter will ignore the update and the values will be inconsistent. The typical use of this mode is to create a parameter suitable for limited-range UI control of a parameter, typically a MutableParameter.
      Parameters:
      underlying - The underlying parameter
      v0 - Beginning of range
      v1 - End of range
    • BoundedParameter

      protected BoundedParameter(String label, double value, double v0, double v1, LXListenableParameter underlying)
  • Method Details