AtomPopupMenu(MolecularView v) {

		super("Atom");
		view = v;

		miInfo = new JMenuItem("Info", new ImageIcon(getClass().getResource("resources/info.gif")));
		miInfo.setBackground(new Color(0xFFFFD070));
		miInfo.setEnabled(false);
		add(miInfo);
		addSeparator();

		JMenuItem mi = new JMenuItem(view.getActionMap().get("cut"));
		String s = MolecularContainer.getInternationalText("Cut");
		if (s != null)
			mi.setText(s);
		add(mi);
		addSeparator();

		s = MolecularContainer.getInternationalText("Properties");
		mi = new JMenuItem(s != null ? s : "Properties", IconPool.getIcon("properties"));
		mi.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				DialogFactory.showDialog(view.selectedComponent);
			}
		});
		add(mi);
		addSeparator();

		s = MolecularContainer.getInternationalText("AttachCamera");
		miCamera = new JCheckBoxMenuItem(s != null ? s : "Attach Camera");
		miCamera.setIcon(new ImageIcon(getClass().getResource("resources/CameraOnAtom.gif")));
		miCamera.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				if (view.selectedComponent instanceof Atom) {
					Atom a = (Atom) view.selectedComponent;
					int k = view.getModel().getAtomIndex(a);
					view.setCameraAtom(k);
					view.model.notifyChange();
				}
			}
		});
		add(miCamera);

		s = MolecularContainer.getInternationalText("ShowVelocity");
		miVelo = new JCheckBoxMenuItem(s != null ? s : "Show Velocity");
		miVelo.setIcon(IconPool.getIcon("velocity"));
		miVelo.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				if (view.selectedComponent instanceof Atom) {
					Atom a = (Atom) view.selectedComponent;
					int k = view.getModel().getAtomIndex(a);
					view.showVelocity(k, miVelo.isSelected());
					view.model.notifyChange();
				}
			}
		});
		add(miVelo);

		s = MolecularContainer.getInternationalText("ShowTrajectory");
		miTraj = new JCheckBoxMenuItem(s != null ? s : "Show Trajectory");
		miTraj.setIcon(IconPool.getIcon("traj"));
		miTraj.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				if (view.selectedComponent instanceof Atom) {
					Atom a = (Atom) view.selectedComponent;
					int k = view.getModel().getAtomIndex(a);
					view.showTrajectory(k, miTraj.isSelected());
					view.model.notifyChange();
				}
			}
		});
		add(miTraj);

		pack();

	}