| Modifier and Type | Class and Description |
|---|---|
| public static class | XRandR.
Encapsulates the configuration of a monitor. |
| Modifier and Type | Field and Description |
|---|---|
| private static XRandR. | |
| private static final Pattern | |
| private static String | primaryScreenIdentifier
Either the screen marked as "primary" (if it is turned on) or the one with the largest (current) resolution. |
| private static XRandR. | savedConfiguration
Used to save the configuration of all output devices to restore it on exit or in case of crash. |
| private static final Pattern | |
| private static final Pattern | |
| private static Map | |
| private static final Pattern |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static XRandR. | |
| private static XRandR. | |
| public static XRandR. | Returns: The current screen configuration of the primary device, or an empty array if xrandr is not supported
|
| public static XRandR. | Returns: the possible resolutions of the named screen, ornull if there is no such screen
|
| public static String[] | Returns: the name of connected screens, or an empty array if xrandr is not supported
|
| private static void | parseScreenHeader(int[]
the int-array to write the position into screenPosition, String String containing resolution and position, from xrandr resPos)Parses a screen configuration header and extracts information about the position of the screen. |
| private static void | parseScreenModeline(List<XRandR.
the list to add the Screen to if it's valid allModes,the list to add the current screen config to current,the name of this screen name, int width, int height, String[] config string modeLine, int[] position of this screen screenPosition)Parses a screen configuration and adds it to one of the lists if valid. |
| private static void | |
| public static void | |
| public static void | |
| pack-priv static DisplayMode | |
| public static void | setConfiguration(boolean
if screens not included in screens should be turned off (true) or left alone (false) disableOthers, XRandR.The desired screen set, may not be screensnull
|
| current | back to summary |
|---|---|
| private static XRandR. | |
| FREQ_PATTERN | back to summary |
|---|---|
| private static final Pattern FREQ_PATTERN | |
| primaryScreenIdentifier | back to summary |
|---|---|
| private static String primaryScreenIdentifier Either the screen marked as "primary" (if it is turned on) or the one with the largest (current) resolution. | |
| savedConfiguration | back to summary |
|---|---|
| private static XRandR. Used to save the configuration of all output devices to restore it on exit or in case of crash. | |
| SCREEN_HEADER_PATTERN | back to summary |
|---|---|
| private static final Pattern SCREEN_HEADER_PATTERN | |
| SCREEN_MODELINE_PATTERN | back to summary |
|---|---|
| private static final Pattern SCREEN_MODELINE_PATTERN | |
| screens | back to summary |
|---|---|
| private static Map<String, XRandR. | |
| WHITESPACE_PATTERN | back to summary |
|---|---|
| private static final Pattern WHITESPACE_PATTERN | |
| XRandR | back to summary |
|---|---|
| public XRandR() | |
| DisplayModetoScreen | back to summary |
|---|---|
| pack-priv static XRandR. | |
| findPrimary | back to summary |
|---|---|
| private static XRandR. | |
| getConfiguration | back to summary |
|---|---|
| public static XRandR. | |
| getResolutions | back to summary |
|---|---|
| public static XRandR. | |
| getScreenNames | back to summary |
|---|---|
public static String[] getScreenNames()
| |
| parseScreenHeader | back to summary |
|---|---|
| private static void parseScreenHeader(int[] screenPosition, String resPos) Parses a screen configuration header and extracts information about the position of the screen.
| |
| parseScreenModeline | back to summary |
|---|---|
| private static void parseScreenModeline(List<XRandR. Parses a screen configuration and adds it to one of the lists if valid. | |
| populate | back to summary |
|---|---|
| private static void populate() | |
| restoreConfiguration | back to summary |
|---|---|
| public static void restoreConfiguration() Restores the configuration for all connected display devices. Used on exit or in case of a crash to reset all devices. | |
| saveConfiguration | back to summary |
|---|---|
| public static void saveConfiguration() Saves the current configuration for all connected display devices. This configuration can be restored on exit/crash by calling restoreConfiguration() | |
| ScreentoDisplayMode | back to summary |
|---|---|
| pack-priv static DisplayMode ScreentoDisplayMode(XRandR. | |
| setConfiguration | back to summary |
|---|---|
public static void setConfiguration(boolean disableOthers, XRandR.
| |
| Modifier and Type | Field and Description |
|---|---|
| public final int | freq
Frequency in Hz |
| public final int | height
Height in pixels |
| public final String | name
Name for this output |
| public final int | width
Width in pixels |
| public int | xPos
Position on the x-axis, in pixels |
| public int | yPos
Position on the y-axis, in pixels |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public String |
| freq | back to summary |
|---|---|
| public final int freq Frequency in Hz | |
| height | back to summary |
|---|---|
| public final int height Height in pixels | |
| name | back to summary |
|---|---|
| public final String name Name for this output | |
| width | back to summary |
|---|---|
| public final int width Width in pixels | |
| xPos | back to summary |
|---|---|
| public int xPos Position on the x-axis, in pixels | |
| yPos | back to summary |
|---|---|
| public int yPos Position on the y-axis, in pixels | |
| Screen | back to summary |
|---|---|
| pack-priv Screen(String name, int width, int height, int freq, int xPos, int yPos) | |
| getArgs | back to summary |
|---|---|
| private void getArgs(List<String> argList) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |