~ubuntu-branches/ubuntu/vivid/elki/vivid

« back to all changes in this revision

Viewing changes to src/de/lmu/ifi/dbs/elki/visualization/gui/ResultWindow.java

  • Committer: Bazaar Package Importer
  • Author(s): Erich Schubert
  • Date: 2011-09-24 12:24:37 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110924122437-xx6pyl4yhuom9yzw
Tags: 0.4.0-1
* New upstream release. (0.4.0 final)
* Try to make lintian happier with the DEP-5 copyright format
* Fixes a bug where various methods would require a classlabel that
  previously would fall-back to any kind of label available.

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
    exportItem.setEnabled(false);
166
166
    exportItem.addActionListener(new ActionListener() {
167
167
      @Override
168
 
      public void actionPerformed(@SuppressWarnings("unused") ActionEvent ae) {
 
168
      public void actionPerformed(ActionEvent ae) {
169
169
        saveCurrentPlot();
170
170
      }
171
171
    });
174
174
    quitItem.setMnemonic(KeyEvent.VK_Q);
175
175
    quitItem.addActionListener(new ActionListener() {
176
176
      @Override
177
 
      public void actionPerformed(@SuppressWarnings("unused") ActionEvent e) {
 
177
      public void actionPerformed(ActionEvent e) {
178
178
        close();
179
179
      }
180
180
    });
184
184
    overviewItem.setEnabled(false);
185
185
    overviewItem.addActionListener(new ActionListener() {
186
186
      @Override
187
 
      public void actionPerformed(@SuppressWarnings("unused") ActionEvent ae) {
 
187
      public void actionPerformed(ActionEvent ae) {
188
188
        showOverview();
189
189
      }
190
190
    });
193
193
    editItem.setMnemonic(KeyEvent.VK_T);
194
194
    editItem.addActionListener(new ActionListener() {
195
195
      @Override
196
 
      public void actionPerformed(@SuppressWarnings("unused") ActionEvent ae) {
 
196
      public void actionPerformed(ActionEvent ae) {
197
197
        showTableView();
198
198
      }
199
199
    });
416
416
        final JCheckBoxMenuItem visItem = new JCheckBoxMenuItem(name, enabled);
417
417
        visItem.addItemListener(new ItemListener() {
418
418
          @Override
419
 
          public void itemStateChanged(@SuppressWarnings("unused") ItemEvent e) {
 
419
          public void itemStateChanged(ItemEvent e) {
420
420
            // We need SwingUtilities to avoid a deadlock!
421
421
            SwingUtilities.invokeLater(new Runnable() {
422
422
              @Override
432
432
        final JRadioButtonMenuItem visItem = new JRadioButtonMenuItem(name, enabled);
433
433
        visItem.addItemListener(new ItemListener() {
434
434
          @Override
435
 
          public void itemStateChanged(@SuppressWarnings("unused") ItemEvent e) {
 
435
          public void itemStateChanged(ItemEvent e) {
436
436
            // We need SwingUtilities to avoid a deadlock!
437
437
            SwingUtilities.invokeLater(new Runnable() {
438
438
              @Override
448
448
    return null;
449
449
  }
450
450
 
451
 
  @SuppressWarnings("unused")
452
451
  @Override
453
452
  public void resultAdded(Result child, Result parent) {
454
453
    updateVisualizerMenus();
455
454
  }
456
455
 
457
 
  @SuppressWarnings("unused")
458
456
  @Override
459
457
  public void resultChanged(Result current) {
460
458
    updateVisualizerMenus();
461
459
  }
462
460
 
463
 
  @SuppressWarnings("unused")
464
461
  @Override
465
462
  public void resultRemoved(Result child, Result parent) {
466
463
    updateVisualizerMenus();