info.bioinfweb.treegraph.gui.dialogs.formatbynodedata.distanceadapters
Class LabelTextHeightAdapter
java.lang.Object
info.bioinfweb.treegraph.gui.dialogs.formatbynodedata.distanceadapters.LabelTextHeightAdapter
- All Implemented Interfaces:
- DistanceAdapter
public class LabelTextHeightAdapter
- extends Object
- implements DistanceAdapter
- Since:
- 2.0.23
- Author:
- Ben Stöver
|
Field Summary |
(package private) String |
id
|
id
String id
LabelTextHeightAdapter
public LabelTextHeightAdapter(String id)
setDistance
public void setDistance(float distance,
Node node)
- Specified by:
setDistance in interface DistanceAdapter
- Parameters:
distance - - the new distance value in millimeters
getDistance
public float getDistance(Node node)
- Returns the text height of the label with the specified ID in millimeters.
- Specified by:
getDistance in interface DistanceAdapter
- Parameters:
node -
- Returns:
- the text height or
Float.NaN if no label with this ID exists on the specified node - See Also:
DistanceAdapter.getDistance(info.bioinfweb.treegraph.document.Node)
toString
public String toString()
- Overrides:
toString in class Object