Class ConverterRangeModel
- java.lang.Object
-
- ptolemy.actor.lib.javasound.test.pitchshift.ConverterRangeModel
-
- All Implemented Interfaces:
javax.swing.BoundedRangeModel
public class ConverterRangeModel extends java.lang.Object implements javax.swing.BoundedRangeModel
Based on the source code for DefaultBoundedRangeModel, this class stores its value as a double, rather than an int. The minimum value and extent are always 0.- Since:
- Ptolemy II 1.0
- Version:
- $Id$
- Author:
- Brian Vogel
- Pt.AcceptedRating:
- Red (vogel)
- Pt.ProposedRating:
- Red (vogel)
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.swing.event.ChangeEvent
changeEvent
protected int
extent
protected boolean
isAdjusting
protected javax.swing.event.EventListenerList
listenerList
protected int
maximum
protected int
minimum
protected double
multiplier
protected double
value
-
Constructor Summary
Constructors Constructor Description ConverterRangeModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChangeListener(javax.swing.event.ChangeListener l)
protected void
fireStateChanged()
double
getDoubleValue()
int
getExtent()
int
getMaximum()
int
getMinimum()
double
getMultiplier()
int
getValue()
boolean
getValueIsAdjusting()
void
removeChangeListener(javax.swing.event.ChangeListener l)
void
setDoubleValue(double newValue)
void
setExtent(int newExtent)
void
setMaximum(int newMaximum)
void
setMinimum(int newMinimum)
void
setMultiplier(double multiplier)
void
setRangeProperties(double newValue, int unusedExtent, int unusedMin, int newMax, boolean newAdjusting)
void
setRangeProperties(int newValue, int newExtent, int newMin, int newMax, boolean newAdjusting)
void
setValue(int newValue)
void
setValueIsAdjusting(boolean b)
-
-
-
Field Detail
-
changeEvent
protected javax.swing.event.ChangeEvent changeEvent
-
listenerList
protected javax.swing.event.EventListenerList listenerList
-
maximum
protected int maximum
-
minimum
protected int minimum
-
extent
protected int extent
-
value
protected double value
-
multiplier
protected double multiplier
-
isAdjusting
protected boolean isAdjusting
-
-
Method Detail
-
getMultiplier
public double getMultiplier()
-
setMultiplier
public void setMultiplier(double multiplier)
-
getMaximum
public int getMaximum()
- Specified by:
getMaximum
in interfacejavax.swing.BoundedRangeModel
-
setMaximum
public void setMaximum(int newMaximum)
- Specified by:
setMaximum
in interfacejavax.swing.BoundedRangeModel
-
getMinimum
public int getMinimum()
- Specified by:
getMinimum
in interfacejavax.swing.BoundedRangeModel
-
setMinimum
public void setMinimum(int newMinimum)
- Specified by:
setMinimum
in interfacejavax.swing.BoundedRangeModel
-
getValue
public int getValue()
- Specified by:
getValue
in interfacejavax.swing.BoundedRangeModel
-
setValue
public void setValue(int newValue)
- Specified by:
setValue
in interfacejavax.swing.BoundedRangeModel
-
getDoubleValue
public double getDoubleValue()
-
setDoubleValue
public void setDoubleValue(double newValue)
-
getExtent
public int getExtent()
- Specified by:
getExtent
in interfacejavax.swing.BoundedRangeModel
-
setExtent
public void setExtent(int newExtent)
- Specified by:
setExtent
in interfacejavax.swing.BoundedRangeModel
-
getValueIsAdjusting
public boolean getValueIsAdjusting()
- Specified by:
getValueIsAdjusting
in interfacejavax.swing.BoundedRangeModel
-
setValueIsAdjusting
public void setValueIsAdjusting(boolean b)
- Specified by:
setValueIsAdjusting
in interfacejavax.swing.BoundedRangeModel
-
setRangeProperties
public void setRangeProperties(int newValue, int newExtent, int newMin, int newMax, boolean newAdjusting)
- Specified by:
setRangeProperties
in interfacejavax.swing.BoundedRangeModel
-
setRangeProperties
public void setRangeProperties(double newValue, int unusedExtent, int unusedMin, int newMax, boolean newAdjusting)
-
addChangeListener
public void addChangeListener(javax.swing.event.ChangeListener l)
- Specified by:
addChangeListener
in interfacejavax.swing.BoundedRangeModel
-
removeChangeListener
public void removeChangeListener(javax.swing.event.ChangeListener l)
- Specified by:
removeChangeListener
in interfacejavax.swing.BoundedRangeModel
-
fireStateChanged
protected void fireStateChanged()
-
-