plugins.big.bigsnakeutils.icy.gui.pair
Class RangeRangeModel

java.lang.Object
  extended by plugins.big.bigsnakeutils.icy.gui.pair.PairRangeModel
      extended by plugins.big.bigsnakeutils.icy.gui.pair.RangeRangeModel
All Implemented Interfaces:
plugins.adufour.vars.gui.model.VarEditorModel<Pair>

public class RangeRangeModel
extends PairRangeModel

VarEditorModel for Pair objects. Here, the pair represents a range. Therefore, the first value cannot be higher than the second one.

Version:
May 3, 2014
Author:
Julien Jacquemot

Constructor Summary
RangeRangeModel(Pair defaultValue, double min, double max, double step)
           
 
Method Summary
 void setFirstMaximum(double max)
          Set the maximum for the first value of the pair.
 void setFirstMinimum(double min)
          Set the minimum for the first value of the pair.
 void setSecondMaximum(double max)
          Set the maximum for the second value of the pair.
 void setSecondMinimum(double min)
          Set the minimum for the second value of the pair.
 void updateBounds(Pair value)
          Update the bounds accordingly to the given value if needed.
 
Methods inherited from class plugins.big.bigsnakeutils.icy.gui.pair.PairRangeModel
getDefaultValue, getFirstMaximum, getFirstMinimum, getFirstStepSize, getSecondMaximum, getSecondMinimum, getSecondStepSize, isValid, setBounds, setFirstBounds, setFirstStepSize, setMaximum, setMinimum, setSecondBounds, setSecondStepSize, setStepSize
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RangeRangeModel

public RangeRangeModel(Pair defaultValue,
                       double min,
                       double max,
                       double step)
Method Detail

setFirstMinimum

public void setFirstMinimum(double min)
Description copied from class: PairRangeModel
Set the minimum for the first value of the pair.

Overrides:
setFirstMinimum in class PairRangeModel

setFirstMaximum

public void setFirstMaximum(double max)
Description copied from class: PairRangeModel
Set the maximum for the first value of the pair.

Overrides:
setFirstMaximum in class PairRangeModel

setSecondMinimum

public void setSecondMinimum(double min)
Description copied from class: PairRangeModel
Set the minimum for the second value of the pair.

Overrides:
setSecondMinimum in class PairRangeModel

setSecondMaximum

public void setSecondMaximum(double max)
Description copied from class: PairRangeModel
Set the maximum for the second value of the pair.

Overrides:
setSecondMaximum in class PairRangeModel

updateBounds

public void updateBounds(Pair value)
Description copied from class: PairRangeModel
Update the bounds accordingly to the given value if needed. By default this function does nothing.

Overrides:
updateBounds in class PairRangeModel