本文整理汇总了Java中dr.evolution.util.Taxa.setId方法的典型用法代码示例。如果您正苦于以下问题:Java Taxa.setId方法的具体用法?Java Taxa.setId怎么用?Java Taxa.setId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dr.evolution.util.Taxa
的用法示例。
在下文中一共展示了Taxa.setId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setValueAt
import dr.evolution.util.Taxa; //导入方法依赖的package包/类
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
Taxa taxonSet = options.speciesSets.get(rowIndex);
switch (columnIndex) {
case 0:
taxonSet.setId(aValue.toString());
options.renameTMRCAStatistic(taxonSet);
setTaxonSetTitle();
break;
case 1:
if ((Boolean) aValue) {
Taxa taxa = options.speciesSets.get(rowIndex);
if (checkCompatibility(taxa)) {
options.speciesSetsMono.put(taxonSet, (Boolean) aValue);
}
} else {
options.speciesSetsMono.put(taxonSet, (Boolean) aValue);
}
break;
default:
throw new IllegalArgumentException("unknown column, " + columnIndex);
}
}
示例2: setValueAt
import dr.evolution.util.Taxa; //导入方法依赖的package包/类
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
Taxa taxonSet = options.taxonSets.get(rowIndex);
switch(columnIndex) {
case 0: {
taxonSet.setId(aValue.toString());
setTaxonSetTitle();
break;
}
case 1: {
if ((Boolean)aValue) {
Taxa taxa = options.taxonSets.get(rowIndex);
if (checkCompatibility(taxa)) {
options.taxonSetsMono.put(taxonSet, (Boolean)aValue);
}
} else {
options.taxonSetsMono.put(taxonSet, (Boolean)aValue);
}
break;
}
}
}
示例3: setValueAt
import dr.evolution.util.Taxa; //导入方法依赖的package包/类
public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
Taxa taxonSet = options.taxonSets.get(rowIndex);
switch (columnIndex) {
case 0:
taxonSet.setId(aValue.toString());
options.renameTMRCAStatistic(taxonSet);
setTaxonSetTitle();
break;
case 1:
if ((Boolean) aValue) {
Taxa taxa = options.taxonSets.get(rowIndex);
if (checkCompatibility(taxa)) {
options.taxonSetsMono.put(taxonSet, (Boolean) aValue);
}
} else {
options.taxonSetsMono.put(taxonSet, (Boolean) aValue);
}
break;
case 2:
options.taxonSetsIncludeStem.put(taxonSet, (Boolean) aValue);
break;
case 3:
options.taxonSetsTreeModel.put(taxonSet, (PartitionTreeModel) aValue);
this.fireTableDataChanged();
taxonSetsTable.getSelectionModel().setSelectionInterval(rowIndex, rowIndex);
break;
case 4:
options.taxonSetsHeights.put(taxonSet, (Double) aValue);
this.fireTableDataChanged();
taxonSetsTable.getSelectionModel().setSelectionInterval(rowIndex, rowIndex);
break;
default:
throw new IllegalArgumentException("unknown column, " + columnIndex);
}
}