package jas2.swingstudio;
import javax.swing.*;
import jas2.hist.JASHist;
/*
 * This is the swingstudio container for the four JASHist function menus:
 *  -add function
 *  -remove function
 *  -fit function
 *  -advanced options
 */
public final class FunctionsMenu extends JMenu
{
	public FunctionsMenu()
	{
		super();
	}
	public void addNotify() 
	{
		// AddNotify is called when the parent menu becomes visible
		super.addNotify();
		removeAll();

		JASPage page = JavaAnalysisStudio.getApp().getCurrentPage();
		if (page != null)
		{
			JASHist plot = page.getCurrentPlot();
			if (plot != null)
			{
				plot.fillFunctionMenu(this);	
				return;
			}
		}
		setEnabled(false);
	}
}

 

Ads help maintain this website.