Top Fields Constructors Methods
jogamp.newt

public Class ScreenMonitorState

extends Object
Class Inheritance
Imports
com.jogamp.common.util.ArrayHashSet, com.jogamp.common.util.locks.LockFactory, .RecursiveLock, com.jogamp.newt.MonitorDevice, .Screen, .MonitorMode, com.jogamp.newt.event.MonitorEvent, .MonitorModeListener, java.util.ArrayList, .HashMap

Field Summary

Modifier and TypeField and Description
private final ArrayHashSet<MonitorMode>
private final ArrayHashSet<MonitorDevice>
private static boolean
private final ArrayList<MonitorModeListener>
private final RecursiveLock
private final MonitorDevice
private static RecursiveLock
private static HashMap<String, ScreenMonitorState>

Constructor Summary

AccessConstructor and Description
public
ScreenMonitorState(final ArrayHashSet<MonitorDevice> allMonitors, final ArrayHashSet<MonitorMode> allMonitorModes, final MonitorDevice primaryMonitor)

Method Summary

Modifier and TypeMethod and Description
protected final int
protected void
fireMonitorModeChanged(final MonitorDevice monitor, final MonitorMode currentMode, final boolean success)

protected final void
fireMonitorModeChangeNotify(final MonitorDevice monitor, final MonitorMode desiredMode)

protected final MonitorDevice
getMonitor(final MonitorDevice monitor)

protected ArrayHashSet<MonitorDevice>
protected ArrayHashSet<MonitorMode>
protected MonitorDevice
protected static ScreenMonitorState
getScreenMonitorState(final String screenFQN)

protected static ScreenMonitorState
protected final void
lock()

protected static void
protected static void
mapScreenMonitorState(final String screenFQN, final ScreenMonitorState sms)

protected final int
protected final void
protected static void
protected static void

Returns:

true if mapping is empty, ie no more usage of the mapped ScreenMonitorState
unmapScreenMonitorState
(final String
the prev user
screenFQN
)

protected static void
protected final void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allMonitorModesback to summary
private final ArrayHashSet<MonitorMode> allMonitorModes
allMonitorsback to summary
private final ArrayHashSet<MonitorDevice> allMonitors
DEBUGback to summary
private static boolean DEBUG
listenerback to summary
private final ArrayList<MonitorModeListener> listener
lockback to summary
private final RecursiveLock lock
primaryMonitorback to summary
private final MonitorDevice primaryMonitor
screen2ScreenMonitorStateback to summary
private static RecursiveLock screen2ScreenMonitorState
screenFQN2ScreenMonitorStateback to summary
private static HashMap<String, ScreenMonitorState> screenFQN2ScreenMonitorState

Constructor Detail

ScreenMonitorStateback to summary
public ScreenMonitorState(final ArrayHashSet<MonitorDevice> allMonitors, final ArrayHashSet<MonitorMode> allMonitorModes, final MonitorDevice primaryMonitor)

Method Detail

addListenerback to summary
protected final int addListener(final MonitorModeListener l)
fireMonitorModeChangedback to summary
protected void fireMonitorModeChanged(final MonitorDevice monitor, final MonitorMode currentMode, final boolean success)
fireMonitorModeChangeNotifyback to summary
protected final void fireMonitorModeChangeNotify(final MonitorDevice monitor, final MonitorMode desiredMode)
getMonitorback to summary
protected final MonitorDevice getMonitor(final MonitorDevice monitor)
getMonitorDevicesback to summary
protected ArrayHashSet<MonitorDevice> getMonitorDevices()
getMonitorModesback to summary
protected ArrayHashSet<MonitorMode> getMonitorModes()
getPrimaryMonitorDeviceback to summary
protected MonitorDevice getPrimaryMonitorDevice()
getScreenMonitorStateback to summary
protected static ScreenMonitorState getScreenMonitorState(final String screenFQN)
getScreenMonitorStateUnlockedback to summary
protected static ScreenMonitorState getScreenMonitorStateUnlocked(final String screenFQN)
lockback to summary
protected final void lock() throws RuntimeException
lockScreenMonitorStateback to summary
protected static void lockScreenMonitorState()
mapScreenMonitorStateback to summary
protected static void mapScreenMonitorState(final String screenFQN, final ScreenMonitorState sms)
removeListenerback to summary
protected final int removeListener(final MonitorModeListener l)
unlockback to summary
protected final void unlock() throws RuntimeException
unlockScreenMonitorStateback to summary
protected static void unlockScreenMonitorState()
unmapScreenMonitorStateback to summary
protected static void unmapScreenMonitorState(final String screenFQN)
Parameters
screenFQN:String

the prev user

Returns:void

true if mapping is empty, ie no more usage of the mapped ScreenMonitorState

unmapScreenMonitorStateUnlockedback to summary
protected static void unmapScreenMonitorStateUnlocked(final String screenFQN)
validateMonitorback to summary
protected final void validateMonitor(final MonitorDevice monitor)