hep.wired.util.slider
Class DefaultBoundedIntegerRangeModel
java.lang.Object
javax.swing.DefaultBoundedRangeModel
hep.wired.util.slider.DefaultBoundedIntegerRangeModel
- All Implemented Interfaces:
- BoundedIntegerRangeModel, BoundedNumberRangeModel, Serializable, BoundedRangeModel
public class DefaultBoundedIntegerRangeModel
- extends DefaultBoundedRangeModel
- implements BoundedIntegerRangeModel
Like DefaultBoundedRangeModel but for integer values.
- Version:
- $Id: DefaultBoundedIntegerRangeModel.java 2156 2005-08-02 18:47:04Z
duns $
- Author:
- Mark Donszelmann
- See Also:
- Serialized Form
Method Summary |
int |
getDefaultValue()
|
static boolean |
rangePropertiesChanged(BoundedIntegerRangeModel model,
int newValue,
int newExtent,
int newMin,
int newMax,
int newDef,
boolean newAdjusting)
|
void |
setDefaultValue(int def)
|
void |
setRangeProperties(int newValue,
int newExtent,
int newMin,
int newMax,
int newDef,
boolean newAdjusting)
|
Methods inherited from class javax.swing.DefaultBoundedRangeModel |
addChangeListener, fireStateChanged, getChangeListeners, getExtent, getListeners, getMaximum, getMinimum, getValue, getValueIsAdjusting, removeChangeListener, setExtent, setMaximum, setMinimum, setRangeProperties, setValue, setValueIsAdjusting, toString |
DefaultBoundedIntegerRangeModel
public DefaultBoundedIntegerRangeModel(int value,
int extent,
int min,
int max)
getDefaultValue
public int getDefaultValue()
- Specified by:
getDefaultValue
in interface BoundedIntegerRangeModel
setDefaultValue
public void setDefaultValue(int def)
- Specified by:
setDefaultValue
in interface BoundedIntegerRangeModel
rangePropertiesChanged
public static boolean rangePropertiesChanged(BoundedIntegerRangeModel model,
int newValue,
int newExtent,
int newMin,
int newMax,
int newDef,
boolean newAdjusting)
setRangeProperties
public void setRangeProperties(int newValue,
int newExtent,
int newMin,
int newMax,
int newDef,
boolean newAdjusting)
- Specified by:
setRangeProperties
in interface BoundedIntegerRangeModel
Copyright © 1996-2013 FreeHEP. All Rights Reserved.