コード例 #1
0
 /** Clears the panel. */
 public void clear() {
   this.acceptListEvents = false;
   this.removeAll();
   this.chartData = null;
   sequiturTableModel.update(null);
   this.validate();
   this.repaint();
   this.acceptListEvents = true;
 }
コード例 #2
0
  /**
   * Set the new data.
   *
   * @param chartData the new data.
   */
  public void setChartData(MotifChartData chartData) {

    this.acceptListEvents = false;

    // save the data
    this.chartData = chartData;

    // update
    sequiturTableModel.update(this.chartData.getGrammarRules());

    // put new data on show
    resetPanel();

    this.acceptListEvents = true;
  }