diff --git a/src/com/t_oster/liblasercut/LaserCutter.java b/src/com/t_oster/liblasercut/LaserCutter.java index c585eb97f4a780f641806fe57a84a47eca1a8d05..22176e77be025467e03a5bacbe94ee34198793ef 100644 --- a/src/com/t_oster/liblasercut/LaserCutter.java +++ b/src/com/t_oster/liblasercut/LaserCutter.java @@ -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 diff --git a/src/com/t_oster/liblasercut/drivers/EpilogCutter.java b/src/com/t_oster/liblasercut/drivers/EpilogCutter.java index 9f5adda0210e1bd470b54287b0dca0f5f2792e31..61e4e50791b893f00328c978b48983f38dffc9cb 100644 --- a/src/com/t_oster/liblasercut/drivers/EpilogCutter.java +++ b/src/com/t_oster/liblasercut/drivers/EpilogCutter.java @@ -86,6 +86,7 @@ abstract class EpilogCutter extends LaserCutter this.hostname = hostname; } + @Override public boolean isAutoFocus() { return this.autofocus;