Package de.offis.faint.model

Examples of de.offis.faint.model.Region


          this.table = table;
      }
     
      public void valueChanged(ListSelectionEvent e) {
        if (!e.getValueIsAdjusting()){
          Region region = null;
          if (table.getSelectedColumn()!=-1)
            region = (Region) table.getAnnotationModel().getValueAt(0, table.getSelectedColumn());
          if ((currentRegion != null && region == null) || (region != null && !region.equals(currentRegion))){
            mainFrame.eventDispatcher.dispatchEvent(new EventRegionSelectionChanged(region));
          }
        }
      }
View Full Code Here


        this.setBackground(table.getBackground());
        currentText.setForeground(table.getForeground());
      }
     
      // process icon and text
      Region region = (Region) value;
      if (region!=null){
        currentIcon.setIcon(((AnnotationTableModel)table.getModel()).faceIcons.get(region.toString()));
        currentText.setText(MainController.getInstance().getFaceDB().getAnnotation(region));
        currentText.setFont(table.getFont());
      }

      return this;
View Full Code Here

TOP

Related Classes of de.offis.faint.model.Region

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.