JAL-3032 adds Java 8 functionality (2/2)
[jalview.git] / src2 / fr / orsay / lri / varna / models / templates / DrawRNATemplateCurveMethod.java
1 /**
2  * File written by Raphael Champeimont
3  * UMR 7238 Genomique des Microorganismes
4  */
5 package fr.orsay.lri.varna.models.templates;
6
7 /**
8  * @author Raphael Champeimont
9  * How should we draw unpaired regions?
10  */
11 public enum DrawRNATemplateCurveMethod {
12          // use what is in the template
13         EXACTLY_AS_IN_TEMPLATE("Bezier"),
14         // use ellipses, ignoring Bezier parameters from template (useful mostly for debugging ellipses)
15         ALWAYS_REPLACE_BY_ELLIPSES("Ellipses"),
16         // replace by ellipse where it is a good idea
17         SMART("Auto-Select");
18
19         String _msg;
20         
21         private DrawRNATemplateCurveMethod(String msg){
22                 _msg=msg;
23         }
24         
25         public String toString()
26         {
27                 return _msg;
28         }
29         
30         public static DrawRNATemplateCurveMethod getDefault() {
31                 return SMART;
32         }
33 }