public class MapControl.CancelDraw extends Object implements Cancellable
An instance of CancelDraw
will be shared by all this
MapControl
's MapContext
layers, allowing
receive a notification that, when they're been drawn, to be cancelled.
Cancellable
Constructor and Description |
---|
MapControl.CancelDraw()
Creates a new
CancelDraw object. |
Modifier and Type | Method and Description |
---|---|
boolean |
isCanceled()
Determines if the related task must be canceled.
|
void |
setCanceled(boolean b)
Sets if the related task must be canceled.
|
public MapControl.CancelDraw()
CancelDraw
object.public void setCanceled(boolean b)
Cancellable
Sets if the related task must be canceled.
setCanceled
in interface Cancellable
b
- true
if the task must be canceled; otherwise false
Cancellable.isCanceled()
public boolean isCanceled()
Cancellable
Determines if the related task must be canceled.
isCanceled
in interface Cancellable
true
if task must been canceled; otherwise false
Cancellable.setCanceled(boolean)