Package oshi.hardware.platform.windows
Class WindowsGraphicsCard
- java.lang.Object
-
- oshi.hardware.common.AbstractGraphicsCard
-
- oshi.hardware.platform.windows.WindowsGraphicsCard
-
- All Implemented Interfaces:
GraphicsCard
@Immutable final class WindowsGraphicsCard extends AbstractGraphicsCard
Graphics Card obtained from WMI
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringADAPTER_STRINGstatic java.lang.StringDISPLAY_DEVICES_REGISTRY_PATHstatic java.lang.StringDRIVER_DESCstatic java.lang.StringDRIVER_VERSIONprivate static booleanIS_VISTA_OR_GREATERprivate static org.slf4j.LoggerLOGstatic java.lang.StringMEMORY_SIZEstatic java.lang.StringQW_MEMORY_SIZEstatic java.lang.StringVENDOR
-
Constructor Summary
Constructors Constructor Description WindowsGraphicsCard(java.lang.String name, java.lang.String deviceId, java.lang.String vendor, java.lang.String versionInfo, long vram)Constructor for WindowsGraphicsCard
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.List<GraphicsCard>getGraphicsCards()public method used byAbstractHardwareAbstractionLayerto access the graphics cards.private static java.util.List<GraphicsCard>getGraphicsCardsFromWmi()-
Methods inherited from class oshi.hardware.common.AbstractGraphicsCard
getDeviceId, getName, getVendor, getVersionInfo, getVRam, toString
-
-
-
-
Field Detail
-
LOG
private static final org.slf4j.Logger LOG
-
IS_VISTA_OR_GREATER
private static final boolean IS_VISTA_OR_GREATER
-
ADAPTER_STRING
public static final java.lang.String ADAPTER_STRING
- See Also:
- Constant Field Values
-
DRIVER_DESC
public static final java.lang.String DRIVER_DESC
- See Also:
- Constant Field Values
-
DRIVER_VERSION
public static final java.lang.String DRIVER_VERSION
- See Also:
- Constant Field Values
-
VENDOR
public static final java.lang.String VENDOR
- See Also:
- Constant Field Values
-
QW_MEMORY_SIZE
public static final java.lang.String QW_MEMORY_SIZE
- See Also:
- Constant Field Values
-
MEMORY_SIZE
public static final java.lang.String MEMORY_SIZE
- See Also:
- Constant Field Values
-
DISPLAY_DEVICES_REGISTRY_PATH
public static final java.lang.String DISPLAY_DEVICES_REGISTRY_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WindowsGraphicsCard
WindowsGraphicsCard(java.lang.String name, java.lang.String deviceId, java.lang.String vendor, java.lang.String versionInfo, long vram)Constructor for WindowsGraphicsCard- Parameters:
name- The namedeviceId- The device IDvendor- The vendorversionInfo- The version infovram- The VRAM
-
-
Method Detail
-
getGraphicsCards
public static java.util.List<GraphicsCard> getGraphicsCards()
public method used byAbstractHardwareAbstractionLayerto access the graphics cards.- Returns:
- List of
WindowsGraphicsCardobjects.
-
getGraphicsCardsFromWmi
private static java.util.List<GraphicsCard> getGraphicsCardsFromWmi()
-
-