private static boolean setFlatLookAndFeel()
{
boolean set = false;
+ UIManager.put("InternalFrame.dropShadowPainted", false);
if (SystemInfo.isMacOS)
{
try
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JFrame;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
{
private static final Font VERDANA_12 = new Font("Verdana", 0, 12);
- protected JInternalFrame mainFrame = new JInternalFrame(
+ protected JalviewInternalFrame mainFrame = new JalviewInternalFrame(
getFTSFrameTitle());
protected JTabbedPane tabs = new JTabbedPane();
return cmb_searchTarget;
}
- public JInternalFrame getMainFrame()
+ public JalviewInternalFrame getMainFrame()
{
return mainFrame;
}
pane = editPane;
}
- JInternalFrame frame = new JInternalFrame();
+ JalviewInternalFrame frame = new JalviewInternalFrame();
frame.setFrameIcon(null);
frame.getContentPane().add(new JScrollPane(pane));
{
return alignPanel.overviewPanel;
}
- JInternalFrame frame = new JInternalFrame();
+ JalviewInternalFrame frame = new JalviewInternalFrame();
frame.setFrameIcon(null);
final OverviewPanel overview = new OverviewPanel(alignPanel, frame,
showHidden);
}
else
{
- JInternalFrame frame = new JInternalFrame();
+ JalviewInternalFrame frame = new JalviewInternalFrame();
frame.setFrameIcon(null);
frame.setContentPane(new PairwiseAlignPanel(viewport));
Desktop.addInternalFrame(frame,
import java.util.Hashtable;
import java.util.List;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import jalview.analysis.AlignmentUtils;
import jalview.analysis.AnnotationSorter.SequenceAnnotationOrder;
/*
* Open in split pane. DNA sequence above, protein below.
*/
- JInternalFrame splitFrame = new SplitFrame(cdnaFrame, proteinFrame);
+ JalviewInternalFrame splitFrame = new SplitFrame(cdnaFrame, proteinFrame);
Desktop.addInternalFrame(splitFrame, linkedTitle, -1, -1);
return proteinFrame.viewport.getAlignment();
import java.util.Map;
import javax.swing.JButton;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JLayeredPane;
import javax.swing.JPanel;
private static final int MY_FRAME_HEIGHT = 250;
- private JInternalFrame frame;
+ private JalviewInternalFrame frame;
private AlignmentPanel ap;
*/
private void showFrame()
{
- frame = new JInternalFrame();
+ frame = new JalviewInternalFrame();
frame.setFrameIcon(null);
frame.setContentPane(this);
frame.setLayer(JLayeredPane.PALETTE_LAYER);
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JLayeredPane;
import javax.swing.JPanel;
}
}
}
- frame = new JInternalFrame();
+ frame = new JalviewInternalFrame();
frame.setFrameIcon(null);
frame.setContentPane(this);
frame.setLayer(JLayeredPane.PALETTE_LAYER);
import javax.swing.ButtonGroup;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JLayeredPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
public AnnotationColumnChooser(AlignViewport av, final AlignmentPanel ap, AlignmentAnnotation selectedAnnotation)
{
super(av, ap);
- frame = new JInternalFrame();
+ frame = new JalviewInternalFrame();
frame.setFrameIcon(null);
frame.setContentPane(this);
frame.setLayer(JLayeredPane.PALETTE_LAYER);
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JCheckBox;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JLabel;
import javax.swing.JLayeredPane;
import javax.swing.JPanel;
*/
public class AnnotationExporter extends JPanel
{
- private JInternalFrame frame;
+ private JalviewInternalFrame frame;
private AlignmentPanel ap;
ex.printStackTrace();
}
- frame = new JInternalFrame();
+ frame = new JalviewInternalFrame();
frame.setFrameIcon(null);
frame.setContentPane(this);
frame.setLayer(JLayeredPane.PALETTE_LAYER);
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.event.ChangeEvent;
protected JTextField thresholdValue = new JTextField(20);
- protected JInternalFrame frame;
+ protected JalviewInternalFrame frame;
protected JButton ok = new JButton();
import java.util.List;
import java.util.Map;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JSplitPane;
import javax.swing.event.InternalFrameAdapter;
import javax.swing.event.InternalFrameEvent;
import jalview.util.MessageManager;
import jalview.util.ShiftList;
-public class AppVarna extends JInternalFrame
+public class AppVarna extends JalviewInternalFrame
implements SelectionListener, SecondaryStructureListener,
InterfaceVARNASelectionListener, VamsasSource
{
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JLabel;
import javax.swing.JLayeredPane;
import javax.swing.JPanel;
JButton calculate;
- private JInternalFrame frame;
+ private JalviewInternalFrame frame;
private JCheckBox includeGaps;
void init()
{
setLayout(new BorderLayout());
- frame = new JInternalFrame();
+ frame = new JalviewInternalFrame();
frame.setFrameIcon(null);
frame.setContentPane(this);
this.setBackground(Color.white);
import java.util.List;
import java.util.Map;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
import javax.swing.event.InternalFrameAdapter;
* closeViewer will decide whether or not to close this frame
* depending on whether user chooses to Cancel or not
*/
- setDefaultCloseOperation(JInternalFrame.DO_NOTHING_ON_CLOSE);
+ setDefaultCloseOperation(JalviewInternalFrame.DO_NOTHING_ON_CLOSE);
}
/**
* height
*/
public static synchronized void addInternalFrame(
- final JInternalFrame frame, String title, int w, int h)
+ final JalviewInternalFrame frame, String title, int w, int h)
{
addInternalFrame(frame, title, true, w, h, true, false);
}
* height
*/
public static synchronized void addInternalFrame(
- final JInternalFrame frame, String title, boolean makeVisible,
- int w, int h)
+ final JalviewInternalFrame frame, String title,
+ boolean makeVisible, int w, int h)
{
addInternalFrame(frame, title, makeVisible, w, h, true, false);
}
* Allow resize
*/
public static synchronized void addInternalFrame(
- final JInternalFrame frame, String title, int w, int h,
+ final JalviewInternalFrame frame, String title, int w, int h,
boolean resizable)
{
addInternalFrame(frame, title, true, w, h, resizable, false);
* Do not set the default minimum size for frame
*/
public static synchronized void addInternalFrame(
- final JInternalFrame frame, String title, boolean makeVisible,
- int w, int h, boolean resizable, boolean ignoreMinSize)
+ final JalviewInternalFrame frame, String title,
+ boolean makeVisible, int w, int h, boolean resizable,
+ boolean ignoreMinSize)
{
// TODO: allow callers to determine X and Y position of frame (eg. via
}
/**
- * Add key bindings to a JInternalFrame so that Ctrl-W and Cmd-W will close
- * the window
+ * Add key bindings to a JalviewInternalFrame so that Ctrl-W and Cmd-W will
+ * close the window
*
* @param frame
*/
- private static void setKeyBindings(JInternalFrame frame)
+ private static void setKeyBindings(JalviewInternalFrame frame)
{
@SuppressWarnings("serial")
final Action closeAction = new AbstractAction()
topPanel.av.setGatherViewsHere(false);
bottomPanel.av.setGatherViewsHere(false);
- JInternalFrame splitFrame = new SplitFrame(newTopFrame,
+ JalviewInternalFrame splitFrame = new SplitFrame(newTopFrame,
newBottomFrame);
if (geometry != null)
{
import javax.swing.Icon;
import javax.swing.JButton;
import javax.swing.JCheckBox;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JLabel;
import javax.swing.JLayeredPane;
import javax.swing.JMenuItem;
private Map<String, FeatureMatcherSetI> originalFilters;
- final JInternalFrame frame;
+ final JalviewInternalFrame frame;
JScrollPane scrollPane = new JScrollPane();
}
else
{
- frame = new JInternalFrame();
+ frame = new JalviewInternalFrame();
frame.setContentPane(this);
frame.setFrameIcon(null);
Rectangle bounds = af.getFeatureSettingsGeometry();
private AlignmentPanel ap;
- private JInternalFrame frame;
+ private JalviewInternalFrame frame;
/*
* Finder agent per viewport searched
ap = alignPanel;
focusFixed = fixedFocus;
finders = new HashMap<>();
- frame = new JInternalFrame();
+ frame = new JalviewInternalFrame();
frame.setFrameIcon(null);
frame.setContentPane(this);
frame.setLayer(JLayeredPane.PALETTE_LAYER);
import java.awt.FontMetrics;
import java.awt.geom.Rectangle2D;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JLayeredPane;
import jalview.bin.Cache;
boolean init = true;
- JInternalFrame frame;
+ JalviewInternalFrame frame;
/*
* The last font settings selected in the dialog
void init()
{
- frame = new JInternalFrame();
+ frame = new JalviewInternalFrame();
frame.setFrameIcon(null);
frame.setContentPane(this);
--- /dev/null
+package jalview.gui;
+
+import javax.swing.JInternalFrame;
+
+public class JalviewInternalFrame extends JInternalFrame
+{
+ public JalviewInternalFrame()
+ {
+ super();
+ init();
+ }
+
+ public JalviewInternalFrame(String title)
+ {
+ super(title);
+ init();
+ }
+
+ private void init()
+ {
+ this.setFrameIcon(null);
+ this.setOpaque(true);
+ }
+
+}
if (raiseParent)
{
parentComponent.requestFocus();
- if (parentComponent instanceof JInternalFrame)
+ if (parentComponent instanceof JalviewInternalFrame)
{
- JInternalFrame jif = (JInternalFrame) parentComponent;
+ JalviewInternalFrame jif = (JalviewInternalFrame) parentComponent;
jif.show();
jif.moveToFront();
jif.grabFocus();
if (raiseParent)
{
parentComponent.requestFocus();
- if (parentComponent instanceof JInternalFrame)
+ if (parentComponent instanceof JalviewInternalFrame)
{
- JInternalFrame jif = (JInternalFrame) parentComponent;
+ JalviewInternalFrame jif = (JalviewInternalFrame) parentComponent;
jif.show();
jif.moveToFront();
jif.grabFocus();
if (raiseParent)
{
parentComponent.requestFocus();
- if (parentComponent instanceof JInternalFrame)
+ if (parentComponent instanceof JalviewInternalFrame)
{
- JInternalFrame jif = (JInternalFrame) parentComponent;
+ JalviewInternalFrame jif = (JalviewInternalFrame) parentComponent;
jif.show();
jif.moveToFront();
jif.grabFocus();
}
/**
- * This helper method makes the JInternalFrame wait until it is notified by an
- * InternalFrameClosing event. This method also adds the given JOptionPane to
- * the JInternalFrame and sizes it according to the JInternalFrame's preferred
- * size.
+ * This helper method makes the JalviewInternalFrame wait until it is notified
+ * by an InternalFrameClosing event. This method also adds the given
+ * JOptionPane to the JalviewInternalFrame and sizes it according to the
+ * JalviewInternalFrame's preferred size.
*
* @param f
- * The JInternalFrame to make modal.
+ * The JalviewInternalFrame to make modal.
*/
private static void startModal(JInternalFrame f)
{
import java.beans.PropertyVetoException;
import javax.swing.JCheckBoxMenuItem;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JPanel;
import javax.swing.JPopupMenu;
import javax.swing.SwingUtilities;
private AlignmentPanel ap;
- private JInternalFrame internalFrame;
+ private JalviewInternalFrame internalFrame;
protected JCheckBoxMenuItem displayToggle;
* @param isShowHidden
* TODO
*/
- public OverviewPanel(AlignmentPanel alPanel, JInternalFrame frame,
+ public OverviewPanel(AlignmentPanel alPanel, JalviewInternalFrame frame,
boolean isShowHidden)
{
this.av = alPanel.av;
* close the parent frame (which also removes it from the
* Desktop Windows menu)
*/
- ((JInternalFrame) SwingUtilities
- .getAncestorOfClass(JInternalFrame.class, (this)))
+ ((JalviewInternalFrame) SwingUtilities
+ .getAncestorOfClass(JalviewInternalFrame.class, (this)))
.setClosed(true);
} catch (PropertyVetoException e)
{
import javax.swing.ButtonGroup;
import javax.swing.JCheckBoxMenuItem;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuItem;
protected void showFeatureDetails(SequenceFeature sf, String seqName,
MappedFeatures mf)
{
- JInternalFrame details;
+ JalviewInternalFrame details;
if (Platform.isJS())
{
- details = new JInternalFrame();
+ details = new JalviewInternalFrame();
details.setFrameIcon(null);
JPanel panel = new JPanel(new BorderLayout());
panel.setOpaque(true);
contents.append("</body></html>");
String report = contents.toString();
- JInternalFrame frame;
+ JalviewInternalFrame frame;
if (Platform.isJS())
{
JLabel textLabel = new JLabel();
pane.setOpaque(true);
pane.setBackground(Color.WHITE);
pane.add(textLabel, BorderLayout.NORTH);
- frame = new JInternalFrame();
+ frame = new JalviewInternalFrame();
frame.setFrameIcon(null);
frame.getContentPane().add(new JScrollPane(pane));
}
import javax.help.HelpSetException;
import javax.swing.JComboBox;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JPanel;
import javax.swing.ListSelectionModel;
import javax.swing.RowFilter;
Cache.enableSessionProperties();
}
- JInternalFrame frame;
+ JalviewInternalFrame frame;
private WsPreferences wsPrefs;
// don't populate with session properties
Cache.disableSessionProperties();
- frame = new JInternalFrame();
+ frame = new JalviewInternalFrame();
frame.setFrameIcon(null);
frame.setContentPane(this);
if (!Platform.isJS())
import java.util.List;
import java.util.Map;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JMenuItem;
import javax.swing.event.InternalFrameAdapter;
import javax.swing.event.InternalFrameEvent;
* closeViewer will decide whether or not to close this frame
* depending on whether user chooses to Cancel or not
*/
- setDefaultCloseOperation(JInternalFrame.DO_NOTHING_ON_CLOSE);
+ setDefaultCloseOperation(JalviewInternalFrame.DO_NOTHING_ON_CLOSE);
}
public PymolViewer(PDBEntry pdb, SequenceI[] seqs, Object object,
import java.util.Stack;
import java.util.Vector;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JProgressBar;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
SequenceI[] originalSequences;
- JInternalFrame frame;
+ JalviewInternalFrame frame;
Vector redundantSeqs;
Thread worker = new Thread(this);
worker.start();
- frame = new JInternalFrame();
+ frame = new JalviewInternalFrame();
frame.setFrameIcon(null);
frame.setContentPane(this);
Desktop.addInternalFrame(frame,
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
JTextArea textArea;
- JInternalFrame frame;
+ JalviewInternalFrame frame;
IProgressIndicator guiWindow;
jbInit(selectedDb);
textArea.setText(queryString);
- frame = new JInternalFrame();
+ frame = new JalviewInternalFrame();
frame.setContentPane(this);
frame.setFrameIcon(null);
Desktop.addInternalFrame(frame, getFrameTitle(), true, 400,
import java.beans.PropertyVetoException;
import java.util.List;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JLayeredPane;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
{
private static final String BACKGROUND = "Background";
- static JInternalFrame conservationSlider;
+ static JalviewInternalFrame conservationSlider;
- static JInternalFrame PIDSlider;
+ static JalviewInternalFrame PIDSlider;
AlignmentPanel ap;
if (conservationSlider == null)
{
sliderPanel = new SliderPanel(ap, rs.getConservationInc(), true, rs);
- conservationSlider = new JInternalFrame();
+ conservationSlider = new JalviewInternalFrame();
conservationSlider.setFrameIcon(null);
conservationSlider.setContentPane(sliderPanel);
conservationSlider.setLayer(JLayeredPane.PALETTE_LAYER);
if (PIDSlider == null)
{
sliderPanel = new SliderPanel(ap, threshold, false, rs);
- PIDSlider = new JInternalFrame();
+ PIDSlider = new JalviewInternalFrame();
PIDSlider.setFrameIcon(null);
PIDSlider.setContentPane(sliderPanel);
PIDSlider.setLayer(JLayeredPane.PALETTE_LAYER);
*
* @return
*/
- public static JInternalFrame showPIDSlider()
+ public static JalviewInternalFrame showPIDSlider()
{
hideConservationSlider();
return getValue(conservationSlider);
}
- static int getValue(JInternalFrame slider)
+ static int getValue(JalviewInternalFrame slider)
{
return slider == null ? 0
: ((SliderPanel) slider.getContentPane()).getValue();
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JLabel;
import javax.swing.JLayeredPane;
import javax.swing.JPanel;
*/
private Component splashText;
- private JInternalFrame iframe;
+ private JalviewInternalFrame iframe;
private Image image;
this.setForeground(fg);
this.setFont(font);
- iframe = new JInternalFrame();
+ iframe = new JalviewInternalFrame();
iframe.setFrameIcon(null);
iframe.setClosable(true);
this.setLayout(new BorderLayout());
* holds the frame for feature settings, so Protein and DNA tabs can be
* managed
*/
- JInternalFrame featureSettingsUI;
+ JalviewInternalFrame featureSettingsUI;
JTabbedPane featureSettingsPanels;
getAlignFrames().get(tab).showFeatureSettingsUI();
}
});
- featureSettingsUI = new JInternalFrame(MessageManager.getString(
+ featureSettingsUI = new JalviewInternalFrame(MessageManager.getString(
"label.sequence_feature_settings_for_CDS_and_Protein"));
featureSettingsUI.setFrameIcon(null);
featureSettingsPanels.setOpaque(true);
import java.util.Locale;
import javax.swing.JButton;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import javax.xml.bind.JAXBContext;
*/
boolean changedButNotSaved;
- JInternalFrame frame;
+ JalviewInternalFrame frame;
List<JButton> upperCaseButtons;
void showFrame()
{
colorChooser.getSelectionModel().addChangeListener(this);
- frame = new JInternalFrame();
+ frame = new JalviewInternalFrame();
frame.setFrameIcon(null);
frame.setContentPane(this);
Desktop.addInternalFrame(frame,
*/
package jalview.gui;
+import java.beans.PropertyChangeEvent;
+import java.beans.PropertyChangeListener;
+import java.io.File;
+import java.io.IOException;
+import java.util.Hashtable;
+import java.util.IdentityHashMap;
+import java.util.Iterator;
+
+import javax.swing.JInternalFrame;
+
import jalview.bin.Cache;
import jalview.bin.Console;
import jalview.datamodel.AlignmentI;
import jalview.structure.VamsasSource;
import jalview.util.MessageManager;
import jalview.viewmodel.AlignmentViewport;
-
-import java.beans.PropertyChangeEvent;
-import java.beans.PropertyChangeListener;
-import java.io.File;
-import java.io.IOException;
-import java.util.Hashtable;
-import java.util.IdentityHashMap;
-import java.util.Iterator;
-
-import javax.swing.JInternalFrame;
-
import uk.ac.vamsas.client.ClientHandle;
import uk.ac.vamsas.client.IClient;
import uk.ac.vamsas.client.IClientDocument;
jselection.setEndRes(prange[p + u] - 1);
}
// mark all the columns in the range.
- for (int sr = prange[p], er = prange[p + 1], de = er
- + d; sr != de; sr += d)
+ for (int sr = prange[p], er = prange[p + 1],
+ de = er + d; sr != de; sr += d)
{
colsel.addElement(sr - 1);
}
import javax.swing.JComponent;
import javax.swing.JEditorPane;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
boolean serviceIsCancellable;
- JInternalFrame frame;
+ JalviewInternalFrame frame;
private IProgressIndicator progressBar;
void init(String title, String info, int width, int height,
boolean makeVisible)
{
- frame = new JInternalFrame();
+ frame = new JalviewInternalFrame();
frame.setFrameIcon(null);
frame.setContentPane(this);
Desktop.addInternalFrame(frame, title, makeVisible, width, height);
*/
package jalview.io;
+import java.io.IOException;
+import java.util.Enumeration;
+import java.util.HashMap;
+import java.util.Hashtable;
+import java.util.IdentityHashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Vector;
+import java.util.jar.JarInputStream;
+import java.util.jar.JarOutputStream;
+
import jalview.bin.Console;
import jalview.datamodel.AlignedCodonFrame;
import jalview.datamodel.AlignmentAnnotation;
import jalview.project.Jalview2XML;
import jalview.util.MessageManager;
import jalview.viewmodel.AlignmentViewport;
-
-import java.io.IOException;
-import java.util.Enumeration;
-import java.util.HashMap;
-import java.util.Hashtable;
-import java.util.IdentityHashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Vector;
-import java.util.jar.JarInputStream;
-import java.util.jar.JarOutputStream;
-
import uk.ac.vamsas.client.IClientAppdata;
import uk.ac.vamsas.client.IClientDocument;
import uk.ac.vamsas.client.Vobject;
}
// ////////////////////////////////////////////
// SAVE Alignment Sequence Features
- for (int i = 0, iSize = alignment
- .getAlignmentSequenceCount(); i < iSize; i++)
+ for (int i = 0,
+ iSize = alignment.getAlignmentSequenceCount(); i < iSize; i++)
{
AlignmentSequence valseq;
SequenceI alseq = (SequenceI) getvObj2jv(
+ ((Vobject) dataset
.getDataSetAnnotations(dsa)
.getSeqRef(0)).getVorbaId()
- .getId());
+ .getId());
}
else
{
{
// LOAD ALIGNMENTS from DATASET
- for (int al = 0, nal = dataset
- .getAlignmentCount(); al < nal; al++)
+ for (int al = 0,
+ nal = dataset.getAlignmentCount(); al < nal; al++)
{
uk.ac.vamsas.objects.core.Alignment alignment = dataset
.getAlignment(al);
if (newasAnnots != null && newasAnnots.size() > 0)
{
// Add the new sequence annotations in to the alignment.
- for (int an = 0, anSize = newasAnnots
- .size(); an < anSize; an++)
+ for (int an = 0,
+ anSize = newasAnnots.size(); an < anSize; an++)
{
jal.addAnnotation(
(AlignmentAnnotation) newasAnnots.elementAt(an));
.getAction();
if (alignment.getPropertyCount() > 0)
{
- for (int p = 0, pe = alignment
- .getPropertyCount(); p < pe; p++)
+ for (int p = 0,
+ pe = alignment.getPropertyCount(); p < pe; p++)
{
if (alignment.getProperty(p).getName().equals("title"))
{
import javax.swing.BorderFactory;
import javax.swing.ButtonGroup;
import javax.swing.JCheckBoxMenuItem;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import jalview.util.Platform;
@SuppressWarnings("serial")
-public class GAlignFrame extends JInternalFrame
+public class GAlignFrame extends JalviewInternalFrame
{
protected JMenuBar alignFrameMenuBar = new JMenuBar();
import javax.swing.JButton;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JEditorPane;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
* @author $author$
* @version $Revision$
*/
-public class GCutAndPasteHtmlTransfer extends JInternalFrame
+public class GCutAndPasteHtmlTransfer extends JalviewInternalFrame
{
protected JEditorPane textarea = new JEditorPane("text/html", "");
import java.awt.event.MouseEvent;
import javax.swing.JButton;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
* @author $author$
* @version $Revision$
*/
-public class GCutAndPasteTransfer extends JInternalFrame
+public class GCutAndPasteTransfer extends JalviewInternalFrame
{
protected JTextArea textarea = new JTextArea();
import javax.swing.JButton;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JComboBox;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import jalview.util.ImageMaker.TYPE;
import jalview.util.MessageManager;
-public class GPCAPanel extends JInternalFrame
+public class GPCAPanel extends JalviewInternalFrame
{
private static final Font VERDANA_12 = new Font("Verdana", 0, 12);
*/
package jalview.jbgui;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
@SuppressWarnings("serial")
-public class GRnaStructureViewer extends JInternalFrame
+public class GRnaStructureViewer extends JalviewInternalFrame
{
public GRnaStructureViewer()
{
import java.awt.Point;
import java.awt.Rectangle;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JSplitPane;
import javax.swing.plaf.basic.BasicInternalFrameUI;
import jalview.util.Platform;
-public class GSplitFrame extends JInternalFrame
+public class GSplitFrame extends JalviewInternalFrame
{
protected static final int DIVIDER_SIZE = 5;
if (Platform.isAMacAndNotJS())
{
// this saves some space - but doesn't hide the title bar
- topFrame.putClientProperty("JInternalFrame.isPalette", true);
+ topFrame.putClientProperty("JalviewInternalFrame.isPalette", true);
// topFrame.getRootPane().putClientProperty("Window.style", "small");
- bottomFrame.putClientProperty("JInternalFrame.isPalette", true);
+ bottomFrame.putClientProperty("JalviewInternalFrame.isPalette", true);
}
else
{
import javax.swing.JCheckBox;
import javax.swing.JComboBox;
import javax.swing.JFrame;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JPanel;
protected String frameTitle = MessageManager
.getString("label.structure_chooser");
- protected JInternalFrame mainFrame = new JInternalFrame(frameTitle);
+ protected JalviewInternalFrame mainFrame = new JalviewInternalFrame(frameTitle);
protected JComboBox<FilterOption> cmb_filterOption = new JComboBox<>();
protected abstract void validateSelections();
- public JInternalFrame getFrame()
+ public JalviewInternalFrame getFrame()
{
return mainFrame;
}
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import jalview.util.MessageManager;
@SuppressWarnings("serial")
-public abstract class GStructureViewer extends JInternalFrame
+public abstract class GStructureViewer extends JalviewInternalFrame
implements JalviewStructureDisplayI, ColourChangeListener
{
// private AAStructureBindingModel bindingModel;
import java.awt.event.ActionListener;
import javax.swing.JCheckBoxMenuItem;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import jalview.util.MessageManager;
@SuppressWarnings("serial")
-public class GTreePanel extends JInternalFrame
+public class GTreePanel extends JalviewInternalFrame
{
BorderLayout borderLayout1 = new BorderLayout();
import java.awt.Color;
import java.awt.Font;
-import java.awt.FontMetrics;
import java.awt.Rectangle;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
return BitSet.valueOf(newlongvals);
}
+
private CalcIdParam createCalcIdParam(String calcId, AlignViewport av)
{
AutoCalcSetting settings = av.getCalcIdSettingsFor(calcId);
import java.util.Map;
import java.util.Vector;
-import javax.swing.JInternalFrame;
+import jalview.gui.JalviewInternalFrame;
import compbio.data.msa.MsaWS;
import compbio.metadata.Argument;
af2.setTitle(complementTitle);
String linkedTitle = MessageManager
.getString("label.linked_view_title");
- JInternalFrame splitFrame = new SplitFrame(
+ JalviewInternalFrame splitFrame = new SplitFrame(
al.isNucleotide() ? af : af2, al.isNucleotide() ? af2 : af);
Desktop.addInternalFrame(splitFrame, linkedTitle, -1, -1);
return;