Merge develop to Release_2_8_3_Branch
[jalview.git] / src / jalview / api / ViewStyleI.java
1 package jalview.api;
2
3 import java.awt.Color;
4
5 public interface ViewStyleI
6 {
7
8   void setColourAppliesToAllGroups(boolean b);
9
10   boolean getColourAppliesToAllGroups();
11
12   boolean getAbovePIDThreshold();
13
14   void setIncrement(int inc);
15
16   int getIncrement();
17
18   boolean getConservationSelected();
19
20   void setConservationSelected(boolean b);
21
22   void setShowHiddenMarkers(boolean show);
23
24   boolean getShowHiddenMarkers();
25
26   void setScaleRightWrapped(boolean b);
27
28   void setScaleLeftWrapped(boolean b);
29
30   void setScaleAboveWrapped(boolean b);
31
32   boolean getScaleLeftWrapped();
33
34   boolean getScaleAboveWrapped();
35
36   boolean getScaleRightWrapped();
37
38   void setAbovePIDThreshold(boolean b);
39
40   void setThreshold(int thresh);
41
42   int getThreshold();
43
44   boolean getShowJVSuffix();
45
46   void setShowJVSuffix(boolean b);
47
48   void setWrapAlignment(boolean state);
49
50   void setShowText(boolean state);
51
52   void setRenderGaps(boolean state);
53
54   boolean getColourText();
55
56   void setColourText(boolean state);
57
58   void setShowBoxes(boolean state);
59
60   boolean getWrapAlignment();
61
62   boolean getShowText();
63
64   int getWrappedWidth();
65
66   void setWrappedWidth(int w);
67
68   int getCharHeight();
69
70   void setCharHeight(int h);
71
72   int getCharWidth();
73
74   void setCharWidth(int w);
75
76   boolean getShowBoxes();
77
78   boolean getShowUnconserved();
79
80   void setShowUnconserved(boolean showunconserved);
81
82   boolean isDisplayReferenceSeq();
83
84   void setDisplayReferenceSeq(boolean displayReferenceSeq);
85
86   boolean isColourByReferenceSeq();
87
88   void setSeqNameItalics(boolean default1);
89
90   void setShowSequenceFeatures(boolean b);
91
92   boolean isShowSequenceFeatures();
93
94   boolean isRightAlignIds();
95
96   void setRightAlignIds(boolean rightAlignIds);
97
98   boolean isShowAnnotation();
99
100   void setShowAnnotation(boolean b);
101
102   void setShowSeqFeaturesHeight(boolean selected);
103
104   boolean isShowSequenceFeaturesHeight();
105
106   void setColourByReferenceSeq(boolean colourByReferenceSeq);
107
108   Color getTextColour();
109
110   Color getTextColour2();
111
112   int getThresholdTextColour();
113
114   boolean isConservationColourSelected();
115
116   boolean isRenderGaps();
117
118   boolean isShowColourText();
119
120   boolean isShowSeqFeaturesHeight();
121
122   void setConservationColourSelected(boolean conservationColourSelected);
123
124   void setShowColourText(boolean showColourText);
125
126   void setTextColour(Color textColour);
127
128   void setThresholdTextColour(int thresholdTextColour);
129
130   void setTextColour2(Color textColour2);
131
132   boolean isSeqNameItalics();
133
134   void setUpperCasebold(boolean upperCasebold);
135
136   boolean isUpperCasebold();
137   
138   boolean sameStyle(ViewStyleI them);
139
140   void setFontName(String name);
141
142   void setFontStyle(int style);
143
144   void setFontSize(int size);
145
146   int getFontStyle();
147
148   String getFontName();
149
150   int getFontSize();
151
152   /**
153    * @return width of Sequence and Annotation ID margin. If less than zero, then
154    *         width will be autocalculated
155    */
156   int getIdWidth();
157
158   /**
159    * Set width if
160    * 
161    * @param i
162    */
163
164   void setIdWidth(int i);
165
166   /**
167    * centre columnar annotation labels in displayed alignment annotation
168    */
169   boolean isCentreColumnLabels();
170
171   /**
172    * centre columnar annotation labels in displayed alignment annotation
173    */
174   void setCentreColumnLabels(boolean centreColumnLabels);
175
176   /**
177    * enable or disable the display of Database Cross References in the sequence
178    * ID tooltip
179    */
180   void setShowDBRefs(boolean showdbrefs);
181
182   /**
183    * 
184    * @return true if Database References are to be displayed on tooltips.
185    */
186   boolean isShowDBRefs();
187
188   /**
189    * 
190    * @return true if Non-positional features are to be displayed on tooltips.
191    */
192   boolean isShowNPFeats();
193
194   /**
195    * enable or disable the display of Non-Positional sequence features in the
196    * sequence ID tooltip
197    * 
198    * @param show
199    */
200   void setShowNPFeats(boolean shownpfeats);
201
202 }