*/
private jalview.schemabinding.version2.FeatureSettings _featureSettings;
+ /**
+ * List of external trees
+ */
+ private java.util.Vector<jalview.ext.treeviewer.TreeFrameI> _extTreeList;
+
// ----------------/
// - Constructors -/
// ----------------/
this._viewportList = new java.util.Vector();
this._userColoursList = new java.util.Vector();
this._treeList = new java.util.Vector();
+ this._extTreeList = new java.util.Vector<>();
}
// -----------/
this._treeList.add(index, vTree);
}
+ public void addExtTreeViewer(jalview.ext.treeviewer.TreeFrameI treeViewer)
+ {
+ this._extTreeList.add(treeViewer);
+ }
+
+ public void addExtTreeViewer(final int index,
+ jalview.ext.treeviewer.TreeFrameI treeViewer)
+ {
+ this._extTreeList.add(index, treeViewer);
+ }
/**
*
*
return this._treeList.size();
}
+ public jalview.ext.treeviewer.TreeFrameI getExtTreeViewer(final int index)
+ throws java.lang.IndexOutOfBoundsException
+ {
+ // check bounds for index
+ if (index < 0 || index >= this._extTreeList.size())
+ {
+ throw new IndexOutOfBoundsException("getExtTreeViewer: Index value '"
+ + index + "' not in range [0.."
+ + (this._extTreeList.size() - 1) + "]");
+ }
+
+ return _extTreeList.get(index);
+ }
+
+ public jalview.ext.treeviewer.TreeFrameI[] getExtTreeViewer()
+ {
+ jalview.ext.treeviewer.TreeFrameI[] array = new jalview.ext.treeviewer.TreeFrameI[0];
+ return this._extTreeList.toArray(array);
+ }
+
+ public int getExtTreeViewerCount()
+ {
+ return this._extTreeList.size();
+ }
+
/**
* Method getUserColours.
*