|
||||||||||
| 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.Abstractcomment - the comment to add.protected NexusBlock startBlockObject()
NexusBlockBuilder.Abstract
startBlockObject in class NexusBlockBuilder.Abstractpublic void endBlock()
NexusBlockListener
endBlock in interface NexusBlockListenerpublic void endTokenGroup()
NexusBlockListener
endTokenGroup in interface NexusBlockListenerpublic void addMatrixEntry(String taxa)
addMatrixEntry in interface DistancesBlockListener
public void addTaxLabel(String taxLabel)
throws ParseException
DistancesBlockListener
addTaxLabel in interface DistancesBlockListenertaxLabel - the label to add.
ParseException - if the label cannot be added.
public void appendMatrixData(String taxa,
Object data)
appendMatrixData in interface DistancesBlockListenerpublic void setDimensionsNChar(int dimensionsNChar)
DistancesBlockListener
setDimensionsNChar in interface DistancesBlockListenerdimensionsNChar - the NCHAR value.public void setDimensionsNTax(int dimensionsNTax)
DistancesBlockListener
setDimensionsNTax in interface DistancesBlockListenerdimensionsNTax - the NTAX value.public void setInterleaved(boolean interleaved)
setInterleaved in interface DistancesBlockListenerpublic void setLabels(boolean labels)
setLabels in interface DistancesBlockListenerpublic void setMissing(String missing)
setMissing in interface DistancesBlockListenerpublic void setDiagonal(boolean diagonal)
setDiagonal in interface DistancesBlockListenerpublic void setTriangle(String triangle)
setTriangle in interface DistancesBlockListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||