public class MultiSmoothMover extends java.lang.Object implements java.awt.event.ActionListener
Modifier and Type | Class and Description |
---|---|
static class |
MultiSmoothMover.MultiSmoothMoverAdapter |
static interface |
MultiSmoothMover.MultiSmoothMoverListener |
Constructor and Description |
---|
MultiSmoothMover(int size) |
MultiSmoothMover(int size,
SmoothMover.SmoothMoveType type) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
addListener(MultiSmoothMover.MultiSmoothMoverListener listener) |
double |
getDestValue(int index) |
int |
getMoveTime() |
SmoothMover.SmoothMoveType |
getType() |
int |
getUpdateDelay() |
double |
getValue(int index) |
boolean |
isMoving() |
boolean |
isMoving(int index) |
void |
moveTo(double[] values)
Move all values
|
void |
moveTo(int index,
double value)
Move the value at specified index to 'value'
|
void |
removeListener(MultiSmoothMover.MultiSmoothMoverListener listener) |
void |
setMoveTime(int moveTime) |
void |
setType(SmoothMover.SmoothMoveType type) |
void |
setUpdateDelay(int updateDelay) |
void |
setValue(int index,
double value)
Immediately set the value
|
void |
setValues(double[] values)
Immediately set all values
|
void |
shutDown()
Shutdown the mover object (this actually stop internal timer and remove all listeners)
|
void |
stop(int index)
Stop specified index
|
void |
stopAll()
Stop all
|
public MultiSmoothMover(int size, SmoothMover.SmoothMoveType type)
public MultiSmoothMover(int size)
public void moveTo(int index, double value)
public void moveTo(double[] values)
public boolean isMoving(int index)
public boolean isMoving()
public void stop(int index)
public void stopAll()
public void shutDown()
public int getUpdateDelay()
public void setUpdateDelay(int updateDelay)
updateDelay
- the update delay (in ms) to setpublic SmoothMover.SmoothMoveType getType()
public void setType(SmoothMover.SmoothMoveType type)
type
- the smooth type to setpublic int getMoveTime()
public void setMoveTime(int moveTime)
moveTime
- the moveTime to setpublic void setValue(int index, double value)
public void setValues(double[] values)
public double getValue(int index)
public double getDestValue(int index)
public void addListener(MultiSmoothMover.MultiSmoothMoverListener listener)
public void removeListener(MultiSmoothMover.MultiSmoothMoverListener listener)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener