站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

ViewLayoutQueue (Editor Library) - NetBeans API Javadoc (Current Development Version)

org.netbeans.modules.editor.lib/1 1.14.0 3

org.netbeans.editor.view.spi
Class ViewLayoutQueue

java.lang.Object
  extended by org.netbeans.editor.view.spi.ViewLayoutQueue

public class ViewLayoutQueue
extends Object

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

ViewLayoutQueue

public ViewLayoutQueue()
Construct a layout queue.

Method Detail

getDefaultQueue

public static ViewLayoutQueue getDefaultQueue()
Get the default layout queue.


getSynchronousQueue

public static ViewLayoutQueue getSynchronousQueue()

getWorkerThread

public Thread getWorkerThread()

addTask

public void addTask(Runnable task)
Add a task to the queue.


org.netbeans.modules.editor.lib/1 1.14.0 3

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.