@Override
	public void itemStateChanged(ItemEvent event) {
		
		if(event.getSource() == bSpecBranchSource) {
			ParamManager.showSpecBranchSource = bSpecBranchSource.isSelected();
			vis.setSpecBranchSourceVisible(bSpecBranchSource.isSelected());		
		}
		else if(event.getSource() == bSpecBranchLin) {
			ParamManager.showSpecBranchLin = bSpecBranchLin.isSelected();
			vis.setSpecBranchLinVisible(bSpecBranchLin.isSelected());		
		}
		else if(event.getSource() == bSpecBranchReceiving) {
			ParamManager.showSpecBranchReceiving = bSpecBranchReceiving.isSelected();
			vis.setSpecBranchReceivingVisible(bSpecBranchReceiving.isSelected());	
		}
		
		else if(event.getSource() == bTransferSource) {
			ParamManager.showTransferSource = bTransferSource.isSelected();
			vis.setTransferSourceVisible(bTransferSource.isSelected());	
		}
		else if(event.getSource() == bTransferLin) {
			vis.setTransferLinVisible(bTransferLin.isSelected());		
			ParamManager.showTransferLin = bTransferLin.isSelected();
		}
		else if(event.getSource() == bTransferReceiving) {
			ParamManager.showTransferReceiving = bTransferReceiving.isSelected();
			vis.setTransferReceivingVisible(bTransferReceiving.isSelected());
		}
		
		else if(event.getSource() == bSpecNode) {
			ParamManager.showSpecNode = bSpecNode.isSelected();
			vis.setSpecNodeVisible(bSpecNode.isSelected());	
		}
		else if(event.getSource() == bDuplications) {
			ParamManager.showDuplications = bDuplications.isSelected();
			vis.setDuplicationsVisible(bDuplications.isSelected());		
		}
		else if(event.getSource() == bLosses) {
			ParamManager.showLosses = bLosses.isSelected();
			vis.setLossesVisible(bLosses.isSelected());	
		}
		
		caption.repaint();
		ParamManager.saveParam();
	}