Interface DisplayInfo
- All Known Implementing Classes:
DisplayInfoImpl
Holds the human-readable information described by a display's EDID (Extended Display Identification Data), exposing
the same values that
EdidUtil parses from a raw EDID byte array.
For a display that reports a raw EDID, getEdid() returns those bytes and isEdidSynthetic() is
false. For a display that reports its attributes without an EDID (such as a built-in macOS Retina panel),
isEdidSynthetic() is true and getEdid() returns an EDID synthesized from those attributes.
A synthesized EDID is a valid 128-byte EDID (correct header and checksum) that re-parses to the same values this
interface exposes, so it is interchangeable with a real EDID for EdidUtil decoding. It carries only
those values, however: unlike a panel's real EDID it does not include the additional detail (chromaticity
coordinates, full detailed-timing parameters, extension blocks, etc.) that was never reported.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]getEdid()Gets the EDID byte array: the bytes reported by the display, or, whenisEdidSynthetic()istrue, an EDID synthesized from the display's reported attributes.intgetHcm()Gets the monitor width in cm.Gets the manufacturer ID.getModel()Gets the monitor model.Gets the preferred resolution.Gets the product ID.Gets the display product serial number, the text of the serial-number descriptor.Gets the serial number, the numeric ID serial number from bytes 12-15 of the EDID.intgetVcm()Gets the monitor height in cm.Gets the EDID version.bytegetWeek()Gets the week of manufacture.intgetYear()Gets the year of manufacture.booleanTests whether the display is digital.booleanIndicates whether the EDID returned bygetEdid()was synthesized from reported attributes rather than read directly from the display.
-
Method Details
-
getEdid
byte[] getEdid()Gets the EDID byte array: the bytes reported by the display, or, whenisEdidSynthetic()istrue, an EDID synthesized from the display's reported attributes.- Returns:
- A copy of the EDID byte array.
-
isEdidSynthetic
boolean isEdidSynthetic()Indicates whether the EDID returned bygetEdid()was synthesized from reported attributes rather than read directly from the display.- Returns:
trueif the EDID is synthetic,falseif it is the display's raw EDID.
-
getManufacturerID
-
getProductID
-
getSerialNo
String getSerialNo()Gets the serial number, the numeric ID serial number from bytes 12-15 of the EDID. This is distinct fromgetProductSerialNumber().- Returns:
- The serial number.
-
getWeek
byte getWeek()Gets the week of manufacture.- Returns:
- The week of manufacture.
-
getYear
int getYear()Gets the year of manufacture.- Returns:
- The year of manufacture.
-
getVersion
-
isDigital
boolean isDigital()Tests whether the display is digital.- Returns:
trueif the display is digital,falseotherwise.
-
getHcm
int getHcm()Gets the monitor width in cm.- Returns:
- The monitor width in cm.
-
getVcm
int getVcm()Gets the monitor height in cm.- Returns:
- The monitor height in cm.
-
getPreferredResolution
String getPreferredResolution()Gets the preferred resolution.- Returns:
- The preferred resolution (e.g.
"2560x1440").
-
getModel
-
getProductSerialNumber
String getProductSerialNumber()Gets the display product serial number, the text of the serial-number descriptor. This is distinct fromgetSerialNo(), which returns the numeric ID serial number.- Returns:
- The display product serial number, or an empty string if not available.
-