public UIState() {
			activeFeatureTypes = new ArrayList<Enums.ActiveFeatureType>();

			if (cbAS.isSelected()) {
				activeFeatureTypes.add(Enums.ActiveFeatureType.AS);
			}
			if (cbBuilding.isSelected()) {
				activeFeatureTypes.add(Enums.ActiveFeatureType.BUILDING);
			}
			if (cbStudents.isSelected()) {
				activeFeatureTypes.add(Enums.ActiveFeatureType.STUDENTS);
			}

			if (rbWhole.isSelected()) {
				queryType = Enums.QueryType.WHOLE_REGION;
			}
			else if (rbPoint.isSelected()) {
				queryType = Enums.QueryType.POINT_QUERY;
			}
			else if (rbRange.isSelected()) {
				queryType = Enums.QueryType.RANGE_QUERY;
			}
			else if (rbSurrounding.isSelected()) {
				queryType = Enums.QueryType.SURROUNDING_STUDENT;
			}
			else if (rbEmergency.isSelected()) {
				queryType = Enums.QueryType.EMERGENCY_QUERY;
			}
		}