Fix output stream in textarea. Add blocking actions.

This commit is contained in:
Holt59
2018-02-24 16:21:59 +01:00
parent 0514c627b4
commit ca94ddf7ff
7 changed files with 315 additions and 119 deletions

View File

@@ -0,0 +1,33 @@
package org.insa.graphics;
import java.time.Duration;
import java.time.Instant;
public interface RunningAction {
/**
* @return true if this action is running.
*/
public boolean isRunning();
/**
* Interrupt this action.
*/
public void interrupt();
/**
* @return Starting time of this action.
*/
public Instant getStartingTime();
/**
* @return Current duration of this action.
*/
public Duration getDuration();
/**
* @return Information for this action.
*/
public String getInformation();
}