com.jidesoft.treemap
Class AbstractTreeMapModel.Worker
java.lang.Object
com.jidesoft.treemap.AbstractTreeMapModel.Worker
- All Implemented Interfaces:
- TreeMapWorker, Callable<Void>
- Enclosing class:
- AbstractTreeMapModel<N extends MutableTreeMapNode>
public class AbstractTreeMapModel.Worker
- extends Object
- implements Callable<Void>, TreeMapWorker
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTreeMapModel.Worker
public AbstractTreeMapModel.Worker()
call
public Void call()
throws Exception
- Specified by:
call
in interface Callable<Void>
- Throws:
Exception
isCancelled
public boolean isCancelled()
- Description copied from interface:
TreeMapWorker
- Indicates whether the work has been cancelled.
- Specified by:
isCancelled
in interface TreeMapWorker
- Returns:
- true if cancelled, false otherwise
cancel
public void cancel()
- Description copied from interface:
TreeMapWorker
- Cancel the work being done.
- Specified by:
cancel
in interface TreeMapWorker
setProgress
public void setProgress(int progress)
- Specified by:
setProgress
in interface TreeMapWorker