public class MapPaintStyleLoader extends PleaseWaitRunnable
MapPaintStyles
).Modifier and Type | Field and Description |
---|---|
private boolean |
canceled |
private java.util.Collection<StyleSource> |
sources |
progressMonitor
Constructor and Description |
---|
MapPaintStyleLoader(java.util.Collection<StyleSource> sources)
Create a new
MapPaintStyleLoader |
Modifier and Type | Method and Description |
---|---|
protected void |
cancel()
User pressed cancel button.
|
protected void |
finish()
Finish up the data work.
|
protected void |
realRun()
Called in the worker thread to do the actual work.
|
static void |
reloadStyle(SourceEntry style)
Reload style.
|
static void |
reloadStyles(int... sel)
Reload styles
preferences are the same, but the file source may have changed
|
afterFinish, canRunInBackground, getProgressMonitor, operationCanceled, run
private boolean canceled
private final java.util.Collection<StyleSource> sources
public MapPaintStyleLoader(java.util.Collection<StyleSource> sources)
MapPaintStyleLoader
sources
- The styles to loadprotected void cancel()
PleaseWaitRunnable
cancel
in class PleaseWaitRunnable
protected void finish()
PleaseWaitRunnable
finish
in class PleaseWaitRunnable
protected void realRun()
PleaseWaitRunnable
realRun
in class PleaseWaitRunnable
public static void reloadStyles(int... sel)
sel
- the indices of styles to reloadpublic static void reloadStyle(SourceEntry style)
style
- StyleSource
to reloadjava.lang.IllegalArgumentException
- if style
is not a StyleSource
instance