|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jogamp.newt.NewtFactory
public abstract class NewtFactory
Constructor Summary | |
---|---|
NewtFactory()
|
Method Summary | |
---|---|
static Display |
createDisplay(String name)
Create a Display entity, incl native creation |
static Display |
createDisplay(String type,
String name)
Create a Display entity using the given implementation type, incl native creation |
static Screen |
createScreen(Display display,
int index)
Create a Screen entity, incl native creation |
static Screen |
createScreen(String type,
Display display,
int index)
Create a Screen entity using the given implementation type, incl native creation |
static Window |
createWindow(long parentWindowHandle,
Screen screen,
Capabilities caps,
boolean undecorated)
Create a child Window entity attached to the given parent, incl native creation |
static Window |
createWindow(NativeWindow nParentWindow,
Capabilities caps,
boolean undecorated)
Create a child Window entity attached to the given parent, incl native creation. The Screen and Display information is regenerated utilizing the parents information. |
static Window |
createWindow(Object[] cstrArguments,
Screen screen,
Capabilities caps,
boolean undecorated)
Ability to try a Window type with a construnctor argument, if supported .. |
static Window |
createWindow(Screen screen,
Capabilities caps)
Create a top level Window entity, incl native creation |
static Window |
createWindow(Screen screen,
Capabilities caps,
boolean undecorated)
Create a top level Window entity, incl native creation |
static Window |
createWindow(String type,
Object[] cstrArguments,
Screen screen,
Capabilities caps,
boolean undecorated)
|
static Window |
createWindow(String type,
Screen screen,
Capabilities caps,
boolean undecorated)
Create a Window entity using the given implementation type, incl native creation |
protected static Window |
createWindowImpl(String type,
Capabilities caps,
boolean undecorated)
|
protected static Window |
createWindowImpl(String type,
long parentWindowHandle,
Screen screen,
Capabilities caps,
boolean undecorated)
|
protected static Window |
createWindowImpl(String type,
NativeWindow parentNativeWindow,
Screen screen,
Capabilities caps,
boolean undecorated)
|
protected static Window |
createWindowImpl(String type,
Screen screen,
Capabilities caps,
boolean undecorated)
|
static void |
setUseEDT(boolean onoff)
Toggles the usage of an EventDispatchThread while creating a Display. The default is enabled. The EventDispatchThread is thread local to the Display instance. |
static boolean |
useEDT()
|
static Display |
wrapDisplay(String type,
long handle)
Instantiate a Display entity using the native handle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NewtFactory()
Method Detail |
---|
public static void setUseEDT(boolean onoff)
public static boolean useEDT()
setUseEDT(boolean)
public static Display createDisplay(String name)
public static Display createDisplay(String type, String name)
public static Screen createScreen(Display display, int index)
public static Screen createScreen(String type, Display display, int index)
public static Window createWindow(Screen screen, Capabilities caps)
public static Window createWindow(Screen screen, Capabilities caps, boolean undecorated)
public static Window createWindow(NativeWindow nParentWindow, Capabilities caps, boolean undecorated)
In case parentWindowObject
is a Window
instance,
the new window is added to it's list of children.
This assures proper handling of visibility, creation and destruction.
WindowEvent.EVENT_WINDOW_RESIZED
is not propagated to the child window for layout
,
you have to add an appropriate WindowListener
for this use case.
The parents visibility is passed to the new Window
In case parentWindowObject
is a different NativeWindow
implementation,
you have to handle all events appropriatly.
parentWindowObject
- either a NativeWindow instanceundecorated
- only impacts if the window is in top-level state, while attached to a parent window it's rendered undecorated alwaysprotected static Window createWindowImpl(String type, NativeWindow parentNativeWindow, Screen screen, Capabilities caps, boolean undecorated)
protected static Window createWindowImpl(String type, long parentWindowHandle, Screen screen, Capabilities caps, boolean undecorated)
protected static Window createWindowImpl(String type, Screen screen, Capabilities caps, boolean undecorated)
protected static Window createWindowImpl(String type, Capabilities caps, boolean undecorated)
public static Window createWindow(long parentWindowHandle, Screen screen, Capabilities caps, boolean undecorated)
parentWindowObject
- the native parent window handleundecorated
- only impacts if the window is in top-level state, while attached to a parent window it's rendered undecorated alwayspublic static Window createWindow(Object[] cstrArguments, Screen screen, Capabilities caps, boolean undecorated)
Currently only valid is AWTWindow(Frame frame)
,
to support an external created AWT Frame, ie the browsers embedded frame.
undecorated
- only impacts if the window is in top-level state, while attached to a parent window it's rendered undecorated alwayspublic static Window createWindow(String type, Screen screen, Capabilities caps, boolean undecorated)
undecorated
- only impacts if the window is in top-level state, while attached to a parent window it's rendered undecorated alwayspublic static Window createWindow(String type, Object[] cstrArguments, Screen screen, Capabilities caps, boolean undecorated)
public static Display wrapDisplay(String type, long handle)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |