Package org.biojavax.bio.phylo.io.nexus
Interface DistancesBlockListener
-
- All Superinterfaces:
NexusBlockListener
- All Known Implementing Classes:
DistancesBlockBuilder
public interface DistancesBlockListener extends NexusBlockListener
Listens to events that represent Nexus distances blocks.- Since:
- 1.6
- Author:
- Richard Holland, Tobias Thierer, Jim Balhoff
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddMatrixEntry(java.lang.String taxa)voidaddTaxLabel(java.lang.String taxLabel)Add a TAXLABEL.voidappendMatrixData(java.lang.String taxa, java.lang.Object data)voidsetDiagonal(boolean diagonal)voidsetDimensionsNChar(int dimensionsNChar)Set the NCHAR value.voidsetDimensionsNTax(int dimensionsNTax)Set the NTAX value.voidsetInterleaved(boolean interleaved)voidsetLabels(boolean labels)voidsetMissing(java.lang.String missing)voidsetTriangle(java.lang.String triangle)-
Methods inherited from interface org.biojavax.bio.phylo.io.nexus.NexusBlockListener
beginComment, commentText, endBlock, endComment, endTokenGroup, startBlock
-
-
-
-
Method Detail
-
setDimensionsNTax
void setDimensionsNTax(int dimensionsNTax)
Set the NTAX value.- Parameters:
dimensionsNTax- the NTAX value.
-
setDimensionsNChar
void setDimensionsNChar(int dimensionsNChar)
Set the NCHAR value.- Parameters:
dimensionsNChar- the NCHAR value.
-
setTriangle
void setTriangle(java.lang.String triangle)
-
setDiagonal
void setDiagonal(boolean diagonal)
-
setLabels
void setLabels(boolean labels)
-
setMissing
void setMissing(java.lang.String missing)
-
setInterleaved
void setInterleaved(boolean interleaved)
-
addTaxLabel
void addTaxLabel(java.lang.String taxLabel) throws ParseException
Add a TAXLABEL. If it already exists, or is a number that refers to an index position that already exists, an exception is thrown.- Parameters:
taxLabel- the label to add.- Throws:
ParseException- if the label cannot be added.
-
addMatrixEntry
void addMatrixEntry(java.lang.String taxa)
-
appendMatrixData
void appendMatrixData(java.lang.String taxa, java.lang.Object data)
-
-