package jas2.swingstudio;
import javax.swing.*;
import jas2.hist.JASHist;
/*
* This is the swingstudio container for the slice menu
*/
public final class SliceMenu extends JMenu
{
public SliceMenu()
{
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.fillSliceMenu(this);
return;
}
}
setEnabled(false);
}
}
Ads help maintain this website.