public class RelativeRangeModel extends javax.swing.DefaultBoundedRangeModel implements javax.swing.BoundedRangeModel
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
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 javax.swing.BoundedRangeModel
setValue
in class javax.swing.DefaultBoundedRangeModel
value
- the new value (Must be greater or equal zero.)