public class RelativeRangeModel extends DefaultBoundedRangeModel implements BoundedRangeModel
changeEvent, listenerList
Constructor and Description |
---|
RelativeRangeModel()
Constructs an instance of this class with a maximum factor of 10.
|
RelativeRangeModel(int value,
double maximumFactor) |
Modifier and Type | Method and Description |
---|---|
double |
getMaximumFactor() |
void |
setMaximumFactor(double maxFactor)
Sets the current maximum factor and recalculates the maximum.
|
void |
setValue(int value)
Sets the value of this model.
|
addChangeListener, fireStateChanged, getChangeListeners, getExtent, getListeners, getMaximum, getMinimum, getValue, getValueIsAdjusting, removeChangeListener, setExtent, setMaximum, setMinimum, setRangeProperties, setValueIsAdjusting, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addChangeListener, getExtent, getMaximum, getMinimum, getValue, getValueIsAdjusting, removeChangeListener, setExtent, setMaximum, setMinimum, setRangeProperties, setValueIsAdjusting
public RelativeRangeModel()
public RelativeRangeModel(int value, double maximumFactor)
public double getMaximumFactor()
public void setMaximumFactor(double maxFactor)
maxFactor
- the new maximum factorpublic void setValue(int value)
setValue
in interface BoundedRangeModel
setValue
in class DefaultBoundedRangeModel
value
- the new value (Must be greater or equal zero.)