|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.newt.Display
public abstract class Display
Field Summary | |
---|---|
protected AbstractGraphicsDevice |
aDevice
|
static boolean |
DEBUG
|
protected Thread |
edt
|
protected EDTUtil |
edtUtil
|
protected String |
name
|
protected int |
refCount
|
protected String |
type
|
Constructor Summary | |
---|---|
Display()
|
Method Summary | |
---|---|
protected abstract void |
closeNative()
|
protected static Display |
create(String type,
String name,
long handle)
Make sure to reuse a Display with the same name |
protected abstract void |
createNative()
|
void |
destroy()
|
protected void |
dispatchMessages()
|
protected abstract void |
dispatchMessagesNative()
|
static void |
dumpDisplayMap(String prefix)
|
void |
enqueueEvent(boolean wait,
NEWTEvent e)
|
void |
enqueueEvent(NEWTEvent e)
|
static Display |
getCurrentDisplay(String type,
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 |
EDTUtil |
getEDTUtil()
|
String |
getFQName()
|
static String |
getFQName(String type,
String name)
|
AbstractGraphicsDevice |
getGraphicsDevice()
|
long |
getHandle()
|
String |
getName()
|
static String |
getThreadName()
|
String |
getType()
|
void |
lock()
|
void |
pumpMessages()
|
protected static Display |
removeCurrentDisplay(String type,
String name)
removes the mapping of the given name from the thread local display map and notifies all threads synchronized to this display map. |
boolean |
runCreateAndDestroyOnEDT()
|
void |
runOnEDTIfAvail(boolean wait,
Runnable task)
|
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. |
static String |
toHexString(int hex)
|
static String |
toHexString(long hex)
|
String |
toString()
|
void |
unlock()
|
protected String |
validateDisplayName(String name,
long handle)
|
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 EDTUtil edtUtil
protected Thread edt
protected String name
protected String type
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 type, String name)
public static Display getCurrentDisplay(String type, String name)
public static void dumpDisplayMap(String prefix)
public static Collection getCurrentDisplays()
protected static Display create(String type, String name, long handle)
public boolean runCreateAndDestroyOnEDT()
public EDTUtil getEDTUtil()
public void runOnEDTIfAvail(boolean wait, Runnable task)
public void destroy()
protected abstract void createNative()
protected abstract void closeNative()
public final String getType()
public final String getName()
public final String getFQName()
protected String validateDisplayName(String name, long handle)
public static final String getFQName(String type, String name)
public long getHandle()
public AbstractGraphicsDevice getGraphicsDevice()
public void pumpMessages()
public String toString()
toString
in class Object
public static String getThreadName()
public static String toHexString(int hex)
public static String toHexString(long hex)
protected abstract void dispatchMessagesNative()
protected void dispatchMessages()
public void enqueueEvent(NEWTEvent e)
public void enqueueEvent(boolean wait, NEWTEvent e)
public void lock()
public void unlock()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |