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()
Disposable
dispose
in interface Disposable
public void setMachineControl(MachineControl machineControl)
public void setPauseTimerGetter(PauseTimerGetter pauseTimerGetter)
public boolean isRunning()
public void next()
next
in interface PositionPanelListener
public void previous()
previous
in interface PositionPanelListener
public void defineNewPosAndUpdatePanel(int currentPos)
currentPos
- public void first()
first
in interface PositionPanelListener
public static java.lang.String formatDuration(java.time.Duration duration)
duration
- public void pausePlay() throws java.lang.Exception
pausePlay
in interface PositionPanelListener
java.lang.Exception