*/
package MCview;
+import jalview.analysis.AlignSeq;
+import jalview.appletgui.AlignmentPanel;
+import jalview.appletgui.FeatureRenderer;
+import jalview.appletgui.SequenceRenderer;
+import jalview.datamodel.PDBEntry;
+import jalview.datamodel.SequenceI;
+import jalview.io.AppletFormatAdapter;
+import jalview.schemes.ColourSchemeI;
+import jalview.structure.AtomSpec;
+import jalview.structure.StructureListener;
+import jalview.structure.StructureMapping;
+import jalview.structure.StructureSelectionManager;
+import jalview.util.MessageManager;
+
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Event;
import java.util.List;
import java.util.Vector;
-import jalview.analysis.AlignSeq;
-import jalview.appletgui.AlignmentPanel;
-import jalview.appletgui.FeatureRenderer;
-import jalview.appletgui.SequenceRenderer;
-import jalview.datamodel.PDBEntry;
-import jalview.datamodel.SequenceI;
-import jalview.structure.AtomSpec;
-import jalview.structure.StructureListener;
-import jalview.structure.StructureMapping;
-import jalview.structure.StructureSelectionManager;
-import jalview.util.MessageManager;
-
public class AppletPDBCanvas extends Panel implements MouseListener,
MouseMotionListener, StructureListener
{
{
pdb = ssm.setMapping(seq, chains, pdbentry.getFile(), protocol);
- if (protocol.equals(jalview.io.AppletFormatAdapter.PASTE))
+ if (protocol.equals(AppletFormatAdapter.PASTE))
{
pdbentry.setFile("INLINE" + pdb.id);
}
drawLabels(ig);
}
- public void setColours(jalview.schemes.ColourSchemeI cs)
+ public void setColours(ColourSchemeI cs)
{
bysequence = false;
pdb.setColours(cs);
*/
package MCview;
-import java.awt.*;
-import java.awt.event.*;
-
-import jalview.appletgui.*;
-import jalview.datamodel.*;
-import jalview.schemes.*;
+import jalview.appletgui.AlignmentPanel;
+import jalview.appletgui.CutAndPasteTransfer;
+import jalview.appletgui.EmbmenuFrame;
+import jalview.bin.JalviewLite;
+import jalview.datamodel.PDBEntry;
+import jalview.datamodel.SequenceI;
+import jalview.schemes.BuriedColourScheme;
+import jalview.schemes.HelixColourScheme;
+import jalview.schemes.HydrophobicColourScheme;
+import jalview.schemes.StrandColourScheme;
+import jalview.schemes.TaylorColourScheme;
+import jalview.schemes.TurnColourScheme;
+import jalview.schemes.ZappoColourScheme;
import jalview.util.MessageManager;
+import java.awt.BorderLayout;
+import java.awt.CheckboxGroup;
+import java.awt.CheckboxMenuItem;
+import java.awt.Frame;
+import java.awt.Menu;
+import java.awt.MenuBar;
+import java.awt.MenuItem;
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+import java.awt.event.ItemEvent;
+import java.awt.event.ItemListener;
+
public class AppletPDBViewer extends EmbmenuFrame implements
ActionListener, ItemListener
{
StringBuffer title = new StringBuffer(seq[0].getName() + ":"
+ pdbcanvas.pdbentry.getFile());
- jalview.bin.JalviewLite.addFrame(this, title.toString(), 400, 400);
+ JalviewLite.addFrame(this, title.toString(), 400, 400);
}
{
if (evt.getSource() == mapping)
{
- jalview.appletgui.CutAndPasteTransfer cap = new jalview.appletgui.CutAndPasteTransfer(
- false, null);
+ CutAndPasteTransfer cap = new CutAndPasteTransfer(false, null);
Frame frame = new Frame();
frame.add(cap);
- jalview.bin.JalviewLite.addFrame(frame,
+ JalviewLite.addFrame(frame,
MessageManager.getString("label.pdb_sequence_mapping"), 500,
600);
cap.setText(pdbcanvas.mappingDetails.toString());
*/
package MCview;
+import jalview.analysis.AlignSeq;
+import jalview.datamodel.PDBEntry;
+import jalview.datamodel.SequenceI;
+import jalview.gui.AlignmentPanel;
+import jalview.gui.FeatureRenderer;
+import jalview.gui.SeqCanvas;
+import jalview.gui.SequenceRenderer;
+import jalview.io.AppletFormatAdapter;
+import jalview.structure.AtomSpec;
+import jalview.structure.StructureListener;
+import jalview.structure.StructureMapping;
+import jalview.structure.StructureSelectionManager;
+
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Event;
import javax.swing.JPanel;
import javax.swing.ToolTipManager;
-import jalview.analysis.AlignSeq;
-import jalview.datamodel.PDBEntry;
-import jalview.datamodel.SequenceI;
-import jalview.gui.AlignmentPanel;
-import jalview.gui.FeatureRenderer;
-import jalview.gui.SequenceRenderer;
-import jalview.structure.AtomSpec;
-import jalview.structure.StructureListener;
-import jalview.structure.StructureMapping;
-import jalview.structure.StructureSelectionManager;
-
public class PDBCanvas extends JPanel implements MouseListener,
MouseMotionListener, StructureListener
{
Font font = new Font("Helvetica", Font.PLAIN, 10);
- jalview.gui.SeqCanvas seqcanvas;
+ SeqCanvas seqcanvas;
public SequenceI[] sequence;
{
pdb = ssm.setMapping(seq, chains, pdbentry.getFile(), protocol);
- if (protocol.equals(jalview.io.AppletFormatAdapter.PASTE))
+ if (protocol.equals(AppletFormatAdapter.PASTE))
{
pdbentry.setFile("INLINE" + pdb.id);
}
*/
package MCview;
-import java.awt.Color;
-import java.util.List;
-import java.util.Vector;
-
import jalview.analysis.AlignSeq;
import jalview.datamodel.AlignmentAnnotation;
import jalview.datamodel.Annotation;
import jalview.schemes.ResidueProperties;
import jalview.structure.StructureMapping;
+import java.awt.Color;
+import java.util.List;
+import java.util.Vector;
+
public class PDBChain
{
/**
* @param sqmpping
* - mapping between destination sequence and local chain
*/
- public void transferResidueAnnotation(
- StructureMapping mapping, jalview.datamodel.Mapping sqmpping)
+ public void transferResidueAnnotation(StructureMapping mapping,
+ Mapping sqmpping)
{
SequenceI sq = mapping.getSequence();
SequenceI dsq = sq;
*/
package MCview;
+import jalview.bin.Cache;
import jalview.datamodel.PDBEntry;
import jalview.datamodel.SequenceI;
import jalview.gui.AlignmentPanel;
+import jalview.gui.CutAndPasteTransfer;
import jalview.gui.Desktop;
import jalview.gui.OOMWarning;
import jalview.gui.UserDefinedColours;
+import jalview.io.AppletFormatAdapter;
import jalview.io.JalviewFileChooser;
import jalview.io.JalviewFileView;
import jalview.schemes.BuriedColourScheme;
import jalview.schemes.TurnColourScheme;
import jalview.schemes.UserColourScheme;
import jalview.schemes.ZappoColourScheme;
+import jalview.util.ImageMaker;
import jalview.util.MessageManager;
import jalview.ws.ebi.EBIFetchClient;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.PrintWriter;
+import java.util.Enumeration;
import javax.swing.ButtonGroup;
import javax.swing.JCheckBoxMenuItem;
{
tmpPDBFile = pdbentry.getFile();
PDBfile pdbfile = new PDBfile(false, false, false, tmpPDBFile,
- jalview.io.AppletFormatAdapter.FILE);
+ AppletFormatAdapter.FILE);
pdbcanvas.init(pdbentry, seq, chains, ap, protocol);
bg.add(buried);
bg.add(user);
- if (jalview.gui.UserDefinedColours.getUserColourSchemes() != null)
+ if (UserDefinedColours.getUserColourSchemes() != null)
{
- java.util.Enumeration userColours = jalview.gui.UserDefinedColours
+ Enumeration userColours = UserDefinedColours
.getUserColourSchemes().keys();
while (userColours.hasMoreElements())
radioItem.removeActionListener(radioItem.getActionListeners()[0]);
int option = JOptionPane.showInternalConfirmDialog(
- jalview.gui.Desktop.desktop,
+ Desktop.desktop,
MessageManager
.getString("label.remove_from_default_list"),
MessageManager
JOptionPane.YES_NO_OPTION);
if (option == JOptionPane.YES_OPTION)
{
- jalview.gui.UserDefinedColours
+ UserDefinedColours
.removeColourFromDefaults(radioItem.getText());
coloursMenu.remove(radioItem);
}
*/
public void eps_actionPerformed(ActionEvent e)
{
- makePDBImage(jalview.util.ImageMaker.TYPE.EPS);
+ makePDBImage(ImageMaker.TYPE.EPS);
}
/**
*/
public void png_actionPerformed(ActionEvent e)
{
- makePDBImage(jalview.util.ImageMaker.TYPE.PNG);
+ makePDBImage(ImageMaker.TYPE.PNG);
}
- void makePDBImage(jalview.util.ImageMaker.TYPE type)
+ void makePDBImage(ImageMaker.TYPE type)
{
int width = pdbcanvas.getWidth();
int height = pdbcanvas.getHeight();
- jalview.util.ImageMaker im;
+ ImageMaker im;
- if (type == jalview.util.ImageMaker.TYPE.PNG)
+ if (type == ImageMaker.TYPE.PNG)
{
- im = new jalview.util.ImageMaker(this,
- jalview.util.ImageMaker.TYPE.PNG,
+ im = new ImageMaker(this, ImageMaker.TYPE.PNG,
"Make PNG image from view", width, height, null, null);
}
- else if (type == jalview.util.ImageMaker.TYPE.EPS)
+ else if (type == ImageMaker.TYPE.EPS)
{
- im = new jalview.util.ImageMaker(this,
- jalview.util.ImageMaker.TYPE.EPS,
+ im = new ImageMaker(this, ImageMaker.TYPE.EPS,
"Make EPS file from view", width, height, null,
this.getTitle());
}
else
{
- im = new jalview.util.ImageMaker(this,
- jalview.util.ImageMaker.TYPE.SVG, "Make SVG file from PCA",
+ im = new ImageMaker(this, ImageMaker.TYPE.SVG,
+ "Make SVG file from PCA",
width, height, null, this.getTitle());
}
public void mapping_actionPerformed(ActionEvent e)
{
- jalview.gui.CutAndPasteTransfer cap = new jalview.gui.CutAndPasteTransfer();
+ CutAndPasteTransfer cap = new CutAndPasteTransfer();
try
{
cap.setText(pdbcanvas.mappingDetails.toString());
public void savePDB_actionPerformed(ActionEvent e)
{
JalviewFileChooser chooser = new JalviewFileChooser(
- jalview.bin.Cache.getProperty("LAST_DIRECTORY"));
+ Cache.getProperty("LAST_DIRECTORY"));
chooser.setFileView(new JalviewFileView());
chooser.setDialogTitle(MessageManager.getString("label.save_pdb_file"));
import jalview.datamodel.AlignmentI;
import jalview.datamodel.PDBEntry;
import jalview.datamodel.SequenceI;
+import jalview.io.AlignFile;
import jalview.io.FileParse;
+import jalview.schemes.ColourSchemeI;
import jalview.util.MessageManager;
import java.awt.Color;
import java.util.List;
import java.util.Vector;
-public class PDBfile extends jalview.io.AlignFile
+public class PDBfile extends AlignFile
{
private static String CALC_ID_PREFIX = "JalviewPDB";
}
}
- public void setColours(jalview.schemes.ColourSchemeI cs)
+ public void setColours(ColourSchemeI cs)
{
for (int i = 0; i < chains.size(); i++)
{