org.jclarion.clarion.print
Class Page

java.lang.Object
  extended by org.jclarion.clarion.print.Page

public class Page
extends java.lang.Object

Model a clarion report page

Author:
barney

Constructor Summary
Page(OpenReport report)
           
Page(OpenReport report, int orientation)
           
 
Method Summary
 void add(PrintContext report, PrintObject object)
           
 void delete()
           
 int descaleX(int x, boolean up)
           
 int descaleY(int y, boolean up)
           
 PageBook getBook()
           
 int getCount()
           
 java.awt.Dimension getGraphicsSize()
          Return graphics size, in /72ths of an inch
 PrintObject getLastMoveable()
           
 int getMoveableCount()
           
 PrintObject[] getMoveableObjects()
           
 int getOrientation()
           
 java.awt.print.PageFormat getPageFormat()
           
 int getPageNo()
           
 PrintObject getPrintObject(int offset)
           
 java.lang.Iterable<PrintObject> getPrintObjects()
           
 boolean isDeleted()
           
 boolean layout(PrintContext report, PrintObject object)
           
 void print(PrintContext graphics)
           
 void removeLastMoveable()
           
 int scaleX(int x, boolean up)
           
 int scaleY(int y, boolean up)
           
 void setPageNo(int page)
           
 void setScale(float x, float y)
           
 void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Page

public Page(OpenReport report)

Page

public Page(OpenReport report,
            int orientation)
Method Detail

setScale

public void setScale(float x,
                     float y)

getGraphicsSize

public java.awt.Dimension getGraphicsSize()
Return graphics size, in /72ths of an inch

Returns:

scaleX

public int scaleX(int x,
                  boolean up)

scaleY

public int scaleY(int y,
                  boolean up)

descaleX

public int descaleX(int x,
                    boolean up)

descaleY

public int descaleY(int y,
                    boolean up)

getPageFormat

public java.awt.print.PageFormat getPageFormat()

getOrientation

public int getOrientation()

layout

public boolean layout(PrintContext report,
                      PrintObject object)

add

public void add(PrintContext report,
                PrintObject object)

getMoveableCount

public int getMoveableCount()

getCount

public int getCount()

getMoveableObjects

public PrintObject[] getMoveableObjects()

getPrintObjects

public java.lang.Iterable<PrintObject> getPrintObjects()

getPrintObject

public PrintObject getPrintObject(int offset)

removeLastMoveable

public void removeLastMoveable()

getLastMoveable

public PrintObject getLastMoveable()

print

public void print(PrintContext graphics)

setPageNo

public void setPageNo(int page)

getPageNo

public int getPageNo()

update

public void update()

isDeleted

public boolean isDeleted()

delete

public void delete()

getBook

public PageBook getBook()


Copyright © 2010. All Rights Reserved.