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.String
ADAPTER_STRING
static java.lang.String
DISPLAY_DEVICES_REGISTRY_PATH
static java.lang.String
DRIVER_DESC
static java.lang.String
DRIVER_VERSION
private static boolean
IS_VISTA_OR_GREATER
private static org.slf4j.Logger
LOG
static java.lang.String
MEMORY_SIZE
static java.lang.String
QW_MEMORY_SIZE
static java.lang.String
VENDOR
-
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 byAbstractHardwareAbstractionLayer
to 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 byAbstractHardwareAbstractionLayer
to access the graphics cards.- Returns:
- List of
WindowsGraphicsCard
objects.
-
getGraphicsCardsFromWmi
private static java.util.List<GraphicsCard> getGraphicsCardsFromWmi()
-
-