Java Doc for PageFormatFactory.java in  » Report » pentaho-report » org » jfree » report » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Report » pentaho report » org.jfree.report.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.report.util.PageFormatFactory

PageFormatFactory
final public class PageFormatFactory (Code)
The PageFormatFactory is used to create PageFormats on a higher level. The Factory contains templates for all PageSizes defined by Adobe:

Postscript Specifications

Usage for creating an printjob on A4 paper with 2.5 cm border:

 Paper paper = PageFormatFactory.createPaper (PageSize.A4);
 PageFormatFactory.setBordersMm (paper, 25, 25, 25, 25);
 PageFormat format = PageFormatFactory.createPageFormat (paper, PageFormat.PORTRAIT);
 
 

Defining a pageformat can be an ugly task and full of dependencies. The call to PageFormatFactory.setBorders(...) will setup the paper's border and always assumes that the paper is laid out in Portrait.

Changing the PageFormat's orientation does not change the PageFormat's paper object, but it changes the way, how the paper object is interpreted.
author:
   Thomas Morgner



Field Summary
final public static  int[]A0
     A standard paper size.
final public static  int[]A1
     A standard paper size.
final public static  int[]A10
     A standard paper size.
final public static  int[]A2
     A standard paper size.
final public static  int[]A3
     A standard paper size.
final public static  int[]A3_EXTRA
     A standard paper size.
final public static  int[]A3_EXTRATRANSVERSE
     A standard paper size.
final public static  int[]A3_ROTATED
     A standard paper size.
final public static  int[]A3_TRANSVERSE
     A standard paper size.
final public static  int[]A4
     A standard paper size.
final public static  int[]A4_EXTRA
     A standard paper size.
final public static  int[]A4_PLUS
     A standard paper size.
final public static  int[]A4_ROTATED
     A standard paper size.
final public static  int[]A4_SMALL
     A standard paper size.
final public static  int[]A4_TRANSVERSE
     A standard paper size.
final public static  int[]A5
     A standard paper size.
final public static  int[]A5_EXTRA
     A standard paper size.
final public static  int[]A5_ROTATED
     A standard paper size.
final public static  int[]A5_TRANSVERSE
     A standard paper size.
final public static  int[]A6
     A standard paper size.
final public static  int[]A6_ROTATED
     A standard paper size.
final public static  int[]A7
     A standard paper size.
final public static  int[]A8
     A standard paper size.
final public static  int[]A9
     A standard paper size.
final public static  int[]ANSIC
     A standard paper size.
final public static  int[]ANSID
     A standard paper size.
final public static  int[]ANSIE
     A standard paper size.
final public static  int[]ARCHA
     A standard paper size.
final public static  int[]ARCHB
     A standard paper size.
final public static  int[]ARCHC
     A standard paper size.
final public static  int[]ARCHD
     A standard paper size.
final public static  int[]ARCHE
     A standard paper size.
final public static  int[]B0
     A standard paper size.
final public static  int[]B1
     A standard paper size.
final public static  int[]B10
     A standard paper size.
final public static  int[]B2
     A standard paper size.
final public static  int[]B3
     A standard paper size.
final public static  int[]B4
     A standard paper size.
final public static  int[]B4_ROTATED
     A standard paper size.
final public static  int[]B5
     A standard paper size.
final public static  int[]B5_ROTATED
     A standard paper size.
final public static  int[]B5_TRANSVERSE
     A standard paper size.
final public static  int[]B6
     A standard paper size.
final public static  int[]B6_ROTATED
     A standard paper size.
final public static  int[]B7
     A standard paper size.
final public static  int[]B8
     A standard paper size.
final public static  int[]B9
     A standard paper size.
final public static  int[]C4
     A standard paper size.
final public static  int[]C5
     A standard paper size.
final public static  int[]C6
     A standard paper size.
final public static  int[]COMM10
     A standard paper size.
final public static  int[]DL
     A standard paper size.
final public static  intDOTS_PER_INCH
     Constant for dots per inch.
final public static  int[]DOUBLEPOSTCARD
     A standard paper size.
final public static  int[]DOUBLEPOSTCARD_ROTATED
     A standard paper size.
final public static  int[]ENV10
     A standard paper size.
final public static  int[]ENV11
     A standard paper size.
final public static  int[]ENV12
     A standard paper size.
final public static  int[]ENV14
     A standard paper size.
final public static  int[]ENV9
     A standard paper size.
final public static  int[]ENVC0
     A standard paper size.
final public static  int[]ENVC1
     A standard paper size.
final public static  int[]ENVC2
     A standard paper size.
final public static  int[]ENVC3
     A standard paper size.
final public static  int[]ENVC4
     A standard paper size.
final public static  int[]ENVC5
     A standard paper size.
final public static  int[]ENVC6
     A standard paper size.
final public static  int[]ENVC65
     A standard paper size.
final public static  int[]ENVC7
     A standard paper size.
final public static  int[]ENVCHOU3
     A standard paper size.
final public static  int[]ENVCHOU3_ROTATED
     A standard paper size.
final public static  int[]ENVCHOU4
     A standard paper size.
final public static  int[]ENVCHOU4_ROTATED
     A standard paper size.
final public static  int[]ENVDL
     A standard paper size.
final public static  int[]ENVELOPE
     A standard paper size.
final public static  int[]ENVINVITE
     A standard paper size.
final public static  int[]ENVISOB4
     A standard paper size.
final public static  int[]ENVISOB5
     A standard paper size.
final public static  int[]ENVISOB6
     A standard paper size.
final public static  int[]ENVITALIAN
     A standard paper size.
final public static  int[]ENVKAKU2
     A standard paper size.
final public static  int[]ENVKAKU2_ROTATED
     A standard paper size.
final public static  int[]ENVKAKU3
     A standard paper size.
final public static  int[]ENVKAKU3_ROTATED
     A standard paper size.
final public static  int[]ENVMONARCH
     A standard paper size.
final public static  int[]ENVPERSONAL
     A standard paper size.
final public static  int[]ENVPRC1
     A standard paper size.
final public static  int[]ENVPRC10
     A standard paper size.
final public static  int[]ENVPRC10_ROTATED
     A standard paper size.
final public static  int[]ENVPRC1_ROTATED
     A standard paper size.
final public static  int[]ENVPRC2
     A standard paper size.
final public static  int[]ENVPRC2_ROTATED
     A standard paper size.
final public static  int[]ENVPRC3
     A standard paper size.
final public static  int[]ENVPRC3_ROTATED
     A standard paper size.
final public static  int[]ENVPRC4
     A standard paper size.
final public static  int[]ENVPRC4_ROTATED
     A standard paper size.
final public static  int[]ENVPRC5
     A standard paper size.
final public static  int[]ENVPRC5_ROTATED
     A standard paper size.
final public static  int[]ENVPRC6
     A standard paper size.
final public static  int[]ENVPRC6_ROTATED
     A standard paper size.
final public static  int[]ENVPRC7
     A standard paper size.
final public static  int[]ENVPRC7_ROTATED
     A standard paper size.
final public static  int[]ENVPRC8
     A standard paper size.
final public static  int[]ENVPRC8_ROTATED
     A standard paper size.
final public static  int[]ENVPRC9
     A standard paper size.
final public static  int[]ENVPRC9_ROTATED
     A standard paper size.
final public static  int[]ENVYOU4
     A standard paper size.
final public static  int[]ENVYOU4_ROTATED
     A standard paper size.
final public static  int[]EXECUTIVE
     A standard paper size.
final public static  int[]FANFOLDGERMAN
     A standard paper size.
final public static  int[]FANFOLDGERMANLEGAL
     A standard paper size.
final public static  int[]FANFOLDUS
     A standard paper size.
final public static  int[]FOLIO
     A standard paper size.
final public static  int[]ISOB0
     A standard paper size.
final public static  int[]ISOB1
     A standard paper size.
final public static  int[]ISOB10
     A standard paper size.
final public static  int[]ISOB2
     A standard paper size.
final public static  int[]ISOB3
     A standard paper size.
final public static  int[]ISOB4
     A standard paper size.
final public static  int[]ISOB5
     A standard paper size.
final public static  int[]ISOB5_EXTRA
     A standard paper size.
final public static  int[]ISOB6
     A standard paper size.
final public static  int[]ISOB7
     A standard paper size.
final public static  int[]ISOB8
     A standard paper size.
final public static  int[]ISOB9
     A standard paper size.
final public static  int[]LEDGER
     A standard paper size.
final public static  int[]LEGAL
     A standard paper size.
final public static  int[]LEGAL_EXTRA
     A standard paper size.
final public static  int[]LETTER
     A standard paper size.
final public static  int[]LETTER_EXTRA
     A standard paper size.
final public static  int[]LETTER_EXTRATRANSVERSE
     A standard paper size.
final public static  int[]LETTER_PLUS
     A standard paper size.
final public static  int[]LETTER_ROTATED
     A standard paper size.
final public static  int[]LETTER_SMALL
     A standard paper size.
final public static  int[]LETTER_TRANSVERSE
     A standard paper size.
final public static  int[]MONARCH
     A standard paper size.
final public static  int[]NOTE
     A standard paper size.
final public static  int[]PAPER10X11
     A standard paper size.
final public static  int[]PAPER10X13
     A standard paper size.
final public static  int[]PAPER10X14
     A standard paper size.
final public static  int[]PAPER11X17
     A standard paper size.
final public static  int[]PAPER12X11
     A standard paper size.
final public static  int[]PAPER15X11
     A standard paper size.
final public static  int[]PAPER7X9
     A standard paper size.
final public static  int[]PAPER8X10
     A standard paper size.
final public static  int[]PAPER9X11
     A standard paper size.
final public static  int[]PAPER9X12
     A standard paper size.
final public static  int[]POSTCARD
     A standard paper size.
final public static  int[]POSTCARD_ROTATED
     A standard paper size.
final public static  int[]PRC16K
     A standard paper size.
final public static  int[]PRC16K_ROTATED
     A standard paper size.
final public static  int[]PRC32K
     A standard paper size.
final public static  int[]PRC32K_BIG
     A standard paper size.
final public static  int[]PRC32K_BIGROTATED
     A standard paper size.
final public static  int[]PRC32K_ROTATED
     A standard paper size.
final public static  int[]QUARTO
     A standard paper size.
final public static  int[]STATEMENT
     A standard paper size.
final public static  int[]SUPERA
     A standard paper size.
final public static  int[]SUPERB
     A standard paper size.
final public static  int[]TABLOID
     A standard paper size.
final public static  int[]TABLOIDEXTRA
     A standard paper size.


Method Summary
public  doubleconvertInchToPoints(double inches)
     Converts the given inch value to a valid point-value.
public  doubleconvertMmToPoints(double mm)
     Converts the given millimeter value to a valid point-value.
public  PageFormatcreatePageFormat(Paper paper, int orientation)
     Creates a new pageformat using the given paper and the given orientation.
public  PageFormatcreatePageFormat(Object[] data)
     Restores a page format after it has been serialized.
Parameters:
  data - the serialized page format data.
public  PapercreatePaper(int[] papersize)
     Creates a paper by using the paper size in points found in the int-array.
public  PapercreatePaper(PageSize papersize)
     Creates a paper by using the paper size in points found in the int-array.
public  PapercreatePaper(int width, int height)
     Creates a paper by using the paper size in points.
public  PapercreatePaper(double width, double height)
     Creates a paper by using the paper size in points.
public  PapercreatePaper(String name)
     Creates a paper by looking up the given Uppercase name in this classes defined constants.
public  doublegetBottomBorder(Paper p)
     Returns the bottom border of the given paper.
Parameters:
  p - the paper that defines the borders.
public static  PageFormatFactorygetInstance()
     Returns a single instance of the factory.
public  doublegetLeftBorder(Paper p)
     Returns the left border of the given paper.
Parameters:
  p - the paper that defines the borders.
public  InsetsgetPageMargins(PageFormat format)
    
public  doublegetRightBorder(Paper p)
     Returns the right border of the given paper.
Parameters:
  p - the paper that defines the borders.
public  doublegetTopBorder(Paper p)
     Returns the top border of the given paper.
Parameters:
  p - the paper that defines the borders.
public static  booleanisEqual(PageFormat pf1, PageFormat pf2)
     Tests, whether the given two page format objects are equal.
Parameters:
  pf1 - the first page format that should be compared.
Parameters:
  pf2 - the second page format that should be compared.
public static  voidlogPageFormat(PageFormat pf)
     Logs the page format.
public static  voidlogPaper(Paper pf)
     Logs the paper size.
public  Object[]resolvePageFormat(PageFormat format)
     Resolves a page format, so that the result can be serialized.
Parameters:
  format - the page format that should be prepared for serialisation.
public  voidsetBorders(Paper paper, double top, double left, double bottom, double right)
     Defines the imageable area of the given paper by adjusting the border around the imagable area.
public  voidsetBordersInch(Paper paper, double top, double left, double bottom, double right)
     Defines the imageable area of the given paper by adjusting the border around the imagable area.
public  voidsetBordersMm(Paper paper, double top, double left, double bottom, double right)
     Defines the imageable area of the given paper by adjusting the border around the imagable area.

Field Detail
A0
final public static int[] A0(Code)
A standard paper size.



A1
final public static int[] A1(Code)
A standard paper size.



A10
final public static int[] A10(Code)
A standard paper size.



A2
final public static int[] A2(Code)
A standard paper size.



A3
final public static int[] A3(Code)
A standard paper size.



A3_EXTRA
final public static int[] A3_EXTRA(Code)
A standard paper size.



A3_EXTRATRANSVERSE
final public static int[] A3_EXTRATRANSVERSE(Code)
A standard paper size.



A3_ROTATED
final public static int[] A3_ROTATED(Code)
A standard paper size.



A3_TRANSVERSE
final public static int[] A3_TRANSVERSE(Code)
A standard paper size.



A4
final public static int[] A4(Code)
A standard paper size.



A4_EXTRA
final public static int[] A4_EXTRA(Code)
A standard paper size.



A4_PLUS
final public static int[] A4_PLUS(Code)
A standard paper size.



A4_ROTATED
final public static int[] A4_ROTATED(Code)
A standard paper size.



A4_SMALL
final public static int[] A4_SMALL(Code)
A standard paper size.



A4_TRANSVERSE
final public static int[] A4_TRANSVERSE(Code)
A standard paper size.



A5
final public static int[] A5(Code)
A standard paper size.



A5_EXTRA
final public static int[] A5_EXTRA(Code)
A standard paper size.



A5_ROTATED
final public static int[] A5_ROTATED(Code)
A standard paper size.



A5_TRANSVERSE
final public static int[] A5_TRANSVERSE(Code)
A standard paper size.



A6
final public static int[] A6(Code)
A standard paper size.



A6_ROTATED
final public static int[] A6_ROTATED(Code)
A standard paper size.



A7
final public static int[] A7(Code)
A standard paper size.



A8
final public static int[] A8(Code)
A standard paper size.



A9
final public static int[] A9(Code)
A standard paper size.



ANSIC
final public static int[] ANSIC(Code)
A standard paper size.



ANSID
final public static int[] ANSID(Code)
A standard paper size.



ANSIE
final public static int[] ANSIE(Code)
A standard paper size.



ARCHA
final public static int[] ARCHA(Code)
A standard paper size.



ARCHB
final public static int[] ARCHB(Code)
A standard paper size.



ARCHC
final public static int[] ARCHC(Code)
A standard paper size.



ARCHD
final public static int[] ARCHD(Code)
A standard paper size.



ARCHE
final public static int[] ARCHE(Code)
A standard paper size.



B0
final public static int[] B0(Code)
A standard paper size.



B1
final public static int[] B1(Code)
A standard paper size.



B10
final public static int[] B10(Code)
A standard paper size.



B2
final public static int[] B2(Code)
A standard paper size.



B3
final public static int[] B3(Code)
A standard paper size.



B4
final public static int[] B4(Code)
A standard paper size.



B4_ROTATED
final public static int[] B4_ROTATED(Code)
A standard paper size.



B5
final public static int[] B5(Code)
A standard paper size.



B5_ROTATED
final public static int[] B5_ROTATED(Code)
A standard paper size.



B5_TRANSVERSE
final public static int[] B5_TRANSVERSE(Code)
A standard paper size.



B6
final public static int[] B6(Code)
A standard paper size.



B6_ROTATED
final public static int[] B6_ROTATED(Code)
A standard paper size.



B7
final public static int[] B7(Code)
A standard paper size.



B8
final public static int[] B8(Code)
A standard paper size.



B9
final public static int[] B9(Code)
A standard paper size.



C4
final public static int[] C4(Code)
A standard paper size.



C5
final public static int[] C5(Code)
A standard paper size.



C6
final public static int[] C6(Code)
A standard paper size.



COMM10
final public static int[] COMM10(Code)
A standard paper size.



DL
final public static int[] DL(Code)
A standard paper size.



DOTS_PER_INCH
final public static int DOTS_PER_INCH(Code)
Constant for dots per inch.



DOUBLEPOSTCARD
final public static int[] DOUBLEPOSTCARD(Code)
A standard paper size.



DOUBLEPOSTCARD_ROTATED
final public static int[] DOUBLEPOSTCARD_ROTATED(Code)
A standard paper size.



ENV10
final public static int[] ENV10(Code)
A standard paper size.



ENV11
final public static int[] ENV11(Code)
A standard paper size.



ENV12
final public static int[] ENV12(Code)
A standard paper size.



ENV14
final public static int[] ENV14(Code)
A standard paper size.



ENV9
final public static int[] ENV9(Code)
A standard paper size.



ENVC0
final public static int[] ENVC0(Code)
A standard paper size.



ENVC1
final public static int[] ENVC1(Code)
A standard paper size.



ENVC2
final public static int[] ENVC2(Code)
A standard paper size.



ENVC3
final public static int[] ENVC3(Code)
A standard paper size.



ENVC4
final public static int[] ENVC4(Code)
A standard paper size.



ENVC5
final public static int[] ENVC5(Code)
A standard paper size.



ENVC6
final public static int[] ENVC6(Code)
A standard paper size.



ENVC65
final public static int[] ENVC65(Code)
A standard paper size.



ENVC7
final public static int[] ENVC7(Code)
A standard paper size.



ENVCHOU3
final public static int[] ENVCHOU3(Code)
A standard paper size.



ENVCHOU3_ROTATED
final public static int[] ENVCHOU3_ROTATED(Code)
A standard paper size.



ENVCHOU4
final public static int[] ENVCHOU4(Code)
A standard paper size.



ENVCHOU4_ROTATED
final public static int[] ENVCHOU4_ROTATED(Code)
A standard paper size.



ENVDL
final public static int[] ENVDL(Code)
A standard paper size.



ENVELOPE
final public static int[] ENVELOPE(Code)
A standard paper size.



ENVINVITE
final public static int[] ENVINVITE(Code)
A standard paper size.



ENVISOB4
final public static int[] ENVISOB4(Code)
A standard paper size.



ENVISOB5
final public static int[] ENVISOB5(Code)
A standard paper size.



ENVISOB6
final public static int[] ENVISOB6(Code)
A standard paper size.



ENVITALIAN
final public static int[] ENVITALIAN(Code)
A standard paper size.



ENVKAKU2
final public static int[] ENVKAKU2(Code)
A standard paper size.



ENVKAKU2_ROTATED
final public static int[] ENVKAKU2_ROTATED(Code)
A standard paper size.



ENVKAKU3
final public static int[] ENVKAKU3(Code)
A standard paper size.



ENVKAKU3_ROTATED
final public static int[] ENVKAKU3_ROTATED(Code)
A standard paper size.



ENVMONARCH
final public static int[] ENVMONARCH(Code)
A standard paper size.



ENVPERSONAL
final public static int[] ENVPERSONAL(Code)
A standard paper size.



ENVPRC1
final public static int[] ENVPRC1(Code)
A standard paper size.



ENVPRC10
final public static int[] ENVPRC10(Code)
A standard paper size.



ENVPRC10_ROTATED
final public static int[] ENVPRC10_ROTATED(Code)
A standard paper size.



ENVPRC1_ROTATED
final public static int[] ENVPRC1_ROTATED(Code)
A standard paper size.



ENVPRC2
final public static int[] ENVPRC2(Code)
A standard paper size.



ENVPRC2_ROTATED
final public static int[] ENVPRC2_ROTATED(Code)
A standard paper size.



ENVPRC3
final public static int[] ENVPRC3(Code)
A standard paper size.



ENVPRC3_ROTATED
final public static int[] ENVPRC3_ROTATED(Code)
A standard paper size.



ENVPRC4
final public static int[] ENVPRC4(Code)
A standard paper size.



ENVPRC4_ROTATED
final public static int[] ENVPRC4_ROTATED(Code)
A standard paper size.



ENVPRC5
final public static int[] ENVPRC5(Code)
A standard paper size.



ENVPRC5_ROTATED
final public static int[] ENVPRC5_ROTATED(Code)
A standard paper size.



ENVPRC6
final public static int[] ENVPRC6(Code)
A standard paper size.



ENVPRC6_ROTATED
final public static int[] ENVPRC6_ROTATED(Code)
A standard paper size.



ENVPRC7
final public static int[] ENVPRC7(Code)
A standard paper size.



ENVPRC7_ROTATED
final public static int[] ENVPRC7_ROTATED(Code)
A standard paper size.



ENVPRC8
final public static int[] ENVPRC8(Code)
A standard paper size.



ENVPRC8_ROTATED
final public static int[] ENVPRC8_ROTATED(Code)
A standard paper size.



ENVPRC9
final public static int[] ENVPRC9(Code)
A standard paper size.



ENVPRC9_ROTATED
final public static int[] ENVPRC9_ROTATED(Code)
A standard paper size.



ENVYOU4
final public static int[] ENVYOU4(Code)
A standard paper size.



ENVYOU4_ROTATED
final public static int[] ENVYOU4_ROTATED(Code)
A standard paper size.



EXECUTIVE
final public static int[] EXECUTIVE(Code)
A standard paper size.



FANFOLDGERMAN
final public static int[] FANFOLDGERMAN(Code)
A standard paper size.



FANFOLDGERMANLEGAL
final public static int[] FANFOLDGERMANLEGAL(Code)
A standard paper size.



FANFOLDUS
final public static int[] FANFOLDUS(Code)
A standard paper size.



FOLIO
final public static int[] FOLIO(Code)
A standard paper size.



ISOB0
final public static int[] ISOB0(Code)
A standard paper size.



ISOB1
final public static int[] ISOB1(Code)
A standard paper size.



ISOB10
final public static int[] ISOB10(Code)
A standard paper size.



ISOB2
final public static int[] ISOB2(Code)
A standard paper size.



ISOB3
final public static int[] ISOB3(Code)
A standard paper size.



ISOB4
final public static int[] ISOB4(Code)
A standard paper size.



ISOB5
final public static int[] ISOB5(Code)
A standard paper size.



ISOB5_EXTRA
final public static int[] ISOB5_EXTRA(Code)
A standard paper size.



ISOB6
final public static int[] ISOB6(Code)
A standard paper size.



ISOB7
final public static int[] ISOB7(Code)
A standard paper size.



ISOB8
final public static int[] ISOB8(Code)
A standard paper size.



ISOB9
final public static int[] ISOB9(Code)
A standard paper size.



LEDGER
final public static int[] LEDGER(Code)
A standard paper size.



LEGAL
final public static int[] LEGAL(Code)
A standard paper size.



LEGAL_EXTRA
final public static int[] LEGAL_EXTRA(Code)
A standard paper size.



LETTER
final public static int[] LETTER(Code)
A standard paper size.



LETTER_EXTRA
final public static int[] LETTER_EXTRA(Code)
A standard paper size.



LETTER_EXTRATRANSVERSE
final public static int[] LETTER_EXTRATRANSVERSE(Code)
A standard paper size.



LETTER_PLUS
final public static int[] LETTER_PLUS(Code)
A standard paper size.



LETTER_ROTATED
final public static int[] LETTER_ROTATED(Code)
A standard paper size.



LETTER_SMALL
final public static int[] LETTER_SMALL(Code)
A standard paper size.



LETTER_TRANSVERSE
final public static int[] LETTER_TRANSVERSE(Code)
A standard paper size.



MONARCH
final public static int[] MONARCH(Code)
A standard paper size.



NOTE
final public static int[] NOTE(Code)
A standard paper size.



PAPER10X11
final public static int[] PAPER10X11(Code)
A standard paper size.



PAPER10X13
final public static int[] PAPER10X13(Code)
A standard paper size.



PAPER10X14
final public static int[] PAPER10X14(Code)
A standard paper size.



PAPER11X17
final public static int[] PAPER11X17(Code)
A standard paper size.



PAPER12X11
final public static int[] PAPER12X11(Code)
A standard paper size.



PAPER15X11
final public static int[] PAPER15X11(Code)
A standard paper size.



PAPER7X9
final public static int[] PAPER7X9(Code)
A standard paper size.



PAPER8X10
final public static int[] PAPER8X10(Code)
A standard paper size.



PAPER9X11
final public static int[] PAPER9X11(Code)
A standard paper size.



PAPER9X12
final public static int[] PAPER9X12(Code)
A standard paper size.



POSTCARD
final public static int[] POSTCARD(Code)
A standard paper size.



POSTCARD_ROTATED
final public static int[] POSTCARD_ROTATED(Code)
A standard paper size.



PRC16K
final public static int[] PRC16K(Code)
A standard paper size.



PRC16K_ROTATED
final public static int[] PRC16K_ROTATED(Code)
A standard paper size.



PRC32K
final public static int[] PRC32K(Code)
A standard paper size.



PRC32K_BIG
final public static int[] PRC32K_BIG(Code)
A standard paper size.



PRC32K_BIGROTATED
final public static int[] PRC32K_BIGROTATED(Code)
A standard paper size.



PRC32K_ROTATED
final public static int[] PRC32K_ROTATED(Code)
A standard paper size.



QUARTO
final public static int[] QUARTO(Code)
A standard paper size.



STATEMENT
final public static int[] STATEMENT(Code)
A standard paper size.



SUPERA
final public static int[] SUPERA(Code)
A standard paper size.



SUPERB
final public static int[] SUPERB(Code)
A standard paper size.



TABLOID
final public static int[] TABLOID(Code)
A standard paper size.



TABLOIDEXTRA
final public static int[] TABLOIDEXTRA(Code)
A standard paper size.





Method Detail
convertInchToPoints
public double convertInchToPoints(double inches)(Code)
Converts the given inch value to a valid point-value.
Parameters:
  inches - the size in inch the size in points



convertMmToPoints
public double convertMmToPoints(double mm)(Code)
Converts the given millimeter value to a valid point-value.
Parameters:
  mm - the size in inch the size in points



createPageFormat
public PageFormat createPageFormat(Paper paper, int orientation)(Code)
Creates a new pageformat using the given paper and the given orientation.
Parameters:
  paper - the paper to use in the new pageformat
Parameters:
  orientation - one of PageFormat.PORTRAIT, PageFormat.LANDSCAPE or PageFormat.REVERSE_LANDSCAPE the created Pageformat
throws:
  NullPointerException - if the paper given was null



createPageFormat
public PageFormat createPageFormat(Object[] data)(Code)
Restores a page format after it has been serialized.
Parameters:
  data - the serialized page format data. the restored page format.



createPaper
public Paper createPaper(int[] papersize)(Code)
Creates a paper by using the paper size in points found in the int-array. The array must have a length of 2 and the first value of this array has to contain the width and the second the height parameter. The created Paper has no ImagableArea defined.
Parameters:
  papersize - the definition of the papersize in a 2-element int-array the created paper



createPaper
public Paper createPaper(PageSize papersize)(Code)
Creates a paper by using the paper size in points found in the int-array. The array must have a length of 2 and the first value of this array has to contain the width and the second the height parameter. The created Paper has no ImagableArea defined.
Parameters:
  papersize - the definition of the papersize in a 2-element int-array the created paper



createPaper
public Paper createPaper(int width, int height)(Code)
Creates a paper by using the paper size in points. The created Paper has no ImagableArea defined.
Parameters:
  width - the width of the paper in points
Parameters:
  height - the height of the paper in points the created paper



createPaper
public Paper createPaper(double width, double height)(Code)
Creates a paper by using the paper size in points. The created Paper has no ImagableArea defined.
Parameters:
  width - the width of the paper in points
Parameters:
  height - the height of the paper in points the created paper



createPaper
public Paper createPaper(String name)(Code)
Creates a paper by looking up the given Uppercase name in this classes defined constants. The value if looked up by introspection, if the value is not defined in this class, null is returned.
Parameters:
  name - the name of the constant defining the papersize the defined paper or null, if the name was invalid.



getBottomBorder
public double getBottomBorder(Paper p)(Code)
Returns the bottom border of the given paper.
Parameters:
  p - the paper that defines the borders. the bottom border.



getInstance
public static PageFormatFactory getInstance()(Code)
Returns a single instance of the factory. an instance of a PageFormatFactory.



getLeftBorder
public double getLeftBorder(Paper p)(Code)
Returns the left border of the given paper.
Parameters:
  p - the paper that defines the borders. the left border.



getPageMargins
public Insets getPageMargins(PageFormat format)(Code)



getRightBorder
public double getRightBorder(Paper p)(Code)
Returns the right border of the given paper.
Parameters:
  p - the paper that defines the borders. the right border.



getTopBorder
public double getTopBorder(Paper p)(Code)
Returns the top border of the given paper.
Parameters:
  p - the paper that defines the borders. the top border.



isEqual
public static boolean isEqual(PageFormat pf1, PageFormat pf2)(Code)
Tests, whether the given two page format objects are equal.
Parameters:
  pf1 - the first page format that should be compared.
Parameters:
  pf2 - the second page format that should be compared. true, if both page formats are equal, false otherwise.



logPageFormat
public static void logPageFormat(PageFormat pf)(Code)
Logs the page format.
Parameters:
  pf - the page format.



logPaper
public static void logPaper(Paper pf)(Code)
Logs the paper size.
Parameters:
  pf - the paper size.



resolvePageFormat
public Object[] resolvePageFormat(PageFormat format)(Code)
Resolves a page format, so that the result can be serialized.
Parameters:
  format - the page format that should be prepared for serialisation. the prepared page format data.



setBorders
public void setBorders(Paper paper, double top, double left, double bottom, double right)(Code)
Defines the imageable area of the given paper by adjusting the border around the imagable area. The bordersizes are given in points.
Parameters:
  paper - the paper that should be modified
Parameters:
  top - the bordersize of the top-border
Parameters:
  left - the border in points in the left
Parameters:
  bottom - the border in points in the bottom
Parameters:
  right - the border in points in the right



setBordersInch
public void setBordersInch(Paper paper, double top, double left, double bottom, double right)(Code)
Defines the imageable area of the given paper by adjusting the border around the imagable area. The bordersizes are given in inches.
Parameters:
  paper - the paper that should be modified
Parameters:
  top - the bordersize of the top-border
Parameters:
  left - the border in points in the left
Parameters:
  bottom - the border in points in the bottom
Parameters:
  right - the border in points in the right



setBordersMm
public void setBordersMm(Paper paper, double top, double left, double bottom, double right)(Code)
Defines the imageable area of the given paper by adjusting the border around the imagable area. The bordersizes are given in millimeters.
Parameters:
  paper - the paper that should be modified
Parameters:
  top - the bordersize of the top-border
Parameters:
  left - the border in points in the left
Parameters:
  bottom - the border in points in the bottom
Parameters:
  right - the border in points in the right



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.