Exemplo n.º 1
0
  @Override
  public JComponent buildVisualizationGUI() throws DatabaseException {
    for (VisualizationRenderer<ScatterplotVisualization> renderer : renderers) {
      renderer.composeVisualization(this.visualizationGUIComponent);
    }

    JPanel northPanel = new JPanel();
    this.visualizationGUIComponent.add(northPanel, BorderLayout.NORTH);
    for (VisualizationControl<ScatterplotVisualization> control : northControls) {
      control.buildControlGUI(northPanel);
    }

    return this.visualizationGUIComponent;
  }
Exemplo n.º 2
0
  @Override
  public void toggleQualitySettings(int qualityParameter) {
    switch (qualityParameter) {
      case VisualizationRenderer.HIGH_QUALITY:
        for (VisualizationRenderer<ScatterplotVisualization> renderer : this.renderers) {
          renderer.setHighQuality();
        }
        break;

      case VisualizationRenderer.LOW_QUALITY:
        for (VisualizationRenderer<ScatterplotVisualization> renderer : this.renderers) {
          renderer.setLowerQuality();
        }
    }
  }
Exemplo n.º 3
0
 @Override
 public void updateDisplayedData(int inferiorLimit, int superiorLimit) throws DatabaseException {
   for (VisualizationRenderer<ScatterplotVisualization> renderer : this.renderers) {
     renderer.updateVisualizationLimits(inferiorLimit, superiorLimit);
   }
 }