Class Win32DesktopMonitor
java.lang.Object
io.github.eggy03.ferrumx.windows.entity.display.Win32DesktopMonitor
Immutable representation of a monitor device on a Windows system.
Fields correspond to properties retrieved from the Win32_DesktopMonitor WMI class.
Usage example
// Build a new instance
Win32DesktopMonitor monitor = Win32DesktopMonitor.builder()
.deviceId("MON1")
.name("Generic PnP Monitor")
.pixelsPerXLogicalInch(96)
.build();
// Modify using toBuilder (copy-on-write)
Win32DesktopMonitor updated = monitor.toBuilder()
.pixelsPerXLogicalInch(120)
.build();
- Since:
- 3.0.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) @Nullable StringUnique identifier of the desktop monitor on the system.(package private) @Nullable StringName of the manufacturer of the monitor.(package private) @Nullable StringType of monitor.(package private) @Nullable StringLabel by which the object is known.(package private) @Nullable IntegerResolution along the x-axis (horizontal direction) of the monitor.(package private) @Nullable IntegerResolution along the y-axis (vertical direction) of the monitor.(package private) @Nullable StringWindows Plug and Play device identifier of the monitor.(package private) @Nullable StringCurrent operational status of the monitor device. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
deviceId
Unique identifier of the desktop monitor on the system.Example:
"DesktopMonitor1" -
name
Label by which the object is known.Example:
"Default Monitor" -
pnpDeviceId
Windows Plug and Play device identifier of the monitor.Example:
"DISPLAY\\DELA0D1\\4&273ACF3E&0&UID1048858" -
status
Current operational status of the monitor device.Possible OPERATIONAL values:
- "OK"
- "Degraded"
- "Pred Fail"
Possible NON-OPERATIONAL values:
- "Unknown"
- "Error"
- "Starting"
- "Stopping"
- "Service"
Possible OTHER values:
- "Stressed"
- "NonRecover"
- "No Contact"
- "Lost Comm"
-
monitorManufacturer
Name of the manufacturer of the monitor.Example:
"NEC" -
monitorType
Type of monitor.Example:
"NEC 5FGp" -
pixelsPerXLogicalInch
Resolution along the x-axis (horizontal direction) of the monitor. -
pixelsPerYLogicalInch
Resolution along the y-axis (vertical direction) of the monitor.
-
-
Constructor Details
-
Win32DesktopMonitor
public Win32DesktopMonitor()
-
-
Method Details
-
toString
-