private JPanel setRightView(AlgorithmType algorithmType, View view) {
		switch (algorithmType) {
		case LOUVAIN:
			JPanel louvainPanel = new JPanel();
			JLabel louvainLabel = new JLabel("none");
			louvainLabel.setForeground(Color.GRAY);
			louvainPanel.add(louvainLabel);
			return louvainPanel;

		case GRIVAN_NEWMAN:
			JPanel grPanel = new JPanel(new BorderLayout(0, 0));
			final JSlider grSlider = new JSlider();
			paramValueTextField = new JTextField(String.valueOf(view.getGraphParameter().getEgdesNumber()).length());
			JPanel grLabelText = new JPanel();
			grLabelText.add(new JLabel("Number of edges to remove:"));
			grLabelText.add(paramValueTextField);
			grPanel.add(grLabelText, BorderLayout.NORTH);
			grSlider.setMaximum(view.getGraphParameter().getEgdesNumber());
			grSlider.setValue(view.getGraphParameter().getEgdesNumber() / 18);
			grSlider.setMinorTickSpacing(view.getGraphParameter().getEgdesNumber() / 20);
			grSlider.setMajorTickSpacing(view.getGraphParameter().getEgdesNumber() / 4);
			grSlider.setPaintTicks(true);
			grSlider.setPaintLabels(true);
			grSlider.addChangeListener(new ChangeListener() {

				@Override
				public void stateChanged(ChangeEvent e) {
					JSlider source = (JSlider) e.getSource();
					paramValueTextField.setText("" + source.getValue());
				}
			});
			paramValueTextField.setText("" + grSlider.getValue());
			paramValueTextField.addKeyListener(new KeyListener() {
				@Override
				public void keyReleased(KeyEvent e) {
					String typed = paramValueTextField.getText();
					grSlider.setValue(0);
					if (!typed.matches("\\d+")) {
						return;
					}
					int value = Integer.parseInt(typed);
					grSlider.setValue(value);
				}

				@Override
				public void keyTyped(KeyEvent e) {
				}

				@Override
				public void keyPressed(KeyEvent e) {
				}
			});
			grPanel.add(grSlider, BorderLayout.CENTER);
			return grPanel;

		case WU_HUBERMAN:
			JPanel whPanel = new JPanel(new BorderLayout(0, 0));
			final JSlider whSlider = new JSlider();
			paramValueTextField = new JTextField(String.valueOf(view.getGraphParameter().getEgdesNumber()).length());
			JPanel whLabelText = new JPanel();
			whLabelText.add(new JLabel("Number of group candidates:"));
			whLabelText.add(paramValueTextField);
			whPanel.add(whLabelText, BorderLayout.NORTH);
			whSlider.setMaximum(view.getGraphParameter().getNodesNumber());
			whSlider.setMinorTickSpacing(view.getGraphParameter().getNodesNumber() / 20);
			whSlider.setMajorTickSpacing(view.getGraphParameter().getNodesNumber() / 4);
			whSlider.setPaintTicks(true);
			whSlider.setPaintLabels(true);
			whSlider.addChangeListener(new ChangeListener() {

				@Override
				public void stateChanged(ChangeEvent e) {
					JSlider source = (JSlider) e.getSource();
					paramValueTextField.setText("" + source.getValue());
				}
			});
			paramValueTextField.setText("" + whSlider.getValue());
			paramValueTextField.addKeyListener(new KeyListener() {
				@Override
				public void keyReleased(KeyEvent e) {
					String typed = paramValueTextField.getText();
					whSlider.setValue(0);
					if (!typed.matches("\\d+")) {
						return;
					}
					int value = Integer.parseInt(typed);
					whSlider.setValue(value);
				}

				@Override
				public void keyTyped(KeyEvent e) {
				}

				@Override
				public void keyPressed(KeyEvent e) {
				}
			});
			whPanel.add(whSlider, BorderLayout.CENTER);
			return whPanel;
			
		case IMPROVED_GRIVAN_NEWMAN:
			JPanel impGNPanel = new JPanel(new BorderLayout(0, 0));
			final JSlider impGNSlider = new JSlider();
			paramValueTextField = new JTextField(String.valueOf(view.getGraphParameter().getEgdesNumber()).length());
			JPanel impGNTextPanel = new JPanel();
			impGNTextPanel.add(new JLabel("Number of group candidates:"));
			impGNTextPanel.add(paramValueTextField);
			impGNPanel.add(impGNTextPanel, BorderLayout.NORTH);
			impGNSlider.setMaximum(view.getGraphParameter().getNodesNumber());
			impGNSlider.setMinorTickSpacing(view.getGraphParameter().getNodesNumber() / 20);
			impGNSlider.setMajorTickSpacing(view.getGraphParameter().getNodesNumber() / 4);
			impGNSlider.setPaintTicks(true);
			impGNSlider.setPaintLabels(true);
			impGNSlider.addChangeListener(new ChangeListener() {

				@Override
				public void stateChanged(ChangeEvent e) {
					JSlider source = (JSlider) e.getSource();
					paramValueTextField.setText("" + source.getValue());
				}
			});
			paramValueTextField.setText("" + impGNSlider.getValue());
			paramValueTextField.addKeyListener(new KeyListener() {
				@Override
				public void keyReleased(KeyEvent e) {
					String typed = paramValueTextField.getText();
					impGNSlider.setValue(0);
					if (!typed.matches("\\d+")) {
						return;
					}
					int value = Integer.parseInt(typed);
					impGNSlider.setValue(value);
				}

				@Override
				public void keyTyped(KeyEvent e) {
				}

				@Override
				public void keyPressed(KeyEvent e) {
				}
			});
			impGNPanel.add(impGNSlider, BorderLayout.CENTER);
			return impGNPanel;

		case FAST_NEWMAM:
			JPanel fastNewmanPanel = new JPanel();
			JLabel fastNewmanLabel = new JLabel("none");
			fastNewmanLabel.setForeground(Color.GRAY);
			fastNewmanPanel.add(fastNewmanLabel);
			return fastNewmanPanel;

		default:
			return new JPanel();

		}

	}