|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojavax.bio.phylo.io.nexus.NexusBlockBuilder.Abstract
org.biojavax.bio.phylo.io.nexus.DistancesBlockBuilder
public class DistancesBlockBuilder
Builds Nexus distances blocks.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.biojavax.bio.phylo.io.nexus.NexusBlockBuilder |
---|
NexusBlockBuilder.Abstract |
Constructor Summary | |
---|---|
DistancesBlockBuilder()
|
Method Summary | |
---|---|
protected void |
addComment(NexusComment comment)
Tell the builder to add the given comment at the current location. |
void |
addMatrixEntry(String taxa)
|
void |
addTaxLabel(String taxLabel)
Add a TAXLABEL. |
void |
appendMatrixData(String taxa,
Object data)
|
void |
endBlock()
Notifies the parser that a block is ending. |
void |
endTokenGroup()
Closing a line (semi-colon encountered). |
void |
setDiagonal(boolean diagonal)
|
void |
setDimensionsNChar(int dimensionsNChar)
Set the NCHAR value. |
void |
setDimensionsNTax(int dimensionsNTax)
Set the NTAX value. |
void |
setInterleaved(boolean interleaved)
|
void |
setLabels(boolean labels)
|
void |
setMissing(String missing)
|
void |
setTriangle(String triangle)
|
protected NexusBlock |
startBlockObject()
Tell the builder to start a new block object. |
Methods inherited from class org.biojavax.bio.phylo.io.nexus.NexusBlockBuilder.Abstract |
---|
beginComment, commentText, endComment, getBlockName, getNexusBlock, startBlock |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.biojavax.bio.phylo.io.nexus.NexusBlockListener |
---|
beginComment, commentText, endComment, startBlock |
Constructor Detail |
---|
public DistancesBlockBuilder()
Method Detail |
---|
protected void addComment(NexusComment comment)
NexusBlockBuilder.Abstract
addComment
in class NexusBlockBuilder.Abstract
comment
- the comment to add.protected NexusBlock startBlockObject()
NexusBlockBuilder.Abstract
startBlockObject
in class NexusBlockBuilder.Abstract
public void endBlock()
NexusBlockListener
endBlock
in interface NexusBlockListener
public void endTokenGroup()
NexusBlockListener
endTokenGroup
in interface NexusBlockListener
public void addMatrixEntry(String taxa)
addMatrixEntry
in interface DistancesBlockListener
public void addTaxLabel(String taxLabel) throws ParseException
DistancesBlockListener
addTaxLabel
in interface DistancesBlockListener
taxLabel
- the label to add.
ParseException
- if the label cannot be added.public void appendMatrixData(String taxa, Object data)
appendMatrixData
in interface DistancesBlockListener
public void setDimensionsNChar(int dimensionsNChar)
DistancesBlockListener
setDimensionsNChar
in interface DistancesBlockListener
dimensionsNChar
- the NCHAR value.public void setDimensionsNTax(int dimensionsNTax)
DistancesBlockListener
setDimensionsNTax
in interface DistancesBlockListener
dimensionsNTax
- the NTAX value.public void setInterleaved(boolean interleaved)
setInterleaved
in interface DistancesBlockListener
public void setLabels(boolean labels)
setLabels
in interface DistancesBlockListener
public void setMissing(String missing)
setMissing
in interface DistancesBlockListener
public void setDiagonal(boolean diagonal)
setDiagonal
in interface DistancesBlockListener
public void setTriangle(String triangle)
setTriangle
in interface DistancesBlockListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |