HiddenSequences hiddenSequences = new HiddenSequences(this);
+ public Hashtable alignmentProperties;
+
private void initAlignment(SequenceI[] seqs)
{
int i = 0;
return cal;
}
+ public void setProperty(Object key, Object value)
+ {
+ if(alignmentProperties==null)
+ alignmentProperties = new Hashtable();
+
+ alignmentProperties.put(key,value);
+ }
+
+ public Object getProperty(Object key)
+ {
+ if(alignmentProperties!=null)
+ return alignmentProperties.get(key);
+ else
+ return null;
+ }
+
+
}
/**
* Score associated with label and description.
*/
- public float score;
+ public float score= Float.NaN;
/**
* flag indicating if annotation has a score.
*/
public boolean hasScore=false;
-
+
public GraphLine threshold;
// Graphical hints and tips
public static final int LINE_GRAPH = 2;
+ public boolean belowAlignment = true;
+
public static int getGraphValueFromString(String string)
{
*
* @param label DOCUMENT ME!
* @param description DOCUMENT ME!
- * @param annotations DOCUMENT ME!
+ * @param annotations DOCUMENT ME!about:blank
+Loading...
*/
public AlignmentAnnotation(String label, String description,
Annotation[] annotations)
* 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;
this.score = score;
}
/**
- *
+ *
* @return true if annotation has an associated score
*/
public boolean hasScore()
/**
* Adds a new AlignmentAnnotation to this alignment
- * @note Care should be taken to ensure that annotation is at
+ * @note Care should be taken to ensure that annotation is at
* least as wide as the longest sequence in the alignment
* for rendering purposes.
*/
/**
* Set the associated dataset for the alignment, or create one.
- * @param dataset The dataset alignment or null to construct one.
+ * @param dataset The dataset alignment or null to construct one.
*/
public void setDataset(Alignment dataset);
* @return CigarArray
*/
public CigarArray getCompactAlignment();
+
+ public void setProperty(Object key, Object value);
+
+ public Object getProperty(Object key);
}