Package gov.nasa.arc.mct.table.view.TableFormattingConstants

Examples of gov.nasa.arc.mct.table.view.TableFormattingConstants.JVMFontFamily


   *
   * @param rowIndex the index of the row header
   * @return the font name of the row header
   */
  public JVMFontFamily getRowHeaderFontName(int rowIndex) {
    JVMFontFamily fontName = rowHeaderFontNames.get(rowIndex);
    return (fontName !=null ? fontName : TableFormattingConstants.defaultJVMFontFamily);
  }
View Full Code Here


   *
   * @param colIndex the index of the col header
   * @return the font name of the col header
   */
  public JVMFontFamily getColumnHeaderFontName(int colIndex) {
    JVMFontFamily fontName = columnHeaderFontNames.get(colIndex);
    return (fontName !=null ? fontName : TableFormattingConstants.defaultJVMFontFamily);
  }
View Full Code Here

      AbstractComponent component = (AbstractComponent) model.getStoredValueAt(table.getSelectedRows()[0], table.getSelectedColumns()[0]);
      String id = tableModel.getKey(component);
      TableCellSettings settings = tableModel.getCellSettings(id);
      return settings.getCellFont();
    }
    JVMFontFamily defaultFont = TableFormattingConstants.defaultJVMFontFamily;
    JVMFontFamily commonCellFont = null;
    for (Integer row : table.getSelectedRows()) {
      for (Integer col : table.getSelectedColumns()) {
        AbstractComponent component = (AbstractComponent) model.getStoredValueAt(row, col);
        String id = tableModel.getKey(component);
        TableCellSettings settings = tableModel.getCellSettings(id);
        JVMFontFamily aCellFont = settings.getCellFont();
        if (aCellFont == null) {
            aCellFont = defaultFont;
        }
        if (commonCellFont != null && !aCellFont.equals(commonCellFont)) {
          return null;
        }
        commonCellFont = aCellFont;
      }
    }
View Full Code Here

      return null;
    }
    if (isSingleCellSelection()) {
      return table.getRowHeaderFontName(table.getSelectedRows()[0]);
    }
    JVMFontFamily commonFont = null;
   
    for (Integer row : table.getSelectedRows()) {
      JVMFontFamily aFont = table.getRowHeaderFontName(row);
      if (commonFont !=null && !commonFont.equals(aFont)) {
        return null;
      }
      commonFont = aFont;
    }
View Full Code Here

      return null;
    }
    if (isSingleCellSelection()) {
      return table.getColumnHeaderFontName(table.getSelectedColumns()[0]);
    }
    JVMFontFamily commonFont = null;
   
    for (Integer col : table.getSelectedColumns()) {
      JVMFontFamily aFont = table.getColumnHeaderFontName(col);
      if (commonFont !=null && !commonFont.equals(aFont)) {
        return null;
      }
      commonFont = aFont;
    }
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.table.view.TableFormattingConstants.JVMFontFamily

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.