public class SystemMetrics
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
SM_ARRANGE
Flags specifying how the system arranges minimized windows.
|
static int |
SM_CLEANBOOT
Value that specifies how the system was started:
0 Normal boot
1 Fail-safe boot
2 Fail-safe with network boot
|
static int |
SM_CMONITORS
Windows 98, Windows 2000: Number of display monitors on the desktop.
|
static int |
SM_CMOUSEBUTTONS
Number of buttons on mouse, or zero if no mouse is installed.
|
static int |
SM_CXBORDER
Width and height, in pixels, of the window border.
|
static int |
SM_CXCURSOR
Width and height, in pixels, of the cursor.
|
static int |
SM_CXDLGFRAME
Same as SM_CXFIXEDFRAME and SM_CYFIXEDFRAME.
|
static int |
SM_CXDOUBLECLK
Width and height, in pixels, of the rectangle around the location of a first click in a double-click sequence.
|
static int |
SM_CXDRAG
Width and height, in pixels, of the rectangle centered on a drag point to allow limited movement of the mouse
pointer before a drag operation begins.
|
static int |
SM_CXEDGE
Dimensions, in pixels, of a 3-D border.
|
static int |
SM_CXFIXEDFRAME
Thickness, in pixels, of the frame around the perimeter of a window that has a caption but is not sizable.
|
static int |
SM_CXFRAME
Same as SM_CXSIZEFRAME and SM_CYSIZEFRAME.
|
static int |
SM_CXFULLSCREEN
Width and height of the client area for a full-screen window on the primary display monitor.
|
static int |
SM_CXHSCROLL
Width, in pixels, of the arrow bitmap on a horizontal scroll bar; and height, in pixels, of a horizontal scroll bar.
|
static int |
SM_CXHTHUMB
Width, in pixels, of the thumb box in a horizontal scroll bar.
|
static int |
SM_CXICON
The default width and height, in pixels, of an icon.
|
static int |
SM_CXICONSPACING
Dimensions, in pixels, of a grid cell for items in large icon view.
|
static int |
SM_CXMAXIMIZED
Default dimensions, in pixels, of a maximized top-level window on the primary display monitor.
|
static int |
SM_CXMAXTRACK
Default maximum dimensions, in pixels, of a window that has a caption and sizing borders.
|
static int |
SM_CXMENUCHECK
Dimensions, in pixels, of the default menu check-mark bitmap.
|
static int |
SM_CXMENUSIZE
Dimensions, in pixels, of menu bar buttons, such as the child window close button used in the multiple document
interface.
|
static int |
SM_CXMIN
Minimum width and height, in pixels, of a window.
|
static int |
SM_CXMINIMIZED
Dimensions, in pixels, of a normal minimized window.
|
static int |
SM_CXMINSPACING
Dimensions, in pixels, of a grid cell for minimized windows.
|
static int |
SM_CXMINTRACK
Minimum tracking width and height, in pixels, of a window.
|
static int |
SM_CXSCREEN
Width and height, in pixels, of the screen of the primary display monitor.
|
static int |
SM_CXSIZE
Width and height, in pixels, of a button in a window's caption or title bar.
|
static int |
SM_CXSIZEFRAME
Thickness, in pixels, of the sizing border around the perimeter of a window that can be resized.
|
static int |
SM_CXSMICON
Recommended dimensions, in pixels, of a small icon.
|
static int |
SM_CXSMSIZE
Dimensions, in pixels, of small caption buttons.
|
static int |
SM_CXVIRTUALSCREEN
Windows 98, Windows 2000: Width and height, in pixels, of the virtual screen.
|
static int |
SM_CXVSCROLL
Width, in pixels, of a vertical scroll bar; and height, in pixels, of the arrow bitmap on a vertical scroll bar.
|
static int |
SM_CYBORDER |
static int |
SM_CYCAPTION
Height, in pixels, of a normal caption area.
|
static int |
SM_CYCURSOR |
static int |
SM_CYDLGFRAME |
static int |
SM_CYDOUBLECLK |
static int |
SM_CYDRAG |
static int |
SM_CYEDGE |
static int |
SM_CYFIXEDFRAME |
static int |
SM_CYFRAME |
static int |
SM_CYFULLSCREEN |
static int |
SM_CYHSCROLL |
static int |
SM_CYICON |
static int |
SM_CYICONSPACING |
static int |
SM_CYKANJIWINDOW
For double byte character set versions of the system, this is the height, in pixels, of the Kanji window at the
bottom of the screen.
|
static int |
SM_CYMAXIMIZED |
static int |
SM_CYMAXTRACK |
static int |
SM_CYMENU
Height, in pixels, of a single-line menu bar.
|
static int |
SM_CYMENUCHECK |
static int |
SM_CYMENUSIZE |
static int |
SM_CYMIN |
static int |
SM_CYMINIMIZED |
static int |
SM_CYMINSPACING |
static int |
SM_CYMINTRACK |
static int |
SM_CYSCREEN |
static int |
SM_CYSIZE |
static int |
SM_CYSIZEFRAME |
static int |
SM_CYSMCAPTION
Height, in pixels, of a small caption.
|
static int |
SM_CYSMICON |
static int |
SM_CYSMSIZE |
static int |
SM_CYVIRTUALSCREEN |
static int |
SM_CYVSCROLL |
static int |
SM_CYVTHUMB
Height, in pixels, of the thumb box in a vertical scroll bar.
|
static int |
SM_DBCSENABLED
TRUE or nonzero, if the double-byte character set (DBCS version of User.exe is installed; FALSE or zero otherwise.
|
static int |
SM_DEBUG
TRUE or nonzero, if the debugging version of User.exe is installed; FALSE or zero otherwise.
|
static int |
SM_MENUDROPALIGNMENT
TRUE or nonzero if drop-down menus are right-aligned with the corresponding menu bar item; FALSE or zero, if the
menus are left-aligned.
|
static int |
SM_MIDEASTENABLED
TRUE, if the system is enabled for Hebrew and Arabic languages.
|
static int |
SM_MOUSEPRESENT
TRUE or nonzero, if a mouse is installed; FALSE or zero otherwise.
|
static int |
SM_MOUSEWHEELPRESENT
Windows NT 4.0 and later, Windows 98: TRUE or nonzero, if a mouse with a wheel is installed; FALSE or zero
otherwise.
|
static int |
SM_NETWORK
The least significant bit is set if a network is present; otherwise, it is cleared.
|
static int |
SM_PENWINDOWS
TRUE or nonzero, if the Microsoft Windows for Pen computing extensions are installed; FALSE or zero otherwise.
|
static int |
SM_SAMEDISPLAYFORMAT
Windows 98, Windows 2000: TRUE, if all the display monitors have the same color format, FALSE otherwise.
|
static int |
SM_SECURE
TRUE, if security is present; FALSE otherwise.
|
static int |
SM_SHOWSOUNDS
TRUE or nonzero, if the user requires an application to present information visually in situations where it would
otherwise present the information only in audible form; FALSE or zero otherwise.
|
static int |
SM_SLOWMACHINE
TRUE, if the computer has a low-end (slow processor; FALSE otherwise.
|
static int |
SM_SWAPBUTTON
TRUE or nonzero, if the meanings of the left and right mouse buttons are swapped; FALSE or zero otherwise.
|
static int |
SM_XVIRTUALSCREEN
Windows 98, Windows 2000: Coordinates for the left side and the top of the virtual screen.
|
static int |
SM_YVIRTUALSCREEN |
Constructor and Description |
---|
SystemMetrics() |
Modifier and Type | Method and Description |
---|---|
static int |
getSystemMetrics(int index)
Retrieves system metrics or system configuration settings.
|
public static int SM_ARRANGE
public static int SM_CLEANBOOT
Fail-safe boot (also called SafeBoot) bypasses the user's startup files.
public static int SM_CMONITORS
public static int SM_CMOUSEBUTTONS
public static int SM_CXBORDER
public static int SM_CYBORDER
public static int SM_CXCURSOR
public static int SM_CYCURSOR
public static int SM_CXDLGFRAME
public static int SM_CYDLGFRAME
public static int SM_CXDOUBLECLK
public static int SM_CYDOUBLECLK
public static int SM_CXDRAG
public static int SM_CYDRAG
public static int SM_CXEDGE
public static int SM_CYEDGE
public static int SM_CXFIXEDFRAME
Same as SM_CXDLGFRAME and SM_CYDLGFRAME.
public static int SM_CYFIXEDFRAME
public static int SM_CXFRAME
public static int SM_CYFRAME
public static int SM_CXFULLSCREEN
public static int SM_CYFULLSCREEN
public static int SM_CXHSCROLL
public static int SM_CYHSCROLL
public static int SM_CXHTHUMB
public static int SM_CXICON
public static int SM_CYICON
public static int SM_CXICONSPACING
public static int SM_CYICONSPACING
public static int SM_CXMAXIMIZED
public static int SM_CYMAXIMIZED
public static int SM_CXMAXTRACK
public static int SM_CYMAXTRACK
public static int SM_CXMENUCHECK
public static int SM_CYMENUCHECK
public static int SM_CXMENUSIZE
public static int SM_CYMENUSIZE
public static int SM_CXMIN
public static int SM_CYMIN
public static int SM_CXMINIMIZED
public static int SM_CYMINIMIZED
public static int SM_CXMINSPACING
public static int SM_CYMINSPACING
public static int SM_CXMINTRACK
public static int SM_CYMINTRACK
public static int SM_CXSCREEN
public static int SM_CYSCREEN
public static int SM_CXSIZE
public static int SM_CYSIZE
public static int SM_CXSIZEFRAME
Same as SM_CXFRAME and SM_CYFRAME.
public static int SM_CYSIZEFRAME
public static int SM_CXSMICON
public static int SM_CYSMICON
public static int SM_CXSMSIZE
public static int SM_CYSMSIZE
public static int SM_CXVIRTUALSCREEN
public static int SM_CYVIRTUALSCREEN
public static int SM_CXVSCROLL
public static int SM_CYVSCROLL
public static int SM_CYCAPTION
public static int SM_CYKANJIWINDOW
public static int SM_CYMENU
public static int SM_CYSMCAPTION
public static int SM_CYVTHUMB
public static int SM_DBCSENABLED
public static int SM_DEBUG
public static int SM_MENUDROPALIGNMENT
public static int SM_MIDEASTENABLED
public static int SM_MOUSEPRESENT
public static int SM_MOUSEWHEELPRESENT
public static int SM_NETWORK
public static int SM_PENWINDOWS
public static int SM_SECURE
public static int SM_SAMEDISPLAYFORMAT
public static int SM_SHOWSOUNDS
public static int SM_SLOWMACHINE
public static int SM_SWAPBUTTON
public static int SM_XVIRTUALSCREEN
public static int SM_YVIRTUALSCREEN