|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.editor.view.spi.ViewLayoutQueue
public class ViewLayoutQueue
This is a layout queue similar to the LayoutQueue
with certain improvements.
Unlike the swing implementation this one uses a circular buffer so it does no shifting of the runnables in the vector.
The queue will shrink its size to 1/4 automatically if its size would be lower than 1/8 of currently allocated array.
Any view implementation wishing to perform asynchronous layout
may use getDefaultQueue()
or create its own queue instance.
Constructor Summary | |
---|---|
ViewLayoutQueue()
Construct a layout queue. |
Method Summary | |
---|---|
void |
addTask(Runnable task)
Add a task to the queue. |
static ViewLayoutQueue |
getDefaultQueue()
Get the default layout queue. |
static ViewLayoutQueue |
getSynchronousQueue()
|
Thread |
getWorkerThread()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewLayoutQueue()
Method Detail |
---|
public static ViewLayoutQueue getDefaultQueue()
public static ViewLayoutQueue getSynchronousQueue()
public Thread getWorkerThread()
public void addTask(Runnable task)
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |