2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
23 public interface ViewStyleI
26 void setColourAppliesToAllGroups(boolean b);
28 boolean getColourAppliesToAllGroups();
30 boolean getAbovePIDThreshold();
32 void setIncrement(int inc);
36 boolean getConservationSelected();
38 void setConservationSelected(boolean b);
40 void setShowHiddenMarkers(boolean show);
42 boolean getShowHiddenMarkers();
44 void setScaleRightWrapped(boolean b);
46 void setScaleLeftWrapped(boolean b);
48 void setScaleAboveWrapped(boolean b);
50 boolean getScaleLeftWrapped();
52 boolean getScaleAboveWrapped();
54 boolean getScaleRightWrapped();
56 void setAbovePIDThreshold(boolean b);
58 void setThreshold(int thresh);
62 boolean getShowJVSuffix();
64 void setShowJVSuffix(boolean b);
66 void setWrapAlignment(boolean state);
68 void setShowText(boolean state);
70 void setRenderGaps(boolean state);
72 boolean getColourText();
74 void setColourText(boolean state);
76 void setShowBoxes(boolean state);
78 boolean getWrapAlignment();
80 boolean getShowText();
82 int getWrappedWidth();
84 void setWrappedWidth(int w);
88 void setCharHeight(int h);
92 void setCharWidth(int w);
94 boolean getShowBoxes();
96 boolean getShowUnconserved();
98 void setShowUnconserved(boolean showunconserved);
101 * @return true if a reference sequence is set and should be displayed
103 boolean isDisplayReferenceSeq();
106 * @return set the flag for displaying reference sequences when they are
109 void setDisplayReferenceSeq(boolean displayReferenceSeq);
112 * @return true if colourschemes should render according to reference sequence
113 * rather than consensus if available
115 boolean isColourByReferenceSeq();
117 void setSeqNameItalics(boolean default1);
119 void setShowSequenceFeatures(boolean b);
121 boolean isShowSequenceFeatures();
123 boolean isRightAlignIds();
125 void setRightAlignIds(boolean rightAlignIds);
128 * Returns true if annotation panel should be shown below alignment
132 boolean isShowAnnotation();
135 * Set flag for whether annotation panel should be shown below alignment
139 void setShowAnnotation(boolean b);
141 void setShowSequenceFeaturesHeight(boolean selected);
144 * @return true set flag for deciding if colourschemes should render according
145 * to reference sequence rather than consensus if available
147 void setColourByReferenceSeq(boolean colourByReferenceSeq);
149 ColorI getTextColour();
151 ColorI getTextColour2();
153 int getThresholdTextColour();
155 boolean isConservationColourSelected();
157 boolean isRenderGaps();
159 boolean isShowColourText();
161 boolean isShowSequenceFeaturesHeight();
163 void setConservationColourSelected(boolean conservationColourSelected);
165 void setShowColourText(boolean showColourText);
167 void setTextColour(ColorI textColour);
169 void setThresholdTextColour(int thresholdTextColour);
171 void setTextColour2(ColorI textColour2);
173 boolean isSeqNameItalics();
175 void setUpperCasebold(boolean upperCasebold);
177 boolean isUpperCasebold();
179 boolean sameStyle(ViewStyleI them);
181 void setFontName(String name);
183 void setFontStyle(int style);
185 void setFontSize(int size);
189 String getFontName();
194 * @return width of Sequence and Annotation ID margin. If less than zero, then
195 * width will be autocalculated
205 void setIdWidth(int i);
208 * centre columnar annotation labels in displayed alignment annotation
210 boolean isCentreColumnLabels();
213 * centre columnar annotation labels in displayed alignment annotation
215 void setCentreColumnLabels(boolean centreColumnLabels);
218 * enable or disable the display of Database Cross References in the sequence
221 void setShowDBRefs(boolean showdbrefs);
225 * @return true if Database References are to be displayed on tooltips.
227 boolean isShowDBRefs();
231 * @return true if Non-positional features are to be displayed on tooltips.
233 boolean isShowNPFeats();
236 * enable or disable the display of Non-Positional sequence features in the
237 * sequence ID tooltip
241 void setShowNPFeats(boolean shownpfeats);
244 * Get flag to scale protein residues 3 times the width of cDNA bases (only
245 * applicable in SplitFrame views)
249 boolean isScaleProteinAsCdna();
252 * Set flag to scale protein residues 3 times the width of cDNA bases (only
253 * applicable in SplitFrame views)
257 void setScaleProteinAsCdna(boolean b);