info.bioinfweb.treegraph.document.nodedata
Class BranchLengthAdapter
java.lang.Object
info.bioinfweb.treegraph.document.nodedata.BranchLengthAdapter
- All Implemented Interfaces:
- NodeDataAdapter
public class BranchLengthAdapter
- extends java.lang.Object
- implements NodeDataAdapter
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BranchLengthAdapter
public BranchLengthAdapter()
decimalOnly
public boolean decimalOnly()
- Specified by:
decimalOnly in interface NodeDataAdapter
isDecimal
public boolean isDecimal(Node node)
- Specified by:
isDecimal in interface NodeDataAdapter
isEmpty
public boolean isEmpty(Node node)
- Specified by:
isEmpty in interface NodeDataAdapter
isString
public boolean isString(Node node)
- Specified by:
isString in interface NodeDataAdapter
setDecimal
public void setDecimal(Node node,
double value)
- Specified by:
setDecimal in interface NodeDataAdapter
getText
public java.lang.String getText(Node node)
- Specified by:
getText in interface NodeDataAdapter
getDecimal
public double getDecimal(Node node)
throws java.lang.NumberFormatException
- Specified by:
getDecimal in interface NodeDataAdapter
- Throws:
java.lang.NumberFormatException
setDecimal
public void setDecimal(Node node,
double value,
int decimalPlaceCount)
setText
public void setText(Node node,
java.lang.String value)
throws java.lang.NumberFormatException,
NodeDataActionNotSupportedException
- Specified by:
setText in interface NodeDataAdapter
- Throws:
java.lang.NumberFormatException
NodeDataActionNotSupportedException
delete
public void delete(Node node)
- Specified by:
delete in interface NodeDataAdapter
getDataElement
public Branch getDataElement(Node node)
- Description copied from interface:
NodeDataAdapter
- This method should return the tree element which contains the data which is edited
with the implementation of the respective adapter.
- Specified by:
getDataElement in interface NodeDataAdapter
- Returns:
toString
public java.lang.String toString()
- Description copied from interface:
NodeDataAdapter
- A description of the adapter that is readable by the user should be returned here.
- Specified by:
toString in interface NodeDataAdapter- Overrides:
toString in class java.lang.Object