Ejemplo n.º 1
0
  @Override
  protected void addComponents() {

    // protein quantitative data comparison histogram
    comparisonChart = new QuantProteinComparisonChart(controller);
    comparisonChart.setBorder(BorderFactory.createLineBorder(Color.gray));

    // Spectrum view pane
    spectrumViewPane = new SpectrumViewPane(controller, false);
    spectrumViewPane.setBorder(BorderFactory.createLineBorder(Color.gray));

    // put into a split pane
    JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);
    splitPane.setBorder(BorderFactory.createEmptyBorder());
    splitPane.setOneTouchExpandable(true);
    splitPane.setDividerSize(DIVIDER_SIZE);
    splitPane.setResizeWeight(SPLIT_PANE_RESIZE_WEIGHT);

    splitPane.setTopComponent(comparisonChart);
    splitPane.setBottomComponent(spectrumViewPane);

    this.add(splitPane, BorderLayout.CENTER);
    this.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
  }
Ejemplo n.º 2
0
 @Override
 public void subscribeToEventBus(EventService eventBus) {
   spectrumViewPane.subscribeToEventBus(null);
   comparisonChart.subscribeToEventBus(null);
 }