|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.xssf.usermodel.XSSFPrintSetup
public class XSSFPrintSetup
Page setup and page margins settings for the worksheet.
| Field Summary |
|---|
| Fields inherited from interface org.apache.poi.ss.usermodel.PrintSetup |
|---|
A3_PAPERSIZE, A4_EXTRA_PAPERSIZE, A4_PAPERSIZE, A4_PLUS_PAPERSIZE, A4_ROTATED_PAPERSIZE, A4_SMALL_PAPERSIZE, A4_TRANSVERSE_PAPERSIZE, A5_PAPERSIZE, B4_PAPERSIZE, B5_PAPERSIZE, ELEVEN_BY_SEVENTEEN_PAPERSIZE, ENVELOPE_10_PAPERSIZE, ENVELOPE_9_PAPERSIZE, ENVELOPE_C3_PAPERSIZE, ENVELOPE_C4_PAPERSIZE, ENVELOPE_C5_PAPERSIZE, ENVELOPE_C6_PAPERSIZE, ENVELOPE_CS_PAPERSIZE, ENVELOPE_DL_PAPERSIZE, ENVELOPE_MONARCH_PAPERSIZE, EXECUTIVE_PAPERSIZE, FOLIO8_PAPERSIZE, LEDGER_PAPERSIZE, LEGAL_PAPERSIZE, LETTER_PAPERSIZE, LETTER_ROTATED_PAPERSIZE, LETTER_SMALL_PAGESIZE, NOTE8_PAPERSIZE, QUARTO_PAPERSIZE, STATEMENT_PAPERSIZE, TABLOID_PAPERSIZE, TEN_BY_FOURTEEN_PAPERSIZE |
| Method Summary | |
|---|---|
org.apache.poi.ss.usermodel.PrintCellComments |
getCellComment()
|
short |
getCopies()
Returns the number of copies. |
boolean |
getDraft()
Returns the draft mode. |
short |
getFitHeight()
Returns the number of pages high to fit the sheet in. |
short |
getFitWidth()
Returns the number of pages wide to fit sheet in. |
double |
getFooterMargin()
Returns the footer margin. |
double |
getHeaderMargin()
Returns the header margin. |
short |
getHResolution()
Returns the horizontal resolution. |
boolean |
getLandscape()
Returns the landscape mode. |
boolean |
getLeftToRight()
Returns the left to right print order. |
boolean |
getNoColor()
Returns the black and white setting. |
boolean |
getNoOrientation()
Returns the no orientation. |
boolean |
getNotes()
Returns the print notes. |
org.apache.poi.ss.usermodel.PrintOrientation |
getOrientation()
Orientation of the page: landscape - portrait. |
org.apache.poi.ss.usermodel.PageOrder |
getPageOrder()
get print page order. |
short |
getPageStart()
Set the page numbering start. |
short |
getPaperSize()
Returns the paper size. |
org.apache.poi.ss.usermodel.PaperSize |
getPaperSizeEnum()
Returns the paper size as enum. |
short |
getScale()
Returns the scale. |
boolean |
getUsePage()
Returns the use page numbers. |
boolean |
getValidSettings()
Use the printer's defaults settings for page setup values and don't use the default values specified in the schema. |
short |
getVResolution()
Returns the vertical resolution. |
void |
setCopies(short copies)
Sets the number of copies. |
void |
setDraft(boolean d)
Set whether it is in draft mode |
void |
setFitHeight(short height)
Set the number of pages high to fit the sheet in |
void |
setFitWidth(short width)
Set the number of pages wide to fit the sheet in |
void |
setFooterMargin(double footermargin)
Sets the footer margin. |
void |
setHeaderMargin(double headermargin)
Sets the header margin. |
void |
setHResolution(short resolution)
Sets the horizontal resolution. |
void |
setLandscape(boolean ls)
Set whether to print in landscape |
void |
setLeftToRight(boolean ltor)
Set whether to go left to right or top down in ordering |
void |
setNoColor(boolean mono)
Set whether it is black and white |
void |
setNoOrientation(boolean orientation)
Set no orientation. |
void |
setNotes(boolean printnotes)
Print the include notes |
void |
setOrientation(org.apache.poi.ss.usermodel.PrintOrientation orientation)
Orientation of the page: landscape - portrait. |
void |
setPageOrder(org.apache.poi.ss.usermodel.PageOrder pageOrder)
Set print page order. |
void |
setPageStart(short start)
Set the page numbering start. |
void |
setPaperSize(org.apache.poi.ss.usermodel.PaperSize size)
Set the paper size as enum value. |
void |
setPaperSize(short size)
Set the paper size. |
void |
setScale(short scale)
Set the scale. |
void |
setUsePage(boolean page)
Set whether to use page start |
void |
setValidSettings(boolean valid)
Use the printer's defaults settings for page setup values and don't use the default values specified in the schema. |
void |
setVResolution(short resolution)
Sets the vertical resolution. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void setPaperSize(short size)
setPaperSize in interface org.apache.poi.ss.usermodel.PrintSetupsize - the paper size.public void setPaperSize(org.apache.poi.ss.usermodel.PaperSize size)
size - value for the paper size.public void setScale(short scale)
setScale in interface org.apache.poi.ss.usermodel.PrintSetupscale - the scale to usepublic void setPageStart(short start)
setPageStart in interface org.apache.poi.ss.usermodel.PrintSetupstart - the page numbering startpublic void setFitWidth(short width)
setFitWidth in interface org.apache.poi.ss.usermodel.PrintSetupwidth - the number of pagespublic void setFitHeight(short height)
setFitHeight in interface org.apache.poi.ss.usermodel.PrintSetupheight - the number of pagespublic void setLeftToRight(boolean ltor)
setLeftToRight in interface org.apache.poi.ss.usermodel.PrintSetupltor - left to rightpublic void setLandscape(boolean ls)
setLandscape in interface org.apache.poi.ss.usermodel.PrintSetupls - landscapepublic void setValidSettings(boolean valid)
setValidSettings in interface org.apache.poi.ss.usermodel.PrintSetupvalid - Validpublic void setNoColor(boolean mono)
setNoColor in interface org.apache.poi.ss.usermodel.PrintSetupmono - Black and whitepublic void setDraft(boolean d)
setDraft in interface org.apache.poi.ss.usermodel.PrintSetupd - draftpublic void setNotes(boolean printnotes)
setNotes in interface org.apache.poi.ss.usermodel.PrintSetupprintnotes - print the notespublic void setNoOrientation(boolean orientation)
setNoOrientation in interface org.apache.poi.ss.usermodel.PrintSetuporientation - Orientation.public void setUsePage(boolean page)
setUsePage in interface org.apache.poi.ss.usermodel.PrintSetuppage - Use page startpublic void setHResolution(short resolution)
setHResolution in interface org.apache.poi.ss.usermodel.PrintSetupresolution - horizontal resolutionpublic void setVResolution(short resolution)
setVResolution in interface org.apache.poi.ss.usermodel.PrintSetupresolution - vertical resolutionpublic void setHeaderMargin(double headermargin)
setHeaderMargin in interface org.apache.poi.ss.usermodel.PrintSetupheadermargin - header marginpublic void setFooterMargin(double footermargin)
setFooterMargin in interface org.apache.poi.ss.usermodel.PrintSetupfootermargin - footer marginpublic void setCopies(short copies)
setCopies in interface org.apache.poi.ss.usermodel.PrintSetupcopies - number of copiespublic void setOrientation(org.apache.poi.ss.usermodel.PrintOrientation orientation)
orientation - - Orientation of the pagePrintOrientationpublic org.apache.poi.ss.usermodel.PrintOrientation getOrientation()
PrintOrientationpublic org.apache.poi.ss.usermodel.PrintCellComments getCellComment()
public void setPageOrder(org.apache.poi.ss.usermodel.PageOrder pageOrder)
pageOrder - public org.apache.poi.ss.usermodel.PageOrder getPageOrder()
public short getPaperSize()
getPaperSize in interface org.apache.poi.ss.usermodel.PrintSetuppublic org.apache.poi.ss.usermodel.PaperSize getPaperSizeEnum()
PaperSizepublic short getScale()
getScale in interface org.apache.poi.ss.usermodel.PrintSetuppublic short getPageStart()
getPageStart in interface org.apache.poi.ss.usermodel.PrintSetuppublic short getFitWidth()
getFitWidth in interface org.apache.poi.ss.usermodel.PrintSetuppublic short getFitHeight()
getFitHeight in interface org.apache.poi.ss.usermodel.PrintSetuppublic boolean getLeftToRight()
getLeftToRight in interface org.apache.poi.ss.usermodel.PrintSetuppublic boolean getLandscape()
getLandscape in interface org.apache.poi.ss.usermodel.PrintSetuppublic boolean getValidSettings()
getValidSettings in interface org.apache.poi.ss.usermodel.PrintSetuppublic boolean getNoColor()
getNoColor in interface org.apache.poi.ss.usermodel.PrintSetuppublic boolean getDraft()
getDraft in interface org.apache.poi.ss.usermodel.PrintSetuppublic boolean getNotes()
getNotes in interface org.apache.poi.ss.usermodel.PrintSetuppublic boolean getNoOrientation()
getNoOrientation in interface org.apache.poi.ss.usermodel.PrintSetuppublic boolean getUsePage()
getUsePage in interface org.apache.poi.ss.usermodel.PrintSetuppublic short getHResolution()
getHResolution in interface org.apache.poi.ss.usermodel.PrintSetuppublic short getVResolution()
getVResolution in interface org.apache.poi.ss.usermodel.PrintSetuppublic double getHeaderMargin()
getHeaderMargin in interface org.apache.poi.ss.usermodel.PrintSetuppublic double getFooterMargin()
getFooterMargin in interface org.apache.poi.ss.usermodel.PrintSetuppublic short getCopies()
getCopies in interface org.apache.poi.ss.usermodel.PrintSetup
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||