mvc
Class IntegralRange

java.lang.Object
  extended by mvc.IntegralRange

public class IntegralRange
extends java.lang.Object

An IntegralRange is a model type for integer values, specifying lower and upper bounds on values.


Nested Class Summary
static class IntegralRange.Controller
          DOCME.
static class IntegralRange.Model
          DOCME.
 
Constructor Summary
IntegralRange(java.lang.Integer lo, java.lang.Integer hi)
          new IntegralRange(lo, hi) returns a new IntegralRange with values from lo to hi.
IntegralRange(java.lang.Integer lo, java.lang.Integer hi, java.lang.Integer st)
          new IntegralRange(lo, hi, st) returns a new IntegralRange with values from lo to hi.
 
Method Summary
 IntegralRange.Model createModel(java.lang.String nm)
          mc.createModel() returns a new editable model whose possible values are the choices of mc.
 int getHigh()
          r.getHigh() returns the upper bound on values of type r.
 int getLow()
          r.getLow() returns the lower bound on values of type r.
 int getStart()
          mc.getStart() returns the starting value for values of type mc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegralRange

public IntegralRange(java.lang.Integer lo,
                     java.lang.Integer hi)
new IntegralRange(lo, hi) returns a new IntegralRange with values from lo to hi. The start value for the range is lo.

Parameters:
lo -
hi -

IntegralRange

public IntegralRange(java.lang.Integer lo,
                     java.lang.Integer hi,
                     java.lang.Integer st)
new IntegralRange(lo, hi, st) returns a new IntegralRange with values from lo to hi. The start value for the range is st.

Parameters:
lo -
hi -
st -
Method Detail

getStart

public int getStart()
mc.getStart() returns the starting value for values of type mc.

Returns:

getLow

public int getLow()
r.getLow() returns the lower bound on values of type r.

Returns:

getHigh

public int getHigh()
r.getHigh() returns the upper bound on values of type r.

Returns:

createModel

public IntegralRange.Model createModel(java.lang.String nm)
mc.createModel() returns a new editable model whose possible values are the choices of mc.

Parameters:
nm -
Returns: