git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5630468
)
Use AAFrequency final keys
author
amwaterhouse
<Andrew Waterhouse>
Tue, 10 Oct 2006 10:43:52 +0000
(10:43 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Tue, 10 Oct 2006 10:43:52 +0000
(10:43 +0000)
src/jalview/appletgui/AlignViewport.java
patch
|
blob
|
history
diff --git
a/src/jalview/appletgui/AlignViewport.java
b/src/jalview/appletgui/AlignViewport.java
index
b369b1f
..
1fa3e3f
100755
(executable)
--- a/
src/jalview/appletgui/AlignViewport.java
+++ b/
src/jalview/appletgui/AlignViewport.java
@@
-321,12
+321,12
@@
public class AlignViewport
{
float value = 0;
if(ignoreGapsInConsensusCalculation)
{
float value = 0;
if(ignoreGapsInConsensusCalculation)
- value = ((Float)hconsensus[i].get("pid_nogaps")).floatValue();
+ value = ((Float)hconsensus[i].get(AAFrequency.PID_NOGAPS)).floatValue();
else
else
- value = ((Float)hconsensus[i].get("pid_gaps")).floatValue();
+ value = ((Float)hconsensus[i].get(AAFrequency.PID_GAPS)).floatValue();
- String maxRes = hconsensus[i].get("maxResidue").toString();
- String mouseOver = hconsensus[i].get("maxResidue") + " ";
+ String maxRes = hconsensus[i].get(AAFrequency.MAXRESIDUE).toString();
+ String mouseOver = maxRes;
if (maxRes.length() > 1)
{
mouseOver = "[" + maxRes + "] ";
if (maxRes.length() > 1)
{
mouseOver = "[" + maxRes + "] ";
@@
-966,7
+966,7
@@
public class AlignViewport
// be done to remove redundancy.
CigarArray aligview = getViewAsCigars(selectedOnly);
if (aligview!=null) {
// be done to remove redundancy.
CigarArray aligview = getViewAsCigars(selectedOnly);
if (aligview!=null) {
- return new AlignmentView(aligview,
+ return new AlignmentView(aligview,
(selectedOnly && selectionGroup!=null) ? selectionGroup.getStartRes() : 0);
}
return null;
(selectedOnly && selectionGroup!=null) ? selectionGroup.getStartRes() : 0);
}
return null;