net.talvi.puffinplot.plots
Interface SampleClickListener
public interface SampleClickListener
An interface for classes which want to be notified of clicks on samples.
More precisely, clicks on plot elements representing samples.
A class implementing this interface should be registered with the
plot of interest by calling
Plot.addSampleClickListener(net.talvi.puffinplot.plots.SampleClickListener)
.
Once this has been done, the sampleClicked(net.talvi.puffinplot.data.Sample)
will be called whenever the user clicks on a plot element representing
a sample.
- See Also:
Plot.addSampleClickListener(net.talvi.puffinplot.plots.SampleClickListener)
,
Plot.removeSampleClickListener(net.talvi.puffinplot.plots.SampleClickListener)
sampleClicked
void sampleClicked(Sample sample)
- Invoked when a sample is clicked in a plot.
- Parameters:
sample
- the sample corresponding to the plot element which was clicked