Save This Page
Home » poi-src-3.1-FINAL-20080629 » org.apache » poi » hssf » usermodel » [javadoc | source]
org.apache.poi.hssf.usermodel
public class: HSSFPrintSetup [javadoc | source]
java.lang.Object
   org.apache.poi.hssf.usermodel.HSSFPrintSetup
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;

Field Summary
public static final  short LETTER_PAPERSIZE     
public static final  short LEGAL_PAPERSIZE     
public static final  short EXECUTIVE_PAPERSIZE     
public static final  short A4_PAPERSIZE     
public static final  short A5_PAPERSIZE     
public static final  short ENVELOPE_10_PAPERSIZE     
public static final  short ENVELOPE_DL_PAPERSIZE     
public static final  short ENVELOPE_CS_PAPERSIZE     
public static final  short ENVELOPE_MONARCH_PAPERSIZE     
 PrintSetupRecord printSetupRecord     
Constructor:
 protected HSSFPrintSetup(PrintSetupRecord printSetupRecord) 
    Constructor. Takes the low level print setup record.
    Parameters:
    printSetupRecord - the low level print setup record
Method from org.apache.poi.hssf.usermodel.HSSFPrintSetup Summary:
getCopies,   getDraft,   getFitHeight,   getFitWidth,   getFooterMargin,   getHResolution,   getHeaderMargin,   getLandscape,   getLeftToRight,   getNoColor,   getNoOrientation,   getNotes,   getOptions,   getPageStart,   getPaperSize,   getScale,   getUsePage,   getVResolution,   getValidSettings,   setCopies,   setDraft,   setFitHeight,   setFitWidth,   setFooterMargin,   setHResolution,   setHeaderMargin,   setLandscape,   setLeftToRight,   setNoColor,   setNoOrientation,   setNotes,   setOptions,   setPageStart,   setPaperSize,   setScale,   setUsePage,   setVResolution,   setValidSettings
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.poi.hssf.usermodel.HSSFPrintSetup Detail:
 public short getCopies() 
    Returns the number of copies.
 public boolean getDraft() 
    Returns the draft mode.
 public short getFitHeight() 
    Returns the number of pages high to fit the sheet in.
 public short getFitWidth() 
    Returns the number of pages wide to fit sheet in.
 public double getFooterMargin() 
    Returns the footer margin.
 public short getHResolution() 
    Returns the horizontal resolution.
 public double getHeaderMargin() 
    Returns the header margin.
 public boolean getLandscape() 
    Returns the landscape mode.
 public boolean getLeftToRight() 
    Returns the left to right print order.
 public boolean getNoColor() 
    Returns the black and white setting.
 public boolean getNoOrientation() 
    Returns the no orientation.
 public boolean getNotes() 
    Returns the print notes.
 public short getOptions() 
    Returns the bit flags for the options.
 public short getPageStart() 
    Returns the page start.
 public short getPaperSize() 
    Returns the paper size.
 public short getScale() 
    Returns the scale.
 public boolean getUsePage() 
    Returns the use page numbers.
 public short getVResolution() 
    Returns the vertical resolution.
 public boolean getValidSettings() 
    Returns the valid settings.
 public  void setCopies(short copies) 
    Sets the number of copies.
 public  void setDraft(boolean d) 
    Set whether it is in draft mode
 public  void setFitHeight(short height) 
    Set the number of pages high to fit the sheet in
 public  void setFitWidth(short width) 
    Set the number of pages wide to fit the sheet in
 public  void setFooterMargin(double footermargin) 
    Sets the footer margin.
 public  void setHResolution(short resolution) 
    Sets the horizontal resolution.
 public  void setHeaderMargin(double headermargin) 
    Sets the header margin.
 public  void setLandscape(boolean ls) 
    Set whether to print in landscape
 public  void setLeftToRight(boolean ltor) 
    Set whether to go left to right or top down in ordering
 public  void setNoColor(boolean mono) 
    Set whether it is black and white
 public  void setNoOrientation(boolean orientation) 
    Set no orientation. ?
 public  void setNotes(boolean printnotes) 
    Print the include notes
 public  void setOptions(short options) 
    Sets the options flags. Not advisable to do it directly.
 public  void setPageStart(short start) 
    Set the page numbering start.
 public  void setPaperSize(short size) 
    Set the paper size.
 public  void setScale(short scale) 
    Set the scale.
 public  void setUsePage(boolean page) 
    Set whether to use page start
 public  void setVResolution(short resolution) 
    Sets the vertical resolution.
 public  void setValidSettings(boolean valid) 
    Valid settings. I'm not for sure.