package hep.aida.ref.plotter.style.registry;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.ButtonGroup;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.JPopupMenu;
import javax.swing.JRadioButtonMenuItem;
import javax.swing.MenuElement;
import org.freehep.util.FreeHEPLookup;
public class CategoryMenu extends JPopupMenu {
static String none = "[NONE]";
private IStyleRegistry registry;
public CategoryMenu(String title) {
super(title);
}
protected void firePopupMenuWillBecomeVisible() {
clearMenu();
fillMenu();
super.firePopupMenuWillBecomeVisible();
}
private void clearMenu() {
MenuElement[] elements = getSubElements();
if (elements == null) return;
for (int i=0; i
Ads help maintain this website.