org.android.activityminer.app.util
Class PreferencesFactory

Package class diagram package PreferencesFactory
java.lang.Object
  extended by org.android.activityminer.app.util.PreferencesFactory

public class PreferencesFactory
extends Object

The factory for preference component creation.


Constructor Summary
PreferencesFactory()
           
 
Method Summary
static PreferenceCategory addEvaluationPreferencesCategory(PreferenceActivity context, PreferenceScreen root)
          Does add the evaluation preferences category.
static PreferenceScreen addFeatureCategories(PreferenceActivity context, PreferenceScreen root, boolean hideLocationFeatures, PreferenceCategory categoryLocFeatures)
          Does add the preferences categories for accelerometer and location features.
static PreferenceCategory addFilterPreferencesCategory(PreferenceActivity context, PreferenceCategory categoryPref)
          Does create the filter category with the preferences for filter configuration.
static PreferenceScreen addModelCreationPreferencesCategory(PreferenceActivity context, PreferenceScreen root)
          Does create the model creation and test parameter preferences category.
static PreferenceCategory addRecordingPreferencesCategory(PreferenceActivity context, PreferenceScreen root)
          Does add the recording category with the preference for time configuration.
protected static CheckBoxPreference createCheckBox(PreferenceActivity context, FeatureTypes featureType)
          Does create checkbox preferences for feature types
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PreferencesFactory

public PreferencesFactory()
Method Detail

addEvaluationPreferencesCategory

public static final PreferenceCategory addEvaluationPreferencesCategory(PreferenceActivity context,
                                                                        PreferenceScreen root)
Does add the evaluation preferences category.

Parameters:
context - the activity context
root - the root screen
Returns:
the category added to the root screen

addFeatureCategories

public static final PreferenceScreen addFeatureCategories(PreferenceActivity context,
                                                          PreferenceScreen root,
                                                          boolean hideLocationFeatures,
                                                          PreferenceCategory categoryLocFeatures)
Does add the preferences categories for accelerometer and location features.

Parameters:
context - the activity context
root - the root screen
hideLocationFeatures - flag if location features shall be hidden
categoryLocFeatures - the category to add location feature screen to
Returns:
the location screen

createCheckBox

protected static CheckBoxPreference createCheckBox(PreferenceActivity context,
                                                   FeatureTypes featureType)
Does create checkbox preferences for feature types

Parameters:
context - the context
featureType - the feature type
Returns:
a checkbox preference for the feature type

addRecordingPreferencesCategory

public static final PreferenceCategory addRecordingPreferencesCategory(PreferenceActivity context,
                                                                       PreferenceScreen root)
Does add the recording category with the preference for time configuration.

Parameters:
context - the activity context
root - the root screen
Returns:
the category added to the root screen

addFilterPreferencesCategory

public static final PreferenceCategory addFilterPreferencesCategory(PreferenceActivity context,
                                                                    PreferenceCategory categoryPref)
Does create the filter category with the preferences for filter configuration.

Parameters:
context - the activity context
categoryPref - the category
Returns:
the category added to the root screen

addModelCreationPreferencesCategory

public static PreferenceScreen addModelCreationPreferencesCategory(PreferenceActivity context,
                                                                   PreferenceScreen root)
Does create the model creation and test parameter preferences category.

Parameters:
context - the activity context
root - the root screen
Returns:
the category added to the root screen