Java Doc for HSSFPrintSetup.java in  » Collaboration » poi-3.0.2-beta2 » org » apache » poi » hssf » usermodel » 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 » Collaboration » poi 3.0.2 beta2 » org.apache.poi.hssf.usermodel 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.poi.hssf.usermodel.HSSFPrintSetup

HSSFPrintSetup
public class HSSFPrintSetup extends Object (Code)
Used to modify the print setup.

Paper size constants have been added for the ones I have access to. They follow as:
public static final short LETTER_PAPERSIZE = 1;
public static final short LEGAL_PAPERSIZE = 5;
public static final short EXECUTIVE_PAPERSIZE = 7;
public static final short A4_PAPERSIZE = 9;
public static final short A5_PAPERSIZE = 11;
public static final short ENVELOPE_10_PAPERSIZE = 20;
public static final short ENVELOPE_DL_PAPERSIZE = 27;
public static final short ENVELOPE_CS_PAPERSIZE = 28;
public static final short ENVELOPE_MONARCH_PAPERSIZE = 37;


author:
   Shawn Laubach (slaubach at apache dot org)



Field Summary
final public static  shortA4_PAPERSIZE
    
final public static  shortA5_PAPERSIZE
    
final public static  shortENVELOPE_10_PAPERSIZE
    
final public static  shortENVELOPE_CS_PAPERSIZE
    
final public static  shortENVELOPE_DL_PAPERSIZE
    
final public static  shortENVELOPE_MONARCH_PAPERSIZE
    
final public static  shortEXECUTIVE_PAPERSIZE
    
final public static  shortLEGAL_PAPERSIZE
    
final public static  shortLETTER_PAPERSIZE
    
 PrintSetupRecordprintSetupRecord
    

Constructor Summary
protected  HSSFPrintSetup(PrintSetupRecord printSetupRecord)
     Constructor.

Method Summary
public  shortgetCopies()
     Returns the number of copies.
public  booleangetDraft()
     Returns the draft mode.
public  shortgetFitHeight()
     Returns the number of pages high to fit the sheet in.
public  shortgetFitWidth()
     Returns the number of pages wide to fit sheet in.
public  doublegetFooterMargin()
     Returns the footer margin.
public  shortgetHResolution()
     Returns the horizontal resolution.
public  doublegetHeaderMargin()
     Returns the header margin.
public  booleangetLandscape()
     Returns the landscape mode.
public  booleangetLeftToRight()
     Returns the left to right print order.
public  booleangetNoColor()
     Returns the black and white setting.
public  booleangetNoOrientation()
     Returns the no orientation.
public  booleangetNotes()
     Returns the print notes.
public  shortgetOptions()
     Returns the bit flags for the options.
public  shortgetPageStart()
     Returns the page start.
public  shortgetPaperSize()
     Returns the paper size.
public  shortgetScale()
     Returns the scale.
public  booleangetUsePage()
     Returns the use page numbers.
public  shortgetVResolution()
     Returns the vertical resolution.
public  booleangetValidSettings()
     Returns the valid settings.
public  voidsetCopies(short copies)
     Sets the number of copies.
public  voidsetDraft(boolean d)
    
public  voidsetFitHeight(short height)
    
public  voidsetFitWidth(short width)
    
public  voidsetFooterMargin(double footermargin)
     Sets the footer margin.
public  voidsetHResolution(short resolution)
     Sets the horizontal resolution.
public  voidsetHeaderMargin(double headermargin)
     Sets the header margin.
public  voidsetLandscape(boolean ls)
    
public  voidsetLeftToRight(boolean ltor)
    
public  voidsetNoColor(boolean mono)
    
public  voidsetNoOrientation(boolean orientation)
     Set no orientation.
public  voidsetNotes(boolean printnotes)
    
public  voidsetOptions(short options)
     Sets the options flags.
public  voidsetPageStart(short start)
     Set the page numbering start.
public  voidsetPaperSize(short size)
     Set the paper size.
public  voidsetScale(short scale)
     Set the scale.
public  voidsetUsePage(boolean page)
    
public  voidsetVResolution(short resolution)
     Sets the vertical resolution.
public  voidsetValidSettings(boolean valid)
     Valid settings.

Field Detail
A4_PAPERSIZE
final public static short A4_PAPERSIZE(Code)



A5_PAPERSIZE
final public static short A5_PAPERSIZE(Code)



ENVELOPE_10_PAPERSIZE
final public static short ENVELOPE_10_PAPERSIZE(Code)



ENVELOPE_CS_PAPERSIZE
final public static short ENVELOPE_CS_PAPERSIZE(Code)



ENVELOPE_DL_PAPERSIZE
final public static short ENVELOPE_DL_PAPERSIZE(Code)



ENVELOPE_MONARCH_PAPERSIZE
final public static short ENVELOPE_MONARCH_PAPERSIZE(Code)



EXECUTIVE_PAPERSIZE
final public static short EXECUTIVE_PAPERSIZE(Code)



LEGAL_PAPERSIZE
final public static short LEGAL_PAPERSIZE(Code)



LETTER_PAPERSIZE
final public static short LETTER_PAPERSIZE(Code)



printSetupRecord
PrintSetupRecord printSetupRecord(Code)




Constructor Detail
HSSFPrintSetup
protected HSSFPrintSetup(PrintSetupRecord printSetupRecord)(Code)
Constructor. Takes the low level print setup record.
Parameters:
  printSetupRecord - the low level print setup record




Method Detail
getCopies
public short getCopies()(Code)
Returns the number of copies. number of copies



getDraft
public boolean getDraft()(Code)
Returns the draft mode. draft mode



getFitHeight
public short getFitHeight()(Code)
Returns the number of pages high to fit the sheet in. number of pages high to fit the sheet in



getFitWidth
public short getFitWidth()(Code)
Returns the number of pages wide to fit sheet in. number of pages wide to fit sheet in



getFooterMargin
public double getFooterMargin()(Code)
Returns the footer margin. footer margin



getHResolution
public short getHResolution()(Code)
Returns the horizontal resolution. horizontal resolution



getHeaderMargin
public double getHeaderMargin()(Code)
Returns the header margin. header margin



getLandscape
public boolean getLandscape()(Code)
Returns the landscape mode. landscape mode



getLeftToRight
public boolean getLeftToRight()(Code)
Returns the left to right print order. left to right print order



getNoColor
public boolean getNoColor()(Code)
Returns the black and white setting. black and white setting



getNoOrientation
public boolean getNoOrientation()(Code)
Returns the no orientation. no orientation



getNotes
public boolean getNotes()(Code)
Returns the print notes. print notes



getOptions
public short getOptions()(Code)
Returns the bit flags for the options. bit flags for the options



getPageStart
public short getPageStart()(Code)
Returns the page start. page start



getPaperSize
public short getPaperSize()(Code)
Returns the paper size. paper size



getScale
public short getScale()(Code)
Returns the scale. scale



getUsePage
public boolean getUsePage()(Code)
Returns the use page numbers. use page numbers



getVResolution
public short getVResolution()(Code)
Returns the vertical resolution. vertical resolution



getValidSettings
public boolean getValidSettings()(Code)
Returns the valid settings. valid settings



setCopies
public void setCopies(short copies)(Code)
Sets the number of copies.
Parameters:
  copies - number of copies



setDraft
public void setDraft(boolean d)(Code)
Set whether it is in draft mode
Parameters:
  d - draft



setFitHeight
public void setFitHeight(short height)(Code)
Set the number of pages high to fit the sheet in
Parameters:
  height - the number of pages



setFitWidth
public void setFitWidth(short width)(Code)
Set the number of pages wide to fit the sheet in
Parameters:
  width - the number of pages



setFooterMargin
public void setFooterMargin(double footermargin)(Code)
Sets the footer margin.
Parameters:
  footermargin - footer margin



setHResolution
public void setHResolution(short resolution)(Code)
Sets the horizontal resolution.
Parameters:
  resolution - horizontal resolution



setHeaderMargin
public void setHeaderMargin(double headermargin)(Code)
Sets the header margin.
Parameters:
  headermargin - header margin



setLandscape
public void setLandscape(boolean ls)(Code)
Set whether to print in landscape
Parameters:
  ls - landscape



setLeftToRight
public void setLeftToRight(boolean ltor)(Code)
Set whether to go left to right or top down in ordering
Parameters:
  ltor - left to right



setNoColor
public void setNoColor(boolean mono)(Code)
Set whether it is black and white
Parameters:
  mono - Black and white



setNoOrientation
public void setNoOrientation(boolean orientation)(Code)
Set no orientation. ?
Parameters:
  orientation - Orientation.



setNotes
public void setNotes(boolean printnotes)(Code)
Print the include notes
Parameters:
  printnotes - print the notes



setOptions
public void setOptions(short options)(Code)
Sets the options flags. Not advisable to do it directly.
Parameters:
  options - The bit flags for the options



setPageStart
public void setPageStart(short start)(Code)
Set the page numbering start.
Parameters:
  start - the page numbering start



setPaperSize
public void setPaperSize(short size)(Code)
Set the paper size.
Parameters:
  size - the paper size.



setScale
public void setScale(short scale)(Code)
Set the scale.
Parameters:
  scale - the scale to use



setUsePage
public void setUsePage(boolean page)(Code)
Set whether to use page start
Parameters:
  page - Use page start



setVResolution
public void setVResolution(short resolution)(Code)
Sets the vertical resolution.
Parameters:
  resolution - vertical resolution



setValidSettings
public void setValidSettings(boolean valid)(Code)
Valid settings. I'm not for sure.
Parameters:
  valid - Valid



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.