Home / Development / Documentation / 2.0.44 / BranchLengthAdapter
TreeGraph 2
 


info.bioinfweb.treegraph.document.nodebranchdata
Class BranchLengthAdapter

java.lang.Object
  extended by info.bioinfweb.treegraph.document.nodebranchdata.AbstractNodeBranchDataAdapter
      extended by info.bioinfweb.treegraph.document.nodebranchdata.BranchLengthAdapter
All Implemented Interfaces:
NodeBranchDataAdapter

public class BranchLengthAdapter
extends AbstractNodeBranchDataAdapter
implements NodeBranchDataAdapter


Field Summary
private static BranchLengthAdapter sharedInstance
           
 
Constructor Summary
BranchLengthAdapter()
           
 
Method Summary
 boolean decimalOnly()
           
 void delete(Node node)
           
 Branch getDataElement(Node node)
          This method should return the tree element which contains the data which is edited with the implementation of the respective adapter.
 double getDecimal(Node node)
           
static BranchLengthAdapter getSharedInstance()
           
 String getText(Node node)
           
 boolean isDecimal(Node node)
           
 boolean isEmpty(Node node)
           
 boolean isNewColumn()
           
 boolean isString(Node node)
           
 boolean readOnly()
           
 void setDecimal(Node node, double value)
           
 void setDecimal(Node node, double value, int decimalPlaceCount)
           
 void setText(Node node, String value)
           
 String toString()
          A description of the adapter that is readable by the user should be returned here.
 
Methods inherited from class info.bioinfweb.treegraph.document.nodebranchdata.AbstractNodeBranchDataAdapter
equals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sharedInstance

private static BranchLengthAdapter sharedInstance
Constructor Detail

BranchLengthAdapter

public BranchLengthAdapter()
Method Detail

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