fs.handlingUpdate=false;
}
}
-
+
});
-
+
frame = new JInternalFrame();
frame.setContentPane(this);
Desktop.addInternalFrame(frame, "Sequence Feature Settings", 400, 450);
* true when Feature Settings are updating from feature renderer
*/
private boolean handlingUpdate=false;
-
+
/**
* contains a float[3] for each feature type string. created by setTableData
*/
index++;
}
}
-
+
resetTable(null);
validate();
}
/**
- *
+ *
* @param group
* @return true if group has been seen before and is already added to set.
*/
{
visible = ( (Boolean) fr.featureGroups.get(group)).booleanValue();
} else {
- visible=true; // new group is always made visible
+ visible=true; // new group is always made visible
}
if (groupPanel == null)
if (alreadyAdded)
{
-
+
return true;
}
boolean sort=false;
for (int i=0;i<width.length; i++) {
//awidth = (float[]) typeWidth.get(data[i][0]);
- if (width[i]==0)
+ if (width[i]==0)
{
width[i] = fr.getOrder(data[i][0].toString());
if (width[i]<0)
{
width[i] = fr.setOrder(data[i][0].toString(), i/data.length);
}
- } else {
+ } else {
width[i] /=max; // normalize
- fr.setOrder(data[i][0].toString(), width[i]); // store for later
+ fr.setOrder(data[i][0].toString(), width[i]); // store for later
}
if (i>0)
sort = sort || width[i-1]>width[i];
if (sort)
jalview.util.QuickSort.sort(width, data);
// update global priority order
-
+
updateFeatureRenderer(data,false);
table.repaint();
}
{
fr.setFeaturePriority(data, visibleNew);
af.alignPanel.paintAlignment(true);
-
- if (af.alignPanel.overviewPanel != null)
- {
- af.alignPanel.overviewPanel.updateOverviewImage();
- }
}
int selectedRow = -1;