GraphicsEnvironment
, GraphicsConfiguration
Modifier and Type | Field and Description |
---|---|
private volatile Rectangle | |
pack-priv GraphicsConfiguration[] | |
pack-priv GraphicsConfiguration | |
pack-priv HashSet | |
private static AWTPermission | |
private volatile Insets | |
private DisplayMode | |
private int | |
private volatile int | screen
X11 screen number. |
private boolean | |
private SunDisplayChanger | |
pack-priv HashMap | |
private static Boolean |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | addDisplayChangedListener(DisplayChangedListener client)
Add a DisplayChangeListener to be notified when the display settings are changed. |
private void | |
private static native void | |
public synchronized void | displayChanged()
Implements sun. |
private static native void | |
private static void | |
private static native void | |
private static native void | |
private static void | |
public Rectangle | |
private Rectangle | |
private native int | |
private native int | |
public GraphicsConfiguration[] | getConfigurations()
Implements abstract java. |
public native int | |
private static native DisplayMode | |
public GraphicsConfiguration | getDefaultConfiguration()
Implements abstract java. |
private DisplayMode | |
public native long | |
public synchronized DisplayMode | getDisplayMode()
Overrides java. GraphicsDevice .
|
public synchronized DisplayMode[] | getDisplayModes()
Overrides java. GraphicsDevice .
|
private native void | |
public String | getIDstring()
Implements abstract java. |
public Insets | |
private synchronized DisplayMode | |
public int | |
private static native double | |
public native int | |
public Object | |
public int | |
public int | |
public int | getType()
Implements abstract java. |
private int | |
private static native boolean | |
public void | |
pack-priv static native boolean | |
public boolean | isDisplayChangeSupported()
Overrides java. true if this GraphicsDevice
supports low-level display changes.
|
public boolean | isFullScreenSupported()
Overrides java. true if this GraphicsDevice
supports full-screen exclusive mode.
|
private static synchronized boolean | isXrandrExtensionSupported()
Returns true only if: - the Xrandr extension is present - the necessary Xrandr functions were loaded successfully |
private void | |
private void | |
public void | paletteChanged()
Implements sun. |
private native Rectangle | |
public void | removeDisplayChangedListener(DisplayChangedListener client)
Remove a DisplayChangeListener from this X11GraphicsDevice. |
public void | |
public int | |
public int | |
public synchronized void | setDisplayMode(DisplayMode
The new display mode of this graphics device. dm)Overrides java. |
public synchronized void | setFullScreenWindow(Window
a window to use as the full-screen window; w)null
if returning to windowed mode. Some platforms expect the
fullscreen window to be a top-level component (i.e., a Frame );
therefore it is preferable to use a Frame here rather than a
Window .Overrides java. |
public void | |
public String |
bounds | back to summary |
---|---|
private volatile Rectangle bounds |
configs | back to summary |
---|---|
pack-priv GraphicsConfiguration[] configs |
defaultConfig | back to summary |
---|---|
pack-priv GraphicsConfiguration defaultConfig |
doubleBufferVisuals | back to summary |
---|---|
pack-priv HashSet<Integer> doubleBufferVisuals |
fullScreenExclusivePermission | back to summary |
---|---|
private static AWTPermission fullScreenExclusivePermission |
insets | back to summary |
---|---|
private volatile Insets insets |
origDisplayMode | back to summary |
---|---|
private DisplayMode origDisplayMode |
scale | back to summary |
---|---|
private int scale |
screen | back to summary |
---|---|
private volatile int screen X11 screen number. This identifier can become non-valid at any time therefore methods, which is using this id should be ready to it. |
shutdownHookRegistered | back to summary |
---|---|
private boolean shutdownHookRegistered |
topLevels | back to summary |
---|---|
private SunDisplayChanger topLevels |
x11ProxyKeyMap | back to summary |
---|---|
pack-priv HashMap<SurfaceType, Object> x11ProxyKeyMap |
xrandrExtSupported | back to summary |
---|---|
private static Boolean xrandrExtSupported |
X11GraphicsDevice | back to summary |
---|---|
public X11GraphicsDevice(int screennum) |
addDisplayChangedListener | back to summary |
---|---|
public void addDisplayChangedListener(DisplayChangedListener client) Add a DisplayChangeListener to be notified when the display settings are changed. Typically, only top-level containers need to be added to X11GraphicsDevice. |
addDoubleBufferVisual | back to summary |
---|---|
private void addDoubleBufferVisual(int visNum) |
configDisplayMode | back to summary |
---|---|
private static native void configDisplayMode(int screen, int width, int height, int displayMode) |
displayChanged | back to summary |
---|---|
public synchronized void displayChanged() Implements sun. From the DisplayChangedListener interface; called from X11GraphicsEnvironment when the display mode has been changed.
|
enterFullScreenExclusive | back to summary |
---|---|
private static native void enterFullScreenExclusive(long window) |
enterFullScreenExclusive | back to summary |
---|---|
private static void enterFullScreenExclusive(Window w) |
enumDisplayModes | back to summary |
---|---|
private static native void enumDisplayModes(int screen, ArrayList<DisplayMode> modes) |
exitFullScreenExclusive | back to summary |
---|---|
private static native void exitFullScreenExclusive(long window) |
exitFullScreenExclusive | back to summary |
---|---|
private static void exitFullScreenExclusive(Window w) |
getBounds | back to summary |
---|---|
public Rectangle getBounds() |
getBoundsImpl | back to summary |
---|---|
private Rectangle getBoundsImpl() |
getConfigColormap | back to summary |
---|---|
private native int getConfigColormap(int index, int screen) |
getConfigDepth | back to summary |
---|---|
private native int getConfigDepth(int index, int screen) |
getConfigurations | back to summary |
---|---|
public GraphicsConfiguration[] getConfigurations() Implements abstract java. Returns all of the graphics configurations associated with this graphics device.
|
getConfigVisualId | back to summary |
---|---|
public native int getConfigVisualId(int index, int screen) |
getCurrentDisplayMode | back to summary |
---|---|
private static native DisplayMode getCurrentDisplayMode(int screen) |
getDefaultConfiguration | back to summary |
---|---|
public GraphicsConfiguration getDefaultConfiguration() Implements abstract java. Returns the default graphics configuration associated with this graphics device.
|
getDefaultDisplayMode | back to summary |
---|---|
private DisplayMode getDefaultDisplayMode() |
getDisplay | back to summary |
---|---|
public native long getDisplay() Returns the X11 Display of this device. This method is also in MDrawingSurfaceInfo but need it here to be able to allow a GraphicsConfigTemplate to get the Display. |
getDisplayMode | back to summary |
---|---|
public synchronized DisplayMode getDisplayMode() Overrides java. Doc from java. Returns the current display mode of this
|
getDisplayModes | back to summary |
---|---|
public synchronized DisplayMode[] getDisplayModes() Overrides java. Doc from java. Returns all display modes available for this
|
getDoubleBufferVisuals | back to summary |
---|---|
private native void getDoubleBufferVisuals(int screen) |
getIDstring | back to summary |
---|---|
public String getIDstring() Implements abstract java. Returns the identification string associated with this graphics device.
|
getInsets | back to summary |
---|---|
public Insets getInsets() |
getMatchingDisplayMode | back to summary |
---|---|
private synchronized DisplayMode getMatchingDisplayMode(DisplayMode dm) |
getNativeScale | back to summary |
---|---|
public int getNativeScale() |
getNativeScaleFactor | back to summary |
---|---|
private static native double getNativeScaleFactor(int screen) |
getNumConfigs | back to summary |
---|---|
public native int getNumConfigs(int screen) |
getProxyKeyFor | back to summary |
---|---|
public Object getProxyKeyFor(SurfaceType st) |
getScaleFactor | back to summary |
---|---|
public int getScaleFactor() |
getScreen | back to summary |
---|---|
public int getScreen() Returns the X11 screen of the device. |
getType | back to summary |
---|---|
public int getType() Implements abstract java. Returns the type of the graphics device.
|
initScaleFactor | back to summary |
---|---|
private int initScaleFactor() |
initXrandrExtension | back to summary |
---|---|
private static native boolean initXrandrExtension() |
invalidate | back to summary |
---|---|
public void invalidate(X11GraphicsDevice device) |
isDBESupported | back to summary |
---|---|
pack-priv static native boolean isDBESupported() |
isDisplayChangeSupported | back to summary |
---|---|
public boolean isDisplayChangeSupported() Overrides java. Doc from java. Returns
|
isFullScreenSupported | back to summary |
---|---|
public boolean isFullScreenSupported() Overrides java. Doc from java. Returns
|
isXrandrExtensionSupported | back to summary |
---|---|
private static synchronized boolean isXrandrExtensionSupported() Returns true only if: - the Xrandr extension is present - the necessary Xrandr functions were loaded successfully |
makeConfigurations | back to summary |
---|---|
private void makeConfigurations() |
makeDefaultConfiguration | back to summary |
---|---|
private void makeDefaultConfiguration() |
paletteChanged | back to summary |
---|---|
public void paletteChanged() Implements sun. From the DisplayChangedListener interface; devices do not need to react to this event.
|
pGetBounds | back to summary |
---|---|
private native Rectangle pGetBounds(int screenNum) |
removeDisplayChangedListener | back to summary |
---|---|
public void removeDisplayChangedListener(DisplayChangedListener client) Remove a DisplayChangeListener from this X11GraphicsDevice. |
resetInsets | back to summary |
---|---|
public void resetInsets() |
scaleDown | back to summary |
---|---|
public int scaleDown(int x) |
scaleUp | back to summary |
---|---|
public int scaleUp(int x) |
setDisplayMode | back to summary |
---|---|
public synchronized void setDisplayMode(DisplayMode dm) Overrides java. Doc from java. Sets the display mode of this graphics device. This is only allowed
if
The display mode must be one of the display modes returned by
Example code:
|
setFullScreenWindow | back to summary |
---|---|
public synchronized void setFullScreenWindow(Window w) Overrides java. Doc from java. Enter full-screen mode, or return to windowed mode. The entered
full-screen mode may be either exclusive or simulated. Exclusive
mode is only available if Exclusive mode implies:
The simulated full-screen mode places and resizes the window to the maximum
possible visible area of the screen. However, the native windowing system
may modify the requested geometry-related data, so that the When entering full-screen mode, if the window to be used as a full-screen window is not visible, this method will make it visible. It will remain visible when returning to windowed mode.
When entering full-screen mode, all the translucency effects are reset for
the window. Its shape is set to
It is unspecified and platform-dependent how decorated windows operate
in full-screen mode. For this reason, it is recommended to turn off
the decorations in a
When returning to windowed mode from an exclusive full-screen window,
any display changes made by calling |
setInsets | back to summary |
---|---|
public void setInsets(Insets newInsets) |
toString | back to summary |
---|---|
public String toString() Overrides java. Doc from java. Returns a string representation of the object.
|