Package com.jidesoft.range
Class RangeMorpher
- java.lang.Object
-
- com.jidesoft.range.RangeMorpher
-
public class RangeMorpher extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PROPERTY_MORPH_ENDED
static java.lang.String
PROPERTY_MORPH_RANGES
static java.lang.String
PROPERTY_MORPH_STARTED
-
Constructor Summary
Constructors Constructor Description RangeMorpher()
This constructor is provided mainly for Java Bean compatibility.RangeMorpher(int numSteps, int delay)
Create a RangeMorpher instance on the suppliedChart
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a property change listener to this object.boolean
isMorphing()
Returns true if a morph is currently in progressvoid
morph(Range<?>[] sourceRanges, Range<?>[] destinationRanges)
void
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a property change listener from this object.
-
-
-
Field Detail
-
PROPERTY_MORPH_STARTED
public static final java.lang.String PROPERTY_MORPH_STARTED
- See Also:
- Constant Field Values
-
PROPERTY_MORPH_ENDED
public static final java.lang.String PROPERTY_MORPH_ENDED
- See Also:
- Constant Field Values
-
PROPERTY_MORPH_RANGES
public static final java.lang.String PROPERTY_MORPH_RANGES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RangeMorpher
public RangeMorpher()
This constructor is provided mainly for Java Bean compatibility. If you use it, make sure you callsetChart
to inform the object of the chart on which it operates.
-
RangeMorpher
public RangeMorpher(int numSteps, int delay)
Create a RangeMorpher instance on the suppliedChart
.- Parameters:
numSteps
- the number of steps in a transitiondelay
- the delay between the steps, in milliseconds
-
-
Method Detail
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add a property change listener to this object. Property events are fired at the beginning and at the end of a transition.- Parameters:
listener
- the property change listener
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove a property change listener from this object.- Parameters:
listener
- the property change listener to remove
-
isMorphing
public boolean isMorphing()
Returns true if a morph is currently in progress- Returns:
- a boolean to indicate whether a morph is in progress.
-
-