From bcec956c0817f71f72a80a02066f1b57672304df Mon Sep 17 00:00:00 2001 From: jprocter Date: Tue, 29 Jun 2010 16:20:37 +0000 Subject: [PATCH] interfaces implemented by jalview renderers --- src/jalview/api/FeatureRenderer.java | 20 ++++++++++++++++++++ src/jalview/api/SequenceRenderer.java | 12 ++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 src/jalview/api/FeatureRenderer.java create mode 100644 src/jalview/api/SequenceRenderer.java diff --git a/src/jalview/api/FeatureRenderer.java b/src/jalview/api/FeatureRenderer.java new file mode 100644 index 0000000..22b0a45 --- /dev/null +++ b/src/jalview/api/FeatureRenderer.java @@ -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 index 0000000..2d547dc --- /dev/null +++ b/src/jalview/api/SequenceRenderer.java @@ -0,0 +1,12 @@ +package jalview.api; + +import jalview.datamodel.SequenceI; + +import java.awt.Color; + +public interface SequenceRenderer +{ + + Color getResidueBoxColour(SequenceI sequenceI, int r); + +} -- 1.7.10.2