Package org.biojavax.bio.phylo.io.nexus
Interface DistancesBlockListener
- All Superinterfaces:
NexusBlockListener
- All Known Implementing Classes:
DistancesBlockBuilder
Listens to events that represent Nexus distances blocks.
- Since:
- 1.6
- Author:
- Richard Holland, Tobias Thierer, Jim Balhoff
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMatrixEntry(String taxa) voidaddTaxLabel(String taxLabel) Add a TAXLABEL.voidappendMatrixData(String taxa, 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(String missing) voidsetTriangle(String triangle) Methods inherited from interface org.biojavax.bio.phylo.io.nexus.NexusBlockListener
beginComment, commentText, endBlock, endComment, endTokenGroup, startBlock
-
Method Details
-
setDimensionsNTax
Set the NTAX value.- Parameters:
dimensionsNTax- the NTAX value.
-
setDimensionsNChar
Set the NCHAR value.- Parameters:
dimensionsNChar- the NCHAR value.
-
setTriangle
-
setDiagonal
-
setLabels
-
setMissing
-
setInterleaved
-
addTaxLabel
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
-
appendMatrixData
-