Package com.macrofocus.treemap
Class AbstractTreeMapModel.Worker
- java.lang.Object
-
- com.macrofocus.treemap.AbstractTreeMapModel.Worker
-
- All Implemented Interfaces:
TreeMapWorker
,java.util.concurrent.Callable<java.lang.Void>
- Enclosing class:
- AbstractTreeMapModel<N extends MutableTreeMapNode<N,Column,Color,Font>,Row,Column,Color,Font>
public class AbstractTreeMapModel.Worker extends java.lang.Object implements java.util.concurrent.Callable<java.lang.Void>, TreeMapWorker
-
-
Constructor Summary
Constructors Constructor Description Worker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Void
call()
void
cancel()
Cancel the work being done.boolean
isCancelled()
Indicates whether the work has been cancelled.void
setProgress(int progress)
-
-
-
Method Detail
-
call
public java.lang.Void call() throws java.lang.Exception
- Specified by:
call
in interfacejava.util.concurrent.Callable<java.lang.Void>
- Throws:
java.lang.Exception
-
cancel
public void cancel()
Description copied from interface:TreeMapWorker
Cancel the work being done.- Specified by:
cancel
in interfaceTreeMapWorker
-
isCancelled
public boolean isCancelled()
Description copied from interface:TreeMapWorker
Indicates whether the work has been cancelled.- Specified by:
isCancelled
in interfaceTreeMapWorker
- Returns:
- true if cancelled, false otherwise
-
setProgress
public void setProgress(int progress)
- Specified by:
setProgress
in interfaceTreeMapWorker
-
-