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, runprivate boolean canceled
private final java.util.Collection<StyleSource> sources
public MapPaintStyleLoader(java.util.Collection<StyleSource> sources)
MapPaintStyleLoadersources - The styles to loadprotected void cancel()
PleaseWaitRunnablecancel in class PleaseWaitRunnableprotected void finish()
PleaseWaitRunnablefinish in class PleaseWaitRunnableprotected void realRun()
PleaseWaitRunnablerealRun in class PleaseWaitRunnablepublic 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