|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.refractions.udig.ui.PlatformGIS
public class PlatformGIS
A facade into udig to simplify operations relating to performing platform operations.
| Constructor Summary | |
|---|---|
PlatformGIS()
|
|
| Method Summary | |
|---|---|
static void |
asyncInDisplayThread(Display display,
java.lang.Runnable runnable,
boolean executeIfInDisplay)
Runs the runnable in the display thread but asynchronously. |
static void |
asyncInDisplayThread(java.lang.Runnable runnable,
boolean executeIfInDisplay)
Runs the runnable in the display thread but asynchronously. |
static ColorBrewer |
getColorBrewer()
|
static void |
run(IRunnableWithProgress request)
Runs the given runnable in a separate thread, providing it a progress monitor. |
static void |
run(IRunnableWithProgress request,
IProgressMonitor monitorToUse)
Runs the given runnable in a separate thread, providing it a progress monitor. |
static void |
runBlockingOperation(IRunnableWithProgress runnable,
IProgressMonitor monitor2)
This method runs the runnable in a separate thread. |
static void |
runInProgressDialog(java.lang.String dialogTitle,
boolean showRunInBackground,
IRunnableWithProgress runnable,
boolean runASync)
Runs a blocking task in a ProgressDialog. |
static void |
syncInDisplayThread(Display display,
java.lang.Runnable runnable)
|
static void |
syncInDisplayThread(java.lang.Runnable runnable)
Acts as a safer alternative to Display.syncExec(). |
static void |
wait(long interval,
long timeout,
WaitCondition condition,
java.lang.Object mutex)
Waits for the condition to become true. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PlatformGIS()
| Method Detail |
|---|
public static void run(IRunnableWithProgress request)
public static void run(IRunnableWithProgress request,
IProgressMonitor monitorToUse)
public static void runBlockingOperation(IRunnableWithProgress runnable,
IProgressMonitor monitor2)
throws java.lang.reflect.InvocationTargetException,
java.lang.InterruptedException
runnable - The runnable(operation) to runmonitor - the progress monitor to update.
java.lang.reflect.InvocationTargetException
java.lang.InterruptedExceptionpublic static ColorBrewer getColorBrewer()
public static void syncInDisplayThread(java.lang.Runnable runnable)
runnable - runnable to execute
public static void syncInDisplayThread(Display display,
java.lang.Runnable runnable)
public static void wait(long interval,
long timeout,
WaitCondition condition,
java.lang.Object mutex)
throws java.lang.InterruptedException
interval - the time to wait between testing of condition, in milliseconds. Must be a
positive number and is recommended to be larger than 50timeout - maximum time to wait. Will throw an InterruptedException if reached.
If -1 then it will not timeout.condition - condition to wait on.mutex - if not null mutex will be waited on so that a notify will interrupt the wait.
java.lang.InterruptedException
public static void runInProgressDialog(java.lang.String dialogTitle,
boolean showRunInBackground,
IRunnableWithProgress runnable,
boolean runASync)
IProgressMonitor be checked and the task to "nicely" cancel.
dialogTitle - The title of the Progress dialogshowRunInBackground - if true a button added to the dialog that will make the job be ran
in the background.runnable - the task to execute.runASync - if true the runnable will be ran asynchronously
public static void asyncInDisplayThread(java.lang.Runnable runnable,
boolean executeIfInDisplay)
runnable - the runnable to executeexecuteIfInDisplay - if true and the current thread is the display thread then the
runnable will just be executed.
public static void asyncInDisplayThread(Display display,
java.lang.Runnable runnable,
boolean executeIfInDisplay)
display - the display in which to run the runnablerunnable - the runnable to executeexecuteIfInDisplay - if true and the current thread is the display thread then the
runnable will just be executed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||