public class MapPrintLogic
extends java.lang.Object
Copyright 2005-2010 Partner Software, Inc.
| Constructor and Description |
|---|
MapPrintLogic(MapApp app) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initialize() |
void |
plot(MapViewFrame frame,
java.awt.Graphics2D g2d)
Plots the given framed map area to the given graphics context.
|
void |
plot(MapViewFrame frame,
java.awt.Graphics2D g2d,
boolean isMonochrome)
Plots the given framed map area to the given graphics context.
|
void |
plotToPdf(MapViewFrame frame,
java.io.File pdfFile)
Plots the given frame to a PDF file at a resolution of 144 dpi.
|
void |
plotToPdf(MapViewFrame frame,
java.io.OutputStream outputStream)
Plots the given frame to a PDF file at a resolution of 144 dpi.
|
void |
plotToPdf(MapViewFrame frame,
java.io.OutputStream outputStream,
boolean isMonochrome)
Plots the given frame to a PDF file at a resolution of 144 dpi.
|
void |
plotToPdf(MapViewFrame frame,
VfsFile pdfFile)
Plots the given frame to a PDF file at a resolution of 144 dpi.
|
void |
plotToPdf(MapViewFrame frame,
VfsFile pdfFile,
boolean isMonochrome)
Plots the given frame to a PDF file at a resolution of 144 dpi.
|
void |
print()
Deprecated.
use quickPrint() instead
|
void |
printWithData()
Deprecated.
use quickPrintWithData() instead
|
void |
quickPdf() |
void |
quickPdfWithData() |
void |
quickPrint() |
void |
quickPrintWithData() |
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 rotation,
double scale,
int pixelWidth,
int pixelHeight)
Generates a screen shot in the passed graphics as described by
the passed parameters.
|
void |
screenshot(java.awt.Graphics2D g2d,
double centerX,
double centerY,
double rotation,
double scale,
int pixelWidth,
int pixelHeight,
boolean isMonochrome)
Generates a screen shot in the passed graphics as described by
the passed parameters.
|
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 rotation,
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,
double centerX,
double centerY,
double rotation,
double scale,
int pixelWidth,
int pixelHeight,
boolean isMonochrome)
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,
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.
|
com.lowagie.text.pdf.PdfTemplate |
screenshotAsTemplate(com.lowagie.text.pdf.PdfWriter writer,
MapViewFrame frame)
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,
MapViewFrame frame,
boolean isMonochrome)
Returns an iText PDFTemplate you can use to insert a map image into a PDF
document.
|
public MapPrintLogic(MapApp app)
protected void initialize()
public void print()
public void printWithData()
public void quickPrint()
public void quickPrintWithData()
public void quickPdf()
public void quickPdfWithData()
public void screenshot(java.io.File file)
public void screenshot(java.io.File file,
int pixelWidth,
int pixelHeight)
public void screenshot(java.io.File file,
double centerX,
double centerY,
double scale,
int pixelWidth,
int pixelHeight)
public void screenshot(java.io.OutputStream output,
java.lang.String fileType,
double centerX,
double centerY,
double scale,
int pixelWidth,
int pixelHeight)
public void screenshot(java.io.OutputStream output,
java.lang.String fileType,
double centerX,
double centerY,
double scale,
int pixelWidth,
int pixelHeight,
boolean drawScaleAndNorthArrow)
public com.lowagie.text.pdf.PdfTemplate screenshotAsTemplate(com.lowagie.text.pdf.PdfWriter writer)
public com.lowagie.text.pdf.PdfTemplate screenshotAsTemplate(com.lowagie.text.pdf.PdfWriter writer,
int pixelWidth,
int pixelHeight)
public com.lowagie.text.pdf.PdfTemplate screenshotAsTemplate(com.lowagie.text.pdf.PdfWriter writer,
double centerX,
double centerY,
double scale,
int pixelWidth,
int pixelHeight)
public com.lowagie.text.pdf.PdfTemplate screenshotAsTemplate(com.lowagie.text.pdf.PdfWriter writer,
MapViewFrame frame)
writer - - PdfWriter to generate template withframe - - MapViewFrame describing screenshotpublic com.lowagie.text.pdf.PdfTemplate screenshotAsTemplate(com.lowagie.text.pdf.PdfWriter writer,
MapViewFrame frame,
boolean isMonochrome)
writer - - PdfWriter to generate template withframe - - MapViewFrame describing screenshotisMonochrome - - true if TiledRoverSets should be drawn monochrome, false otherwise.public com.lowagie.text.pdf.PdfTemplate screenshotAsTemplate(com.lowagie.text.pdf.PdfWriter writer,
double centerX,
double centerY,
double rotation,
double scale,
int pixelWidth,
int pixelHeight,
boolean isMonochrome)
writer - - PdfWriter to write screen shot tocenterX - - X coordinate in map units for screen shotcenterY - - Y coordinate in map units for screen shotrotation - - rotation for screen shotscale - - Scale for screen shotpixelWidth - - Width of screen shot in pixelspixelHeight - - Height of screen shot in pixelsisMonochrome - - true if TiledRoverSets should be drawn monochrome, false otherwise.public com.lowagie.text.pdf.PdfTemplate screenshotAsTemplate(com.lowagie.text.pdf.PdfWriter writer,
double centerX,
double centerY,
double rotation,
double scale,
int pixelWidth,
int pixelHeight)
writer - - PdfWriter to write screen shot tocenterX - - X coordinate in map units for screen shotcenterY - - Y coordinate in map units for screen shotrotation - - rotation for screen shotscale - - Scale for screen shotpixelWidth - - Width of screen shot in pixelspixelHeight - - Height of screen shot in pixelspublic void screenshot(java.awt.Graphics2D g2d)
public void screenshot(java.awt.Graphics2D g2d,
int pixelWidth,
int pixelHeight)
public void screenshot(java.awt.Graphics2D g2d,
double centerX,
double centerY,
double scale,
int pixelWidth,
int pixelHeight)
public void screenshot(java.awt.Graphics2D g2d,
double centerX,
double centerY,
double rotation,
double scale,
int pixelWidth,
int pixelHeight)
g2d - - Graphics2D to plot screen shot oncenterX - - Center X coordinate in map unitscenterY - - Center Y coordinate in map unitsrotation - - MapViewFrame rotationscale - - MapViewFrame scalepixelWidth - - Width of screen shot in pixelspixelHeight - - Height of screen shot in pixelspublic void screenshot(java.awt.Graphics2D g2d,
double centerX,
double centerY,
double rotation,
double scale,
int pixelWidth,
int pixelHeight,
boolean isMonochrome)
g2d - - Graphics2D to plot screen shot oncenterX - - Center X coordinate in map unitscenterY - - Center Y coordinate in map unitsrotation - - MapViewFrame rotationscale - - MapViewFrame scalepixelWidth - - Width of screen shot in pixelspixelHeight - - Height of screen shot in pixelsisMonochrome - - true if TiledRoverSets should be drawn monochrome, false otherwise.public void plot(MapViewFrame frame, java.awt.Graphics2D g2d)
frame - - area, rotation, and scale to plotg2d - - context to plot topublic void plot(MapViewFrame frame, java.awt.Graphics2D g2d, boolean isMonochrome)
frame - - area, rotation, and scale to plotg2d - - context to plot toisMonochrome - - true if TiledRoverSets should be drawn monochrome, false otherwise.public void plotToPdf(MapViewFrame frame, VfsFile pdfFile) throws java.lang.Exception
frame - - MapViewFrame describing plotpdfFile - - File to plot pdf intojava.lang.Exception - if a problem occurs generating snapshotpublic void plotToPdf(MapViewFrame frame, VfsFile pdfFile, boolean isMonochrome) throws java.lang.Exception
frame - - MapViewFrame to plotpdfFile - - File to plot pdf intoisMonochrome - - true if TiledRoverSets should be drawn monochrome, false otherwise.java.lang.Exception - if a problem occurs generating snapshotpublic void plotToPdf(MapViewFrame frame, java.io.File pdfFile) throws java.lang.Exception
frame - - MapViewFrame describing plotpdfFile - - File to plot pdf intojava.lang.Exception - if a problem occurs generating snapshotpublic void plotToPdf(MapViewFrame frame, java.io.OutputStream outputStream) throws java.lang.Exception
frame - - MapViewFrame describing plotoutputStream - - stream to write tojava.lang.Exception - if a problem occurs generating snapshotpublic void plotToPdf(MapViewFrame frame, java.io.OutputStream outputStream, boolean isMonochrome) throws java.lang.Exception
frame - - MapViewFrame to plotoutputStream - - stream to write toisMonochrome - - true if TiledRoverSets should be drawn monochrome, false otherwise.java.lang.Exception - if a problem occurs generating snapshot