|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.javafx.newt.Display
public abstract class Display
Nested Class Summary | |
---|---|
static interface |
Display.Action
|
Field Summary | |
---|---|
protected AbstractGraphicsDevice |
aDevice
|
static boolean |
DEBUG
|
protected String |
name
|
protected int |
refCount
|
Constructor Summary | |
---|---|
Display()
|
Method Summary | |
---|---|
protected abstract void |
closeNative()
|
protected static Display |
create(String type,
String name)
Make sure to reuse a Display with the same name |
protected abstract void |
createNative()
|
void |
destroy()
|
protected abstract void |
dispatchMessages()
|
static Display |
getCurrentDisplay(String name)
Returns the thread local display mapped to the given name |
static Map |
getCurrentDisplayMap()
Returns the thread local display map |
static Collection |
getCurrentDisplays()
Returns the thread local display collection |
AbstractGraphicsDevice |
getGraphicsDevice()
|
long |
getHandle()
|
String |
getName()
|
void |
pumpMessages()
|
protected static Display |
removeCurrentDisplay(String name)
removes the mapping of the given name from the thread local display map and notifies all threads synchronized to this display map. |
void |
run()
calls pumpMessages() |
static void |
runCurrentThreadDisplaysAction(Display.Action action)
Calls Display.Action.run(Display) on all Display's
bound to the current thread. |
protected static Display |
setCurrentDisplay(Display display)
maps the given display to the thread local display map and notifies all threads synchronized to this display map. |
String |
toString()
|
protected static Display |
wrapHandle(String type,
String name,
AbstractGraphicsDevice aDevice)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final boolean DEBUG
protected String name
protected int refCount
protected AbstractGraphicsDevice aDevice
Constructor Detail |
---|
public Display()
Method Detail |
---|
public static Map getCurrentDisplayMap()
protected static Display setCurrentDisplay(Display display)
protected static Display removeCurrentDisplay(String name)
public static Display getCurrentDisplay(String name)
public static Collection getCurrentDisplays()
protected static Display create(String type, String name)
public void destroy()
protected static Display wrapHandle(String type, String name, AbstractGraphicsDevice aDevice)
protected abstract void createNative()
protected abstract void closeNative()
public String getName()
public long getHandle()
public AbstractGraphicsDevice getGraphicsDevice()
public void pumpMessages()
public void run()
pumpMessages()
run
in interface Runnable
public static void runCurrentThreadDisplaysAction(Display.Action action)
Display.Action.run(Display)
on all Display's
bound to the current thread.
public String toString()
toString
in class Object
protected abstract void dispatchMessages()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |