MonitorDevices representing their combined virtual size.
All values of this interface are represented in pixel units, if not stated otherwise.
Virtual viewport covers all MonitorDevices viewports and has it's origin in the top-left corner, and may not be at 0/0.| Modifier and Type | Field and Description |
|---|---|
| public static final boolean | |
| public static final int | SCREEN_MODE_CHANGE_TIMEOUT
A 10s timeout for screen mode change. |
| protected static final ArrayList | |
| protected static int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract void | |
| public abstract int | |
| protected static void | |
| public abstract void | |
| public abstract void | |
| public boolean | equals(final Object
the reference object with which to compare. obj)Overrides java. getFQName() equals
|
| public static int | |
| public static Collection | |
| public abstract Display | |
| public static Screen | getFirstScreenOf(final Display display, final int idx, final int
start index, then increasing until found or end of list * fromIndex)
|
| public abstract String | Returns: The screen fully qualified Screen name, which is a key ofcom. + getIndex().
|
| public abstract AbstractGraphicsScreen | |
| public abstract int | |
| public abstract int | |
| public static Screen | getLastScreenOf(final Display display, final int idx, final int
start index, then decreasing until found or end of list. -1 is interpreted as size - 1. fromIndex)
|
| public final MonitorDevice | getMainMonitor(final RectangleImmutable
arbitrary rectangle in window units r)Returns the |
| public final MonitorDevice | |
| public abstract List | |
| public abstract List | |
| public abstract MonitorDevice | getPrimaryMonitor()
Returns the windowing manager's primary |
| public abstract int | |
| private static Screen | |
| public abstract RectangleImmutable | Returns: the rotated virtual viewport, i.e. top-left origin and size, in pixel units.See Coordinate System. |
| public abstract RectangleImmutable | Returns: the rotated virtual viewport, i.e. top-left origin and size, in window units.See Coordinate System. |
| public abstract int | |
| public abstract int | Returns: the x position of the virtual viewport's top-left origin in pixel units.See Coordinate System. |
| public abstract int | Returns: the y position of the virtual viewport's top-left origin in pixel units.See Coordinate System. |
| public abstract int | |
| public abstract boolean | |
| public abstract void | removeMonitorModeListener(MonitorModeListener
MonitorModeListener to be removed from MonitorEvent
|
| public abstract int | |
| public final void | unionOfMonitorViewports(final Rectangle
storage for result in pixel units, maybe null viewport, final Rectangle storage for result in window units, maybe null viewportInWindowUnits)Calculates the union of all monitor's |
| DEBUG | back to summary |
|---|---|
| public static final boolean DEBUG | |
| SCREEN_MODE_CHANGE_TIMEOUT | back to summary |
|---|---|
| public static final int SCREEN_MODE_CHANGE_TIMEOUT A 10s timeout for screen mode change. It is observed, that some platforms need a notable amount of time for this task, especially in case of rotation change. | |
| screenList | back to summary |
|---|---|
| protected static final ArrayList<WeakReference<Screen>> screenList | |
| screensActive | back to summary |
|---|---|
| protected static int screensActive | |
| Screen | back to summary |
|---|---|
| public Screen() | |
| addMonitorModeListener | back to summary |
|---|---|
public abstract void addMonitorModeListener(MonitorModeListener sml)
| |
| addReference | back to summary |
|---|---|
public abstract int addReference() throws NativeWindowException
| |
| addScreen2List | back to summary |
|---|---|
| protected static void addScreen2List(final Screen screen) | |
| createNative | back to summary |
|---|---|
| public abstract void createNative() throws NativeWindowException Manual trigger the native creation, if not done yet..
This method is usually invoke by
This method invokes
| |
| destroy | back to summary |
|---|---|
| public abstract void destroy() Manually trigger the destruction, incl. native destruction.
This method is usually invoke by
This method invokes | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. return true if obj is of type Display and both FQN
| |
| getActiveScreenNumber | back to summary |
|---|---|
| public static int getActiveScreenNumber() | |
| getAllScreens | back to summary |
|---|---|
| public static Collection Returns the global screen collection | |
| getDisplay | back to summary |
|---|---|
public abstract Display getDisplay()
| |
| getFirstScreenOf | back to summary |
|---|---|
public static Screen getFirstScreenOf(final Display display, final int idx, final int fromIndex)
| |
| getFQName | back to summary |
|---|---|
public abstract String getFQName()
| |
| getGraphicsScreen | back to summary |
|---|---|
| public abstract AbstractGraphicsScreen getGraphicsScreen() | |
| getHeight | back to summary |
|---|---|
public abstract int getHeight()
| |
| getIndex | back to summary |
|---|---|
public abstract int getIndex()
| |
| getLastScreenOf | back to summary |
|---|---|
public static Screen getLastScreenOf(final Display display, final int idx, final int fromIndex)
| |
| getMainMonitor | back to summary |
|---|---|
| public final MonitorDevice getMainMonitor(final RectangleImmutable r) Returns the
If no coverage is detected the first
| |
| getMonitor | back to summary |
|---|---|
| public final MonitorDevice getMonitor(final int monitorId) | |
| getMonitorDevices | back to summary |
|---|---|
| public abstract List Return a list of available | |
| getMonitorModes | back to summary |
|---|---|
| public abstract List Return a list of all
The list is ordered in descending order,
see | |
| getPrimaryMonitor | back to summary |
|---|---|
| public abstract MonitorDevice getPrimaryMonitor() Returns the windowing manager's primary
| |
| getReferenceCount | back to summary |
|---|---|
public abstract int getReferenceCount()
| |
| getScreenOfImpl | back to summary |
|---|---|
| private static Screen getScreenOfImpl(final Display display, final int idx, final int fromIndex, final int incr) | |
| getViewport | back to summary |
|---|---|
| public abstract RectangleImmutable getViewport() See Coordinate System.
| |
| getViewportInWindowUnits | back to summary |
|---|---|
| public abstract RectangleImmutable getViewportInWindowUnits() See Coordinate System.
| |
| getWidth | back to summary |
|---|---|
public abstract int getWidth()
| |
| getX | back to summary |
|---|---|
| public abstract int getX() See Coordinate System.
| |
| getY | back to summary |
|---|---|
| public abstract int getY() See Coordinate System.
| |
| hashCode | back to summary |
|---|---|
| public abstract int hashCode() Overrides java. return precomputed hashCode from FQN
| |
| isNativeValid | back to summary |
|---|---|
| public abstract boolean isNativeValid() | |
| removeMonitorModeListener | back to summary |
|---|---|
public abstract void removeMonitorModeListener(MonitorModeListener sml)
| |
| removeReference | back to summary |
|---|---|
public abstract int removeReference()
| |
| unionOfMonitorViewports | back to summary |
|---|---|
| public final void unionOfMonitorViewports(final Rectangle viewport, final Rectangle viewportInWindowUnits) Calculates the union of all monitor's
Should be equal to | |