Skip to content
Snippets Groups Projects
Commit 459dd2ed authored by tjc's avatar tjc
Browse files

changes so that the read alignments can be printed from Artemis

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@11922 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 0d3e84a5
No related branches found
No related tags found
No related merge requests found
......@@ -529,6 +529,16 @@ public class EntryEdit extends JFrame
return base_plot_group;
}
protected JPanel getJamPanel()
{
return jamPanel;
}
protected JPanel getJamView()
{
return jamView;
}
/**
*
......
......@@ -50,6 +50,7 @@ public class PrintArtemis extends ScrollPanel implements Printable
private JCheckBox featDisplay = new JCheckBox("Show Feature Display",true);
private JCheckBox groupsDisplay = new JCheckBox("Show Entries Loaded",true);
private JCheckBox plotsDisplay = new JCheckBox("Show Graphs",true);
private JCheckBox jamDisplay = new JCheckBox("Show Read Alignment",true);
private JCheckBox onelineDisplay = new JCheckBox("Show One Line Display",true);
private JCheckBox baseDisplay = new JCheckBox("Show Bases Display",true);
private JCheckBox featListDisplay = new JCheckBox("Show Feature List",true);
......@@ -93,6 +94,12 @@ public class PrintArtemis extends ScrollPanel implements Printable
entry.getBasePlotGroup().printComponent(g2d);
// g2d.translate(0,entry.getBasePlotGroup().getHeight());
if(jamDisplay.isSelected() && entry.getJamView() != null && entry.getJamView().isVisible())
{
entry.getJamPanel().paintComponents(g2d);
g2d.translate(0,entry.getJamPanel().getHeight());
}
// one line per entry
if(onelineDisplay.isSelected())
{
......@@ -143,6 +150,10 @@ public class PrintArtemis extends ScrollPanel implements Printable
if(groupsDisplay.isSelected())
height += entry.getEntryGroupDisplay().getHeight();
if(jamDisplay.isSelected() &&
entry.getJamView() != null && entry.getJamView().isVisible())
height += entry.getJamPanel().getHeight();
if(plotsDisplay.isSelected())
height += entry.getBasePlotGroup().getHeight();
......@@ -269,6 +280,24 @@ public class PrintArtemis extends ScrollPanel implements Printable
});
optionsmenu.add(showPlots);
// draw read alignment viewer
JCheckBoxMenuItem showJam = new JCheckBoxMenuItem("Show Read Alignment View",
jamDisplay.isSelected());
if(entry.getJamView() == null || !entry.getJamView().isVisible())
showJam.setEnabled(false);
showJam.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
jamDisplay.setSelected(!jamDisplay.isSelected());
repaint();
}
});
optionsmenu.add(showJam);
// draw one line
JCheckBoxMenuItem showOneLine = new JCheckBoxMenuItem("Show One Line Display",
onelineDisplay.isSelected());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment