}
else
{
- return printUnwrapped(pwidth, pheight, pi, pg, pg);
+ return printUnwrapped(false, pwidth, pheight, pi, pg, pg);
}
}
* @return
* @throws PrinterException
*/
- public int printUnwrapped(int pageWidth, int pageHeight, int pageIndex,
+ public int printUnwrapped(boolean exportSeqPanel, int pageWidth,
+ int pageHeight, int pageIndex,
Graphics idGraphics, Graphics alignmentGraphics)
throws PrinterException
{
idGraphics.setFont(av.getFont());
idGraphics.translate(0, -scaleHeight);
- /*
- * draw the sequences, offset for scale height, and id width (if using a
- * single graphics context), then reset to (0, scale height)
- */
- alignmentGraphics.translate(alignmentGraphicsOffset, scaleHeight);
- getSeqPanel().seqCanvas.drawPanelForPrinting(alignmentGraphics, startRes,
- endRes, startSeq, endSeq - 1);
- alignmentGraphics.translate(-alignmentGraphicsOffset, 0);
+ if (!exportSeqPanel)
+ {
+ /*
+ * draw the sequences, offset for scale height, and id width (if using a
+ * single graphics context), then reset to (0, scale height)
+ */
+ alignmentGraphics.translate(alignmentGraphicsOffset, scaleHeight);
+ getSeqPanel().seqCanvas.drawPanelForPrinting(alignmentGraphics,
+ startRes, endRes, startSeq, endSeq - 1);
+ alignmentGraphics.translate(-alignmentGraphicsOffset, 0);
+ }
if (av.isShowAnnotation() && (endSeq == alignmentHeight))
{
*
* @throws PrinterException
*/
- public int printWrappedAlignment(int pageWidth, int pageHeight, int pageNumber,
+ public int printWrappedAlignment(int pageWidth,
+ int pageHeight, int pageNumber,
Graphics g) throws PrinterException
{
getSeqPanel().seqCanvas.calculateWrappedGeometry(getWidth(),
g.translate(idWidth, 0);
- getSeqPanel().seqCanvas.drawWrappedPanelForPrinting(g, pageWidth - idWidth,
+ getSeqPanel().seqCanvas.drawWrappedPanelForPrinting(g,
+ pageWidth - idWidth,
totalHeight, 0);
if ((pageNumber * pageHeight) < totalHeight)
void makeAlignmentImage(jalview.util.ImageMaker.TYPE type, File file)
{
+ makeAlignmentImage(type, file, jalview.bin.Cache
+ .getDefault("IMAGE_EXPORT_NOSEQUENCES", false));
+ }
+
+ public void makeAlignmentImage(jalview.util.ImageMaker.TYPE type,
+ File file, boolean exportSeqPanel)
+ {
int boarderBottomOffset = 5;
long pSessionId = System.currentTimeMillis();
headless = (System.getProperty("java.awt.headless") != null
{
if (graphics != null)
{
- printUnwrapped(aDimension.getWidth(), aDimension.getHeight(), 0,
+ printUnwrapped(exportSeqPanel, aDimension.getWidth(),
+ aDimension.getHeight(), 0,
graphics, graphics);
im.writeImage();
}