public class PunchController extends java.lang.Object implements PositionPanelListener, Disposable
Constructor and Description |
---|
PunchController(PunchCommandLayer pcl,
PositionPanel posPanel) |
Modifier and Type | Method and Description |
---|---|
void |
defineNewPosAndUpdatePanel(int currentPos) |
void |
dispose()
Dispose the resources associated to an object
|
void |
first() |
static java.lang.String |
formatDuration(java.time.Duration duration) |
boolean |
isRunning() |
void |
next() |
void |
pausePlay() |
void |
previous() |
void |
setMachineControl(MachineControl machineControl) |
public PunchController(PunchCommandLayer pcl, PositionPanel posPanel)
public void dispose()
Disposable
dispose
in interface Disposable
public void setMachineControl(MachineControl machineControl)
public boolean isRunning()
public void next()
next
in interface PositionPanelListener
public void previous()
previous
in interface PositionPanelListener
public void defineNewPosAndUpdatePanel(int currentPos)
public void first()
first
in interface PositionPanelListener
public static java.lang.String formatDuration(java.time.Duration duration)
public void pausePlay() throws java.lang.Exception
pausePlay
in interface PositionPanelListener
java.lang.Exception