BBjSystemMetrics
Description
In BBj 5.0 and higher, the BBjSystemMetrics object provides information about the client display.
Creation
BBjAPI > BBjSysGui > BBjSystemMetrics
A BBjSystemMetrics object is accessed using the following BBjSysGui method:
|
Return Value |
Method |
|---|---|
|
BBjSystemMetrics |
Methods of BBjSystemMetrics
|
Return Value |
Method |
|---|---|
|
getDevicePixelRatio(int screen) |
|
|
int |
|
| Rectangle |
getScreenBounds(int screen) |
|
int |
|
|
getScreenImage(int x, int y, int width, int height) getScreenImage(int screen) getScreenImage(int screen, int x, int y, int width, int height) |
|
| Insets |
getScreenInsets(int screen) |
|
int |
getScreenNumber(BBjControl control) |
|
int |
|
| Dimension |
getScreenSize(int screen) |
|
getSystemColor(int colorCode) |
|
|
float |
|
|
float |
Constants
|
0 |
MONOCHROME |
|
1 |
GRAYSCALE_16 |
|
2 |
GRAYSCALE_256 |
|
3 |
COLOR_16 |
|
4 |
COLOR_256 |
|
5 |
COLOR_MORE |
|
1 |
DKSHADOW3D |
|
2 |
FACE3D |
|
3 |
HIGHLIGHT3D |
|
4 |
LIGHT3D |
|
5 |
SHADOW3D |
|
6 |
ACTIVEBORDER |
|
7 |
ACTIVECAPTION |
|
8 |
APPWORKSPACE |
|
9 |
DESKTOP |
|
10 |
BTNTEXT |
|
11 |
CAPTIONTEXT |
|
12 |
GRAYTEXT |
|
13 |
HIGHLIGHT |
|
14 |
HIGHLIGHTEXT |
|
15 |
INACTIVEBORDER |
|
16 |
INACTIVECAPTION |
|
17 |
INACTIVECAPTIONTEXT |
|
18 |
INFOBK |
|
19 |
INFOTEXT |
|
20 |
MENU |
|
21 |
MENUTEXT |
|
22 |
SCROLLBAR |
|
23 |
WINDOW |
|
24 |
WINDOWFRAME |
|
25 |
WINDOWTEXT |
Remarks
If the WebUI browser environment provides multiscreen information, methods that take a (screen) parameter report information for the specified screen. Multiscreen information is currently available only in a secure context (https or localhost) in Chromium-based browsers. Screen numbers are not necessarily in the same order as in the Java Swing GUI client.
Example
|
See Also
BBj Object Creation and Assignment
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.