JAL-3032 adds Java 8 functionality (2/2)
[jalview.git] / src2 / fr / orsay / lri / varna / models / treealign / GraphvizDrawableNodeValue.java
diff --git a/src2/fr/orsay/lri/varna/models/treealign/GraphvizDrawableNodeValue.java b/src2/fr/orsay/lri/varna/models/treealign/GraphvizDrawableNodeValue.java
new file mode 100644 (file)
index 0000000..46c50ec
--- /dev/null
@@ -0,0 +1,14 @@
+package fr.orsay.lri.varna.models.treealign;
+
+/**
+ * A tree can be displayed using graphviz (using class TreeGraphviz)
+ * if the node values in the tree implement this interface.
+ * 
+ * @author Raphael Champeimont
+ */
+public interface GraphvizDrawableNodeValue {
+       /**
+        * Returns a string that will be displayed on the node by graphviz.
+        */
+       public String toGraphvizNodeName();
+}