Skip to content
Snippets Groups Projects
Commit 2f0a27d1 authored by tcarver's avatar tcarver
Browse files

add getVisibleCount()

parent 8da1861e
No related branches found
No related tags found
No related merge requests found
......@@ -308,6 +308,24 @@ public class BasePlotGroup extends JPanel
final Component base_plot = findPlotByAlgorithm(algorithm);
return base_plot.isVisible ();
}
/**
* Return the number of visible plots
* @return
*/
public int getVisibleCount()
{
int cnt = 0;
Component comp[] = getComponents();
for(int i = 0 ; i<comp.length ; ++i)
if(comp[i] instanceof BasePlot)
{
if(comp[i].isVisible())
cnt++;
}
return cnt;
}
/**
* Given an Algorithm, find and set the visibility of the corresponding
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment