* if neither forward nor reverse, create 2 charts in one
*/
private void showFlowSignalDistribution(final int location, final ReferenceFrame frame, final boolean forward, final boolean reverse) {
FlowDistribution[] distributions = getFlowDistributions(forward, reverse, frame, location);
final FlowSignalDistributionPanel distributionPanel = new FlowSignalDistributionPanel(distributions);
LocationListener listener = new LocationListener() {
@Override
public void locationChanged(int newLocation) {
log.info("Got new location from panel: " + newLocation + ", (old location was: " + location + ")");
FlowDistribution[] newdist = getFlowDistributions(forward, reverse, frame, newLocation);
distributionPanel.setDistributions(newdist);
//frame.jumpTo(frame.getChrName(), location, location);
frame.centerOnLocation(newLocation + 1);
IGV.repaintPanelsHeadlessSafe();
}
};
distributionPanel.setListener(listener);
// listen to left/right mouse clicks from panel and navigate accordingly
SimpleDialog dia = new SimpleDialog("Flow Signal Distribution", distributionPanel, 800, 500);
}