com.partnersoft.maps.app
Class MapPrintLogic

java.lang.Object
  extended by com.partnersoft.maps.app.MapPrintLogic

public class MapPrintLogic
extends java.lang.Object

Controls the behavior of printing in a map app.

Author:
Paul Reavis Copyright 2005 Partner Software, Inc.

Constructor Summary
MapPrintLogic(MapApp app)
           
 
Method Summary
protected  void initialize()
           
 void print()
           
 void printWithData()
           
 void screenshot(java.io.File file)
           
 void screenshot(java.io.File file, double centerX, double centerY, double scale, int pixelWidth, int pixelHeight)
           
 void screenshot(java.io.File file, int pixelWidth, int pixelHeight)
           
 void screenshot(java.awt.Graphics2D g2d)
           
 void screenshot(java.awt.Graphics2D g2d, double centerX, double centerY, double scale, int pixelWidth, int pixelHeight)
           
 void screenshot(java.awt.Graphics2D g2d, int pixelWidth, int pixelHeight)
           
 void screenshot(java.io.OutputStream output, java.lang.String fileType, double centerX, double centerY, double scale, int pixelWidth, int pixelHeight)
           
 void screenshot(java.io.OutputStream output, java.lang.String fileType, double centerX, double centerY, double scale, int pixelWidth, int pixelHeight, boolean drawScaleAndNorthArrow)
           
 com.lowagie.text.pdf.PdfTemplate screenshotAsTemplate(com.lowagie.text.pdf.PdfWriter writer)
          Same as the full screenShotAsTemplate(), centered on the current map view and with the same width and height as the map view.
 com.lowagie.text.pdf.PdfTemplate screenshotAsTemplate(com.lowagie.text.pdf.PdfWriter writer, double centerX, double centerY, double scale, int pixelWidth, int pixelHeight)
          Returns an iText PDFTemplate you can use to insert a map image into a PDF document.
 com.lowagie.text.pdf.PdfTemplate screenshotAsTemplate(com.lowagie.text.pdf.PdfWriter writer, int pixelWidth, int pixelHeight)
          Same as the full screenShotAsTemplate(), centered on the current map view, but with the given width and height.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapPrintLogic

public MapPrintLogic(MapApp app)
Method Detail

initialize

protected void initialize()

print

public void print()

printWithData

public void printWithData()

screenshot

public void screenshot(java.io.File file)

screenshot

public void screenshot(java.io.File file,
                       int pixelWidth,
                       int pixelHeight)

screenshot

public void screenshot(java.io.File file,
                       double centerX,
                       double centerY,
                       double scale,
                       int pixelWidth,
                       int pixelHeight)

screenshot

public void screenshot(java.io.OutputStream output,
                       java.lang.String fileType,
                       double centerX,
                       double centerY,
                       double scale,
                       int pixelWidth,
                       int pixelHeight)

screenshot

public void screenshot(java.io.OutputStream output,
                       java.lang.String fileType,
                       double centerX,
                       double centerY,
                       double scale,
                       int pixelWidth,
                       int pixelHeight,
                       boolean drawScaleAndNorthArrow)

screenshotAsTemplate

public com.lowagie.text.pdf.PdfTemplate screenshotAsTemplate(com.lowagie.text.pdf.PdfWriter writer)
Same as the full screenShotAsTemplate(), centered on the current map view and with the same width and height as the map view.


screenshotAsTemplate

public com.lowagie.text.pdf.PdfTemplate screenshotAsTemplate(com.lowagie.text.pdf.PdfWriter writer,
                                                             int pixelWidth,
                                                             int pixelHeight)
Same as the full screenShotAsTemplate(), centered on the current map view, but with the given width and height.


screenshotAsTemplate

public com.lowagie.text.pdf.PdfTemplate screenshotAsTemplate(com.lowagie.text.pdf.PdfWriter writer,
                                                             double centerX,
                                                             double centerY,
                                                             double scale,
                                                             int pixelWidth,
                                                             int pixelHeight)
Returns an iText PDFTemplate you can use to insert a map image into a PDF document. Specifies a centerpoint, scale, and size in pixels. The PDF version will have the rendered map at 144 pixels per inch, so if you want e.g. a 4" wide image use 144 * 4 as your pixelWidth.


screenshot

public void screenshot(java.awt.Graphics2D g2d)

screenshot

public void screenshot(java.awt.Graphics2D g2d,
                       int pixelWidth,
                       int pixelHeight)

screenshot

public void screenshot(java.awt.Graphics2D g2d,
                       double centerX,
                       double centerY,
                       double scale,
                       int pixelWidth,
                       int pixelHeight)