ElegantJ Data Tables Java API Specification v1.1

com.elegantj.data.dataviewer
Interface PrintView


public interface PrintView

The PrintView interface for objects which is to be printed.


Method Summary
 int getNoOfPages()
          Returns the total number of pages
 void print(java.awt.Graphics g, int pageIndex)
          Prints the page specified by page number
 void reset(int width, int height)
          Reset the print view with specied page size
 

Method Detail

reset

public void reset(int width,
                  int height)
Reset the print view with specied page size

Parameters:
width - the paper width
height - the paper height

getNoOfPages

public int getNoOfPages()
Returns the total number of pages

Returns:
the total number of pages

print

public void print(java.awt.Graphics g,
                  int pageIndex)
Prints the page specified by page number

Parameters:
g - the graphics used to print
pageIndex - the index of the page to be printed

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.