info.bioinfweb.treegraph.document.nodebranchdata
Class BranchLengthAdapter
java.lang.Object
  
info.bioinfweb.treegraph.document.nodebranchdata.AbstractNodeBranchDataAdapter
      
info.bioinfweb.treegraph.document.nodebranchdata.BranchLengthAdapter
- All Implemented Interfaces: 
 - NodeBranchDataAdapter
 
public class BranchLengthAdapter
- extends AbstractNodeBranchDataAdapter
- implements NodeBranchDataAdapter
  
 
 
 
 
 
sharedInstance
private static BranchLengthAdapter sharedInstance
BranchLengthAdapter
public BranchLengthAdapter()
getSharedInstance
public static BranchLengthAdapter getSharedInstance()
 
 
decimalOnly
public boolean decimalOnly()
- Specified by:
 decimalOnly in interface NodeBranchDataAdapter
 
 
readOnly
public boolean readOnly()
- Specified by:
 readOnly in interface NodeBranchDataAdapter
 
 
isNewColumn
public boolean isNewColumn()
- Specified by:
 isNewColumn in interface NodeBranchDataAdapter
 
 
isDecimal
public boolean isDecimal(Node node)
- Specified by:
 isDecimal in interface NodeBranchDataAdapter
 
 
isEmpty
public boolean isEmpty(Node node)
- Specified by:
 isEmpty in interface NodeBranchDataAdapter
 
 
isString
public boolean isString(Node node)
- Specified by:
 isString in interface NodeBranchDataAdapter
 
 
setDecimal
public void setDecimal(Node node,
                       double value)
- Specified by:
 setDecimal in interface NodeBranchDataAdapter
 
 
getText
public String getText(Node node)
- Specified by:
 getText in interface NodeBranchDataAdapter
 
 
getDecimal
public double getDecimal(Node node)
                  throws NumberFormatException
- Specified by:
 getDecimal in interface NodeBranchDataAdapter
 
- Throws:
 NumberFormatException
 
setDecimal
public void setDecimal(Node node,
                       double value,
                       int decimalPlaceCount)
 
 
setText
public void setText(Node node,
                    String value)
             throws NumberFormatException,
                    NodeBranchDataActionNotSupportedException
- Specified by:
 setText in interface NodeBranchDataAdapter
 
- Throws:
 NumberFormatException
NodeBranchDataActionNotSupportedException
 
delete
public void delete(Node node)
- Specified by:
 delete in interface NodeBranchDataAdapter
 
 
getDataElement
public Branch getDataElement(Node node)
- Description copied from interface: 
NodeBranchDataAdapter 
- 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 NodeBranchDataAdapter
 
- Returns:
 
 
 
toString
public String toString()
- Description copied from interface: 
NodeBranchDataAdapter 
- A description of the adapter that is readable by the user should be returned here.
- Specified by:
 toString in interface NodeBranchDataAdapter- Overrides:
 toString in class Object