From: jprocter Date: Tue, 29 Jun 2010 16:20:37 +0000 (+0000) Subject: interfaces implemented by jalview renderers X-Git-Tag: Release_2_6~155 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=bcec956c0817f71f72a80a02066f1b57672304df;p=jalview.git interfaces implemented by jalview renderers --- 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); + +}