196197198199200201202203204205206
r1.setTaxonLabel(taxonLabel); DiscreteMatrixElement e1 = new DiscreteMatrixElement(); e1.setColumn(c1); e1.setCharState(aState); r1.addElement(e1); DiscreteMatrixElement e2 = new DiscreteMatrixElement(); e2.setColumn(c2); e2.setCharState(aState); r1.addElement(e2);
201202203204205206207208209210211
r1.addElement(e1); DiscreteMatrixElement e2 = new DiscreteMatrixElement(); e2.setColumn(c2); e2.setCharState(aState); r1.addElement(e2); // add two segments, each with one element: RowSegment seg1 = new RowSegment(); seg1.setStartIndex(0);