public class LayoutQueue extends Object
Constructor | Description |
---|---|
LayoutQueue() |
Construct a layout queue. |
Modifier and Type | Method | Description |
---|---|---|
void |
addTask |
Add a task that is not needed immediately because the results are not believed to be visible. |
static LayoutQueue |
getDefaultQueue() |
Fetch the default layout queue. |
static void |
setDefaultQueue |
Set the default layout queue. |
protected Runnable |
waitForWork() |
Used by the worker thread to get a new task to execute. |
public LayoutQueue()
public static LayoutQueue getDefaultQueue()
public static void setDefaultQueue(LayoutQueue q)
q
- the new queue.public void addTask(Runnable task)
task
- the task to add to the queueprotected Runnable waitForWork()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/swing/text/LayoutQueue.html