public class RangeMorpher extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_MORPH_ENDED |
static String |
PROPERTY_MORPH_RANGES |
static String |
PROPERTY_MORPH_STARTED |
Constructor and Description |
---|
RangeMorpher()
This constructor is provided mainly for Java Bean compatibility.
|
RangeMorpher(int numSteps,
int delay)
Create a RangeMorpher instance on the supplied
Chart . |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Add a property change listener to this object.
|
boolean |
isMorphing()
Returns true if a morph is currently in progress
|
void |
morph(Range<?>[] sourceRanges,
Range<?>[] destinationRanges) |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Remove a property change listener from this object.
|
public static final String PROPERTY_MORPH_STARTED
public static final String PROPERTY_MORPH_ENDED
public static final String PROPERTY_MORPH_RANGES
public RangeMorpher()
setChart
to inform the object of the chart on which it operates.public RangeMorpher(int numSteps, int delay)
Chart
.numSteps
- the number of steps in a transitiondelay
- the delay between the steps, in millisecondspublic void addPropertyChangeListener(PropertyChangeListener listener)
listener
- the property change listenerpublic void removePropertyChangeListener(PropertyChangeListener listener)
listener
- the property change listener to removepublic boolean isMorphing()