DimensionImmutable size in [mm]MonitorMode original modeList<MonitorMode> supportedModesMonitorMode current modeRectangleImmutable viewport (rotated)All values of this interface are represented in pixel units, if not stated otherwise.
| Modifier and Type | Field and Description |
|---|---|
| protected MonitorMode | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected final int | |
| protected final MonitorMode | |
| protected final float[] | |
| protected final Screen | |
| protected final DimensionImmutable | |
| protected final ArrayHashSet | |
| protected final Rectangle | |
| protected final Rectangle |
| Access | Constructor and Description |
|---|---|
| protected | MonitorDevice(final Screen
associated screen, final int Screenunique monitor device ID nativeId, final boolean flag isClone, final boolean flag isPrimary, final DimensionImmutable size in millimeters sizeMM, final MonitorMode currentMode, final float[] pre-fetched current pixel-scale, maybe pixelScale, final Rectangle null for ScalableSurface#IDENTITY_PIXELSCALE.viewport in pixel-units viewportPU, final Rectangle viewport in window-units viewportWU, final ArrayHashSet<MonitorMode> all supported supportedModes)MonitorModes
|
| Modifier and Type | Method and Description |
|---|---|
| public final boolean | |
| public final boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. MonitorDevice objects
by evaluating equality of it's components:
|
| public final MonitorMode | |
| public final int | |
| public final MonitorMode | getOriginalMode()
Returns the immutable original |
| public float[] | getPixelScale(final float[] result)
Returns the current rotated pixel-scale of this monitor, i.e. horizontal and vertical. |
| public final float[] | Returns: the passed storage containing the ppmm for chainingfloat[2] storage for the ppmm result ppmmStore)Returns the pixels per millimeter value according to the current |
| public final float[] | Returns: the passed storage containing the ppmm for chainingfloat[2] storage for the ppmm result ppmmStore)Returns the pixels per millimeter value according to the given |
| public final Screen | |
| public final DimensionImmutable | |
| public final List | |
| public final RectangleImmutable | getViewport()
Returns the current |
| public final RectangleImmutable | getViewportInWindowUnits()
Returns the current |
| public final int | hashCode()
Overrides java.
|
| public final boolean | |
| public final boolean | isModeChangedByUs()
Returns |
| public final boolean | |
| public final boolean | |
| public abstract MonitorMode | |
| public abstract boolean | Returns: true if successful, otherwise falseto be made current, must be element of the list mode)getSupportedModes() and Screen#getMonitorModes().Set the current |
| public String | |
| public static void | unionOfViewports(final Rectangle
storage for result in pixel units, maybe null viewport, final Rectangle storage for result in window units, maybe null viewportInWindowUnits, final List<MonitorDevice> given list of monitors monitors)Calculates the union of the given monitor's |
| currentMode | back to summary |
|---|---|
| protected MonitorMode currentMode | |
| isClone | back to summary |
|---|---|
| protected boolean isClone | |
| isPrimary | back to summary |
|---|---|
| protected boolean isPrimary | |
| modeChanged | back to summary |
|---|---|
| protected boolean modeChanged | |
| nativeId | back to summary |
|---|---|
| protected final int nativeId | |
| originalMode | back to summary |
|---|---|
| protected final MonitorMode originalMode | |
| pixelScale | back to summary |
|---|---|
| protected final float[] pixelScale | |
| screen | back to summary |
|---|---|
| protected final Screen screen | |
| sizeMM | back to summary |
|---|---|
| protected final DimensionImmutable sizeMM | |
| supportedModes | back to summary |
|---|---|
| protected final ArrayHashSet<MonitorMode> supportedModes | |
| viewportPU | back to summary |
|---|---|
| protected final Rectangle viewportPU | |
| viewportWU | back to summary |
|---|---|
| protected final Rectangle viewportWU | |
| MonitorDevice | back to summary |
|---|---|
protected MonitorDevice(final Screen screen, final int nativeId, final boolean isClone, final boolean isPrimary, final DimensionImmutable sizeMM, final MonitorMode currentMode, final float[] pixelScale, final Rectangle viewportPU, final Rectangle viewportWU, final ArrayHashSet<MonitorMode> supportedModes)
| |
| contains | back to summary |
|---|---|
| public final boolean contains(final int x, final int y) Returns
| |
| equals | back to summary |
|---|---|
| public final boolean equals(final Object obj) Overrides java. Tests equality of two
| |
| getCurrentMode | back to summary |
|---|---|
| public final MonitorMode getCurrentMode() Returns the cached current
The returned
| |
| getId | back to summary |
|---|---|
public final int getId()
| |
| getOriginalMode | back to summary |
|---|---|
| public final MonitorMode getOriginalMode() Returns the immutable original
The returned | |
| getPixelScale | back to summary |
|---|---|
| public float[] getPixelScale(final float[] result) Returns the current rotated pixel-scale of this monitor, i.e. horizontal and vertical. | |
| getPixelsPerMM | back to summary |
|---|---|
| public final float[] getPixelsPerMM(final float[] ppmmStore) Returns the pixels per millimeter value according to the current
To convert the result to dpi, i.e. dots-per-inch, multiply both components with
| |
| getPixelsPerMM | back to summary |
|---|---|
| public final float[] getPixelsPerMM(final MonitorMode mode, final float[] ppmmStore) Returns the pixels per millimeter value according to the given
To convert the result to dpi, i.e. dots-per-inch, multiply both components with
| |
| getScreen | back to summary |
|---|---|
| public final Screen getScreen() Returns the | |
| getSizeMM | back to summary |
|---|---|
public final DimensionImmutable getSizeMM()
| |
| getSupportedModes | back to summary |
|---|---|
| public final List Returns a list of immutable
The list is ordered in descending order,
see Use w/ care, it's not a copy! | |
| getViewport | back to summary |
|---|---|
| public final RectangleImmutable getViewport() Returns the current
| |
| getViewportInWindowUnits | back to summary |
|---|---|
| public final RectangleImmutable getViewportInWindowUnits() Returns the current | |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Overrides java. Returns a combined hash code of it's elements:
| |
| isClone | back to summary |
|---|---|
public final boolean isClone()
| |
| isModeChangedByUs | back to summary |
|---|---|
| public final boolean isModeChangedByUs() Returns Note We cannot guarantee that we won't interfere w/ another running application's screen mode change or vice versa. | |
| isOriginalMode | back to summary |
|---|---|
| public final boolean isOriginalMode() | |
| isPrimary | back to summary |
|---|---|
| public final boolean isPrimary() Returns
| |
| queryCurrentMode | back to summary |
|---|---|
| public abstract MonitorMode queryCurrentMode() throws IllegalStateException Returns the current
The returned
| |
| setCurrentMode | back to summary |
|---|---|
| public abstract boolean setCurrentMode(MonitorMode mode) throws IllegalStateException Set the current This method is lifecycle heavy.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| unionOfViewports | back to summary |
|---|---|
| public static void unionOfViewports(final Rectangle viewport, final Rectangle viewportInWindowUnits, final List<MonitorDevice> monitors) Calculates the union of the given monitor's
| |