public class PunchController extends java.lang.Object implements PositionPanelListener, Disposable
| Constructor and Description |
|---|
PunchController(PunchCommandLayer pcl,
JPositionPanel posPanel) |
| Modifier and Type | Method and Description |
|---|---|
void |
defineNewPosAndUpdatePanel(int currentPos)
update panel to display current position
|
void |
dispose()
Dispose the resources associated to an object
|
void |
first() |
static java.lang.String |
formatDuration(java.time.Duration duration)
format duration
|
boolean |
isRunning() |
void |
next() |
void |
pausePlay() |
void |
previous() |
void |
setMachineControl(MachineControl machineControl) |
void |
setPauseTimerGetter(PauseTimerGetter pauseTimerGetter) |
public PunchController(PunchCommandLayer pcl, JPositionPanel posPanel)
public void dispose()
Disposabledispose in interface Disposablepublic void setMachineControl(MachineControl machineControl)
public void setPauseTimerGetter(PauseTimerGetter pauseTimerGetter)
public boolean isRunning()
public void next()
next in interface PositionPanelListenerpublic void previous()
previous in interface PositionPanelListenerpublic void defineNewPosAndUpdatePanel(int currentPos)
currentPos - public void first()
first in interface PositionPanelListenerpublic static java.lang.String formatDuration(java.time.Duration duration)
duration - public void pausePlay()
throws java.lang.Exception
pausePlay in interface PositionPanelListenerjava.lang.Exception