@Override
	public void actionPerformed(ActionEvent a) {
		if(a.getSource() == TypeSel){
			Clear();
			switch(TypeSel.getSelectedIndex()){
			case posCartLine:
				initCartesianLine();
				break;
			case posVecLine:
				initVectorLine();
				break;
			case posCartPlane:
				initCartesian();
				break;
			case posVecPlane:
				initVector();
				break;
			default:
				break;
			}
		}

		this.update(true);
	}