public class DistancesBlockBuilder extends NexusBlockBuilder.Abstract implements DistancesBlockListener
NexusBlockBuilder.Abstract
Constructor and Description |
---|
DistancesBlockBuilder() |
Modifier and Type | Method and Description |
---|---|
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.
|
beginComment, commentText, endComment, getBlockName, getNexusBlock, startBlock
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beginComment, commentText, endComment, startBlock
public DistancesBlockBuilder()
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
Copyright © 2014 BioJava. All rights reserved.