Package bdv.util

Class BoundedValue


  • public class BoundedValue
    extends Object
    A int variable that can take any value in a given range. A listener is notified when the value or its allowed range is changed.
    Author:
    Tobias Pietzsch
    • Constructor Detail

      • BoundedValue

        public BoundedValue​(int rangeMin,
                            int rangeMax,
                            int currentValue)
    • Method Detail

      • getRangeMin

        public int getRangeMin()
      • getRangeMax

        public int getRangeMax()
      • getCurrentValue

        public int getCurrentValue()
      • setRange

        public void setRange​(int min,
                             int max)
      • setCurrentValue

        public void setCurrentValue​(int value)