Skip to content
Snippets Groups Projects
Commit 87873e97 authored by Thomas Oster's avatar Thomas Oster
Browse files

AutoFocus is part of the LaserCutter Interface

parent ded79785
No related branches found
No related tags found
No related merge requests found
......@@ -98,6 +98,16 @@ public abstract class LaserCutter implements Cloneable
*/
public abstract void sendJob(LaserJob job, ProgressListener pl) throws IllegalJobException, Exception;
/**
* If you lasercutter supports autofocus, override this method,
* to let programs like VisiCut know, that they don't need to focus.
* @return
*/
public boolean isAutoFocus()
{
return false;
}
/**
* This calls sendJob(job, pl) with a default progress listener, which
* just dumps everythong on the command line
......
......@@ -86,6 +86,7 @@ abstract class EpilogCutter extends LaserCutter
this.hostname = hostname;
}
@Override
public boolean isAutoFocus()
{
return this.autofocus;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment