ElegantJ Data Tables Java API Specification v1.1

com.elegantj.data.dataviewer
Class PDFWriter

java.lang.Object
  extended bycom.elegantj.data.dataviewer.PDFWriter

public class PDFWriter
extends java.lang.Object


Constructor Summary
PDFWriter(PDFView pdfView)
           
 
Method Summary
 int getBottomMargin()
          Returns the bottom margin of the PDF page(s), in pixels
 int getLeftMargin()
          Returns the left margin of the PDF page(s), in pixels
 int getMinPageHeight()
          Returns the minimum PDF page(s) height
 int getMinPageWidth()
          Returns the minimum PDF page(s) width
 int getPageHeight()
          Returns the PDF page(s) height
 int getPageWidth()
          Returns the PDF page(s) width
 int getRightMargin()
          Returns the right margin of the PDF page(s), in pixels
 int getTopMargin()
          Returns the top margin of the PDF page(s), in pixels
 void pageSetup()
          Displays the PDF page setup dialog
 void pageSetup(java.awt.Frame frame)
          Displays the PDF page setup dialog
 void setBottomMargin(int bottomMargin)
          Sets the bottom margin of the PDF page(s), in pixels
 void setLeftMargin(int leftMargin)
          Sets the left margin of the PDF page(s), in pixels
 void setPageSize(int width, int height)
          Sets the PDF page(s) size
 void setRightMargin(int rightMargin)
          Sets the right margin of the PDF page(s), in pixels
 void setTopMargin(int topMargin)
          Sets the top margin of the PDF page(s), in pixels
protected  void validatePageSize(int width, int height)
          Validates the specified page size
 void writePDF(java.io.OutputStream out)
          Writes the PDF to the specified OutputStream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFWriter

public PDFWriter(PDFView pdfView)
Method Detail

pageSetup

public void pageSetup()
Displays the PDF page setup dialog


pageSetup

public void pageSetup(java.awt.Frame frame)
Displays the PDF page setup dialog

Parameters:
frame - The frame on to which this PDF page setup dialog is added if frame is null then new Frame created internally

setLeftMargin

public void setLeftMargin(int leftMargin)
Sets the left margin of the PDF page(s), in pixels

Parameters:
leftMargin - the left margin of the PDF page(s), in pixels

getLeftMargin

public int getLeftMargin()
Returns the left margin of the PDF page(s), in pixels

Returns:
The left margin of the PDF page(s), in pixels

setRightMargin

public void setRightMargin(int rightMargin)
Sets the right margin of the PDF page(s), in pixels

Parameters:
rightMargin - the right margin of the PDF page(s), in pixels

getRightMargin

public int getRightMargin()
Returns the right margin of the PDF page(s), in pixels

Returns:
The right margin of the PDF page(s), in pixels

setTopMargin

public void setTopMargin(int topMargin)
Sets the top margin of the PDF page(s), in pixels

Parameters:
topMargin - the top margin of the PDF page(s), in pixels

getTopMargin

public int getTopMargin()
Returns the top margin of the PDF page(s), in pixels

Returns:
The top margin of the PDF page(s), in pixels

setBottomMargin

public void setBottomMargin(int bottomMargin)
Sets the bottom margin of the PDF page(s), in pixels

Parameters:
bottomMargin - the bottom margin of the PDF page(s), in pixels

getBottomMargin

public int getBottomMargin()
Returns the bottom margin of the PDF page(s), in pixels

Returns:
The bottom margin of the PDF page(s), in pixels

setPageSize

public void setPageSize(int width,
                        int height)
Sets the PDF page(s) size

Parameters:
width - The width of the PDF page(s)
height - The height of the PDF page(s)

getPageWidth

public int getPageWidth()
Returns the PDF page(s) width

Returns:
the width of the PDF page(s)

getPageHeight

public int getPageHeight()
Returns the PDF page(s) height

Returns:
the height of the PDF page(s)

getMinPageWidth

public int getMinPageWidth()
Returns the minimum PDF page(s) width

Returns:
the minimum width of the PDF page(s)

getMinPageHeight

public int getMinPageHeight()
Returns the minimum PDF page(s) height

Returns:
the minimum height of the PDF page(s)

validatePageSize

protected void validatePageSize(int width,
                                int height)
                         throws java.lang.IllegalArgumentException
Validates the specified page size

Throws:
java.lang.IllegalArgumentException

writePDF

public void writePDF(java.io.OutputStream out)
              throws java.lang.IllegalArgumentException,
                     java.io.IOException
Writes the PDF to the specified OutputStream

Parameters:
out - the OutputStream object
Throws:
java.lang.IllegalArgumentException
java.io.IOException

ElegantJ Data Tables Java API Specification v1.1

Submit a bug or feature

Copyright(c)
Elegant Microweb Technologies Pvt. Ltd.
www.elegantmicroweb.com
www.elegantjbeans.com
All Rights Reserved.