FileDocCategorySizeDatePackage
ProfilesTableModel.javaAPI DocAndroid 1.5 API1834Wed May 06 22:41:10 BST 2009com.android.hierarchyviewer.ui.model

ProfilesTableModel

public class ProfilesTableModel extends DefaultTableModel

Fields Summary
private static final String[]
NAMES
private final double[]
profiles
private final NumberFormat
formatter
Constructors Summary
public ProfilesTableModel(double[] profiles)


       
        this.profiles = profiles;
        formatter = NumberFormat.getNumberInstance();
    
Methods Summary
public intgetColumnCount()

        return 2;
    
public java.lang.StringgetColumnName(int column)

        return column == 0 ? "Operation" : "Duration (ms)";
    
public intgetRowCount()

        return profiles == null ? 0 : profiles.length;
    
public java.lang.ObjectgetValueAt(int row, int column)

        if (profiles == null) return "";

        if (column == 0) {
            return NAMES[row];
        }


        return formatter.format(profiles[row]) + "";
    
public booleanisCellEditable(int arg0, int arg1)

        return false;
    
public voidsetValueAt(java.lang.Object arg0, int arg1, int arg2)