2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
23 import jalview.controller.FeatureSettingsControllerGuiI;
24 import jalview.datamodel.AlignmentI;
27 * Describes a visual container that can show two alignments.
32 public interface SplitContainerI
36 * Set visibility of the specified split view component.
41 // TODO need an interface for AlignFrame?
42 void setComplementVisible(Object alignFrame, boolean show);
45 * Returns the alignment that is complementary to the one in the given
46 * AlignFrame, or null.
48 AlignmentI getComplement(Object af);
51 * Returns the frame title for the alignment that is complementary to the one
52 * in the given AlignFrame, or null.
57 String getComplementTitle(Object af);
60 * get the 'other' alignFrame in the SplitFrame
63 * @return the complement alignFrame - or null if alignFrame wasn't held by this
66 AlignViewControllerGuiI getComplementAlignFrame(
67 AlignViewControllerGuiI alignFrame);
70 * add the given UI to the splitframe's feature settings UI holder
72 * @param featureSettings
75 void addFeatureSettingsUI(
76 FeatureSettingsControllerGuiI featureSettings);
79 * Request to close all feature settings originating from a particular panel.
81 * @param featureSettings
82 * @param closeContainingFrame
83 * - if false then the tab containing the feature
84 * settings will be 'reset' ready for a new
87 void closeFeatureSettings(FeatureSettingsControllerI featureSettings,
88 boolean closeContainingFrame);
92 * @return true if a feature settings panel is currently open
94 boolean isFeatureSettingsOpen();