*
* You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
*/
-package jalview.gui;
+package jalview.schemes;
import java.util.*;
import java.awt.event.*;
+import jalview.api.AlignViewportI;
+import jalview.api.AlignmentViewPanel;
import jalview.datamodel.*;
import jalview.schemes.*;
public class RNAHelicesColourChooser
{
- AlignViewport av;
+ AlignViewportI av;
- AlignmentPanel ap;
+ AlignmentViewPanel ap;
ColourSchemeI oldcs;
boolean adjusting = false;
- public RNAHelicesColourChooser(AlignViewport av, final AlignmentPanel ap)
+ public RNAHelicesColourChooser(AlignViewportI av, final AlignmentViewPanel ap)
{
oldcs = av.getGlobalColourScheme();
if (av.getAlignment().getGroups() != null)
{
oldgroupColours = new Hashtable();
- Vector allGroups = ap.av.getAlignment().getGroups();
+ Vector allGroups = ap.getAlignment().getGroups();
SequenceGroup sg;
for (int g = 0; g < allGroups.size(); g++)
{
RNAHelicesColour rhc = null;
rhc = new RNAHelicesColour(currentAnnotation);
-
+
av.setGlobalColourScheme(rhc);
if (av.getAlignment().getGroups() != null)
{
- Vector allGroups = ap.av.getAlignment().getGroups();
+ Vector allGroups = ap.getAlignment().getGroups();
SequenceGroup sg;
for (int g = 0; g < allGroups.size(); g++)
{
av.setGlobalColourScheme(oldcs);
if (av.getAlignment().getGroups() != null)
{
- Vector allGroups = ap.av.getAlignment().getGroups();
+ Vector allGroups = ap.getAlignment().getGroups();
SequenceGroup sg;
for (int g = 0; g < allGroups.size(); g++)
{