public class DefaultBoundedRangeModel extends BoundedRangeModel implements Serializable
| Constructor and Description | 
|---|
| DefaultBoundedRangeModel()Construct a new DefaultBoundedRangeModel with defaults. | 
| DefaultBoundedRangeModel(long value,
                        long maximum)Constructs a new DefaultBoundedRangeModel with specified 'maximum' and 
  'value'. | 
| Modifier and Type | Method and Description | 
|---|---|
| long | getMaximum()Gets the maximum value for this model. | 
| long | getValue()Gets the current value for this model. | 
| void | setMaximum(long maximum)Sets the maximum value for this model. | 
| void | setValue(long value)Sets the current value for this model. | 
public DefaultBoundedRangeModel()
public DefaultBoundedRangeModel(long value,
                        long maximum)
value - - the value for this model.maximum - - the maximum for this bounded range.IllegalArgumentException - if the value is not in the valid range.public long getMaximum()
BoundedRangeModelgetMaximum in class BoundedRangeModelpublic long getValue()
BoundedRangeModelgetValue in class BoundedRangeModelpublic void setMaximum(long maximum)
maximum - the maximum value to be setpublic void setValue(long value)
value - the current value to be set.IllegalArgumentException - if the value is not in the valid range.Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.