X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=srcjar%2Ffr%2Forsay%2Flri%2Fvarna%2Fmodels%2Ftemplates%2FDrawRNATemplateMethod.java;fp=srcjar%2Ffr%2Forsay%2Flri%2Fvarna%2Fmodels%2Ftemplates%2FDrawRNATemplateMethod.java;h=9fd5f67a87659ae221a9b8eb4e97a57cb40173db;hb=2d6292c0377bc6b773c6844a45d3f2c5fac352c7;hp=0000000000000000000000000000000000000000;hpb=954af328a2a6a0055572cd1a09ee035301222574;p=jalview.git diff --git a/srcjar/fr/orsay/lri/varna/models/templates/DrawRNATemplateMethod.java b/srcjar/fr/orsay/lri/varna/models/templates/DrawRNATemplateMethod.java new file mode 100644 index 0000000..9fd5f67 --- /dev/null +++ b/srcjar/fr/orsay/lri/varna/models/templates/DrawRNATemplateMethod.java @@ -0,0 +1,38 @@ +/** + * File written by Raphael Champeimont + * UMR 7238 Genomique des Microorganismes + */ +package fr.orsay.lri.varna.models.templates; + +/** + * What to do in case some helices are of a different length + * in the template and the actual helix. + * Possibles values are: + * 0 - No adjustment is done. + * A longer than expected helix might bump into an other helix. + * 1 - Scaling factors (actual length / template length) are calculated, + * the maximum scaling factor L is extracted, then all helix positions + * are multiplied by L. + * 2 - Same as 1, but L is computed as the minimum value such that there + * are no backbone intersections. + */ +public enum DrawRNATemplateMethod { + NOADJUST("No Adjust"), MAXSCALINGFACTOR("Max Scaling"), NOINTERSECT("Non-crossing"), HELIXTRANSLATE("Helix Translation"); + + String _msg; + + public static DrawRNATemplateMethod getDefault() { + return HELIXTRANSLATE; + } + + + public String toString() + { + return _msg; + } + + private DrawRNATemplateMethod(String msg) + { + _msg = msg; + } +} \ No newline at end of file