{
AlignmentViewPanel ap = (avp == null) ? getViewer().getAlignmentPanel()
: avp;
+ if (ap == null)
+ {
+ return null;
+ }
return ap.getAlignViewport().isShowSequenceFeatures()
? ap.getFeatureRenderer()
: null;
}
}
}
+
+ /**
+ * Returns the number of structure files in the structure viewer and mapped to
+ * Jalview. This may be zero if the files are still in the process of loading
+ * in the viewer.
+ *
+ * @return
+ */
+ public int getMappedStructureCount()
+ {
+ String[] files = getStructureFiles();
+ return files == null ? 0 : files.length;
+ }
}