public class DefaultMonitorFactory extends java.lang.Object implements MonitorFactory
Modifier and Type | Class and Description |
---|---|
static class |
DefaultMonitorFactory.MonitorEntry |
Modifier and Type | Field and Description |
---|---|
protected int |
size |
Constructor and Description |
---|
DefaultMonitorFactory() |
Modifier and Type | Method and Description |
---|---|
ProgressMonitor |
getMonitor(DasCanvasComponent context,
java.lang.String label,
java.lang.String description)
returns a new monitor in the given context.
|
ProgressMonitor |
getMonitor(DasCanvas canvas,
java.lang.String label,
java.lang.String description) |
ProgressMonitor |
getMonitor(java.lang.String label,
java.lang.String description)
returns a new monitor without regard to context.
|
DefaultMonitorFactory.MonitorEntry[] |
getMonitors() |
DefaultMonitorFactory.MonitorEntry |
getMonitors(int i) |
int |
getSize() |
boolean |
isClear() |
void |
setClear(boolean clear) |
void |
setSize(int size) |
public int getSize()
public void setSize(int size)
public ProgressMonitor getMonitor(DasCanvas canvas, java.lang.String label, java.lang.String description)
getMonitor
in interface MonitorFactory
public ProgressMonitor getMonitor(DasCanvasComponent context, java.lang.String label, java.lang.String description)
MonitorFactory
getMonitor
in interface MonitorFactory
context
- component which needs to indicate progress during a long processlabel
- initial label for the taskpublic ProgressMonitor getMonitor(java.lang.String label, java.lang.String description)
MonitorFactory
getMonitor
in interface MonitorFactory
label
- initial label for the taskpublic DefaultMonitorFactory.MonitorEntry[] getMonitors()
public DefaultMonitorFactory.MonitorEntry getMonitors(int i)
public void setClear(boolean clear)
public boolean isClear()