import jalview.renderer.ResidueShaderI;
import jalview.schemes.ColourSchemeI;
import jalview.util.MessageManager;
+import jalview.workers.InformationThread;
import java.awt.Color;
import java.beans.PropertyChangeListener;
information.annotations = null;
information.annotations = new Annotation[aWidth]; // should be alignment
// width
- information.calcId = "HMM";
+ information.setCalcId(InformationThread.HMM_CALC_ID);
AAFrequency.completeInformation(information, cnsns, startRes,
- endRes + 1, nseq, 0f); // TODO:
- // setting
- // container
- // for
- // ignoreGapsInInformationCalculation);
+ endRes + 1, nseq, 0f);
}
/**
}
/**
+ * Answers the Hidden Markov Model annotation for this group (creating it if
+ * necessary)
*
- * @return information content annotation.
+ * @return
*/
public AlignmentAnnotation getInformation()
{
- // TODO get or calculate and get information annotation row for this group
- int aWidth = this.getWidth();
- // pointer
- // possibility
- // here.
- if (aWidth < 0)
- {
- return null;
- }
if (information == null)
{
information = new AlignmentAnnotation("", "", new Annotation[1], 0f,
information.autoCalculated = false;
information.groupRef = this;
information.label = getName();
- information.description = "Information content, measured in bits";
- information.calcId = "HMM";
+ information.description = MessageManager
+ .getString("label.information_description");
+ information.setCalcId(InformationThread.HMM_CALC_ID);
}
return information;
}