/** DOCUMENT ME!! */
public float graphMax;
+ /**
+ * Score associated with label and description.
+ */
public float score;
-
+ /**
+ * flag indicating if annotation has a score.
+ */
+ public boolean hasScore=false;
+
public GraphLine threshold;
// Graphical hints and tips
* if appropriate.
*/
private void validateRangeAndDisplay() {
+ if (annotations==null)
+ {
+ visible=false; // try to prevent renderer from displaying.
+ return; // this is a non-annotation row annotation - ie a sequence score.
+ }
int graphType = graph;
float min = graphMin;
float max = graphMax;
{
return;
}
-
+ if (annotations==null)
+ {
+ return;
+ }
sequenceMapping = new java.util.Hashtable();
sequenceRef = seqRef;
if (sequenceRef==null)
return;
+ if (annotations==null)
+ {
+ return;
+ }
+
int a = 0, aSize = sequenceRef.getLength();
if (aSize == 0)
sequenceRef = null;
}
}
+
+ /**
+ * @return the score
+ */
+ public float getScore()
+ {
+ return score;
+ }
+
+ /**
+ * @param score the score to set
+ */
+ public void setScore(float score)
+ {
+ this.score = score;
+ }
+ /**
+ *
+ * @return true if annotation has an associated score
+ */
+ public boolean hasScore()
+ {
+ return hasScore;
+ }
}