// listen to left/right mouse clicks from panel and navigate accordingly
SimpleDialog dia = new SimpleDialog("Flow Signal Distribution", distributionPanel, 800, 500);
}
private FlowDistribution[] getFlowDistributions(boolean forward, boolean reverse, ReferenceFrame frame, int location) {
FlowDistribution distributions[] = null;
if (forward || reverse) {
ArrayList<FlowDistribution> dists = getFlowSignalDistribution(frame, location, forward, reverse);
distributions = new FlowDistribution[dists.size()];
for (int i = 0; i < dists.size(); i++) {
distributions[i] = dists.get(i);