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.Voidcall()voidcancel()Cancel the work being done.booleanisCancelled()Indicates whether the work has been cancelled.voidsetProgress(int progress)
-
-
-
Method Detail
-
call
public java.lang.Void call() throws java.lang.Exception- Specified by:
callin interfacejava.util.concurrent.Callable<java.lang.Void>- Throws:
java.lang.Exception
-
cancel
public void cancel()
Description copied from interface:TreeMapWorkerCancel the work being done.- Specified by:
cancelin interfaceTreeMapWorker
-
isCancelled
public boolean isCancelled()
Description copied from interface:TreeMapWorkerIndicates whether the work has been cancelled.- Specified by:
isCancelledin interfaceTreeMapWorker- Returns:
- true if cancelled, false otherwise
-
setProgress
public void setProgress(int progress)
- Specified by:
setProgressin interfaceTreeMapWorker
-
-