info.bioinfweb.treegraph.document.nodedata
Class LabelAdapter
java.lang.Object
info.bioinfweb.treegraph.document.nodedata.TextElementDataAdapter
info.bioinfweb.treegraph.document.nodedata.AbstractIDElementAdapter
info.bioinfweb.treegraph.document.nodedata.LabelAdapter
- All Implemented Interfaces:
- IDElementAdapter, NodeDataAdapter
- Direct Known Subclasses:
- NewLabelAdapter
public class LabelAdapter
- extends AbstractIDElementAdapter
- implements NodeDataAdapter
defaultDecimalFormat
private DecimalFormat defaultDecimalFormat
LabelAdapter
public LabelAdapter(String labelID,
DecimalFormat decimalFormat)
getData
public TextElementData getData(Node node)
- Specified by:
getData in class TextElementDataAdapter
assignData
public boolean assignData(Node node,
TextElementData data)
- Specified by:
assignData in class TextElementDataAdapter
getDecimalFormat
public DecimalFormat getDecimalFormat(Node node)
- Specified by:
getDecimalFormat in class TextElementDataAdapter
createData
protected void createData(Node node)
- Description copied from class:
TextElementDataAdapter
- This method should create the data object if does not already exist.
- Specified by:
createData in class TextElementDataAdapter
- Parameters:
node - - the node wich is assiciated with the data object
delete
public void delete(Node node)
- Specified by:
delete in interface NodeDataAdapter- Overrides:
delete in class TextElementDataAdapter
getDataElement
public Label 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 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 Object