public class HSSFPrintSetup extends Object
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;
Modifier and Type | Field and Description |
---|---|
static short |
A4_PAPERSIZE |
static short |
A5_PAPERSIZE |
static short |
ENVELOPE_10_PAPERSIZE |
static short |
ENVELOPE_CS_PAPERSIZE |
static short |
ENVELOPE_DL_PAPERSIZE |
static short |
ENVELOPE_MONARCH_PAPERSIZE |
static short |
EXECUTIVE_PAPERSIZE |
static short |
LEGAL_PAPERSIZE |
static short |
LETTER_PAPERSIZE |
(package private) PrintSetupRecord |
printSetupRecord |
Modifier | Constructor and Description |
---|---|
protected |
HSSFPrintSetup(PrintSetupRecord printSetupRecord)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
short |
getOptions()
Returns the bit flags for the options.
|
short |
getPageStart()
Returns the page start.
|
short |
getPaperSize()
Returns the paper size.
|
short |
getScale()
Returns the scale.
|
boolean |
getUsePage()
Returns the use page numbers.
|
boolean |
getValidSettings()
Returns the valid settings.
|
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 |
setOptions(short options)
Sets the options flags.
|
void |
setPageStart(short start)
Set the page numbering start.
|
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)
Valid settings.
|
void |
setVResolution(short resolution)
Sets the vertical resolution.
|
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
protected HSSFPrintSetup(PrintSetupRecord printSetupRecord)
printSetupRecord
- the low level print setup recordpublic void setPaperSize(short size)
size
- the paper size.public void setScale(short scale)
scale
- the scale to usepublic void setPageStart(short start)
start
- the page numbering startpublic void setFitWidth(short width)
width
- the number of pagespublic void setFitHeight(short height)
height
- the number of pagespublic void setOptions(short options)
options
- The bit flags for the optionspublic void setLeftToRight(boolean ltor)
ltor
- left to rightpublic void setLandscape(boolean ls)
ls
- landscapepublic void setValidSettings(boolean valid)
valid
- Validpublic void setNoColor(boolean mono)
mono
- Black and whitepublic void setDraft(boolean d)
d
- draftpublic void setNotes(boolean printnotes)
printnotes
- print the notespublic void setNoOrientation(boolean orientation)
orientation
- Orientation.public void setUsePage(boolean page)
page
- Use page startpublic void setHResolution(short resolution)
resolution
- horizontal resolutionpublic void setVResolution(short resolution)
resolution
- vertical resolutionpublic void setHeaderMargin(double headermargin)
headermargin
- header marginpublic void setFooterMargin(double footermargin)
footermargin
- footer marginpublic void setCopies(short copies)
copies
- number of copiespublic short getPaperSize()
public short getScale()
public short getPageStart()
public short getFitWidth()
public short getFitHeight()
public short getOptions()
public boolean getLeftToRight()
public boolean getLandscape()
public boolean getValidSettings()
public boolean getNoColor()
public boolean getDraft()
public boolean getNotes()
public boolean getNoOrientation()
public boolean getUsePage()
public short getHResolution()
public short getVResolution()
public double getHeaderMargin()
public double getFooterMargin()
public short getCopies()
Copyright © 2015 Open Microscopy Environment