com.drismo.gui.monitor
Class MonitorFactory
java.lang.Object
com.drismo.gui.monitor.MonitorFactory
public class MonitorFactory
- extends java.lang.Object
This class is responsible of creating intents to create monitors.
- See Also:
getMonitorActivityIntent(android.content.Context, int)
Constructor Summary |
private |
MonitorFactory()
Should not be instantiated. |
Method Summary |
static android.content.Intent |
getMonitorActivityIntent(android.content.Context c,
int monitor)
Creates and returns an intent to startMonitoring a monitor based on the given parameters. |
static android.content.Intent |
getSelectedMonitorActivityIntent(android.content.Context c)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
selectedMonitor
public static int selectedMonitor
DEBUG_MONITOR
public static final int DEBUG_MONITOR
- See Also:
- Constant Field Values
PRIMITIVE_MONITOR
public static final int PRIMITIVE_MONITOR
- See Also:
- Constant Field Values
METER_MONITOR
public static final int METER_MONITOR
- See Also:
- Constant Field Values
MAP_MONITOR
public static final int MAP_MONITOR
- See Also:
- Constant Field Values
MonitorFactory
private MonitorFactory()
- Should not be instantiated.
getMonitorActivityIntent
public static android.content.Intent getMonitorActivityIntent(android.content.Context c,
int monitor)
- Creates and returns an intent to startMonitoring a monitor based on the given parameters.
- Parameters:
c
- Context to relate to the intent.monitor
- Selected monitor. See this class' static final variables.
- Returns:
- Returns a new intent to startMonitoring a new monitor activity.
- See Also:
DEBUG_MONITOR
,
PRIMITIVE_MONITOR
,
METER_MONITOR
,
MAP_MONITOR
getSelectedMonitorActivityIntent
public static android.content.Intent getSelectedMonitorActivityIntent(android.content.Context c)