interfaces implemented by jalview renderers
authorjprocter <Jim Procter>
Tue, 29 Jun 2010 16:20:37 +0000 (16:20 +0000)
committerjprocter <Jim Procter>
Tue, 29 Jun 2010 16:20:37 +0000 (16:20 +0000)
src/jalview/api/FeatureRenderer.java [new file with mode: 0644]
src/jalview/api/SequenceRenderer.java [new file with mode: 0644]

diff --git a/src/jalview/api/FeatureRenderer.java b/src/jalview/api/FeatureRenderer.java
new file mode 100644 (file)
index 0000000..22b0a45
--- /dev/null
@@ -0,0 +1,20 @@
+/**
+ * 
+ */
+package jalview.api;
+
+import jalview.datamodel.SequenceI;
+
+import java.awt.Color;
+
+/**
+ * Abstract feature renderer interface
+ * @author JimP
+ *
+ */
+public interface FeatureRenderer
+{
+
+  Color findFeatureColour(Color col, SequenceI sequenceI, int r);
+
+}
diff --git a/src/jalview/api/SequenceRenderer.java b/src/jalview/api/SequenceRenderer.java
new file mode 100644 (file)
index 0000000..2d547dc
--- /dev/null
@@ -0,0 +1,12 @@
+package jalview.api;
+
+import jalview.datamodel.SequenceI;
+
+import java.awt.Color;
+
+public interface SequenceRenderer
+{
+
+  Color getResidueBoxColour(SequenceI sequenceI, int r);
+
+}