|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jxl.SheetSettings
This is a bean which client applications may use to get/set various properties which are associated with a particular worksheet, such as headers and footers, page orientation etc.
Field Summary | |
private double |
bottomMargin
The margin from the bottom of the paper in inches |
private static double |
defaultFooterMargin
|
private static double |
defaultHeaderMargin
|
private static double |
defaultHeightMargin
|
private static PageOrientation |
defaultOrientation
|
private static PaperSize |
defaultPaperSize
|
private static int |
defaultPrintResolution
|
private static double |
defaultWidthMargin
|
private int |
fitHeight
The number of pages into which this excel sheet is squeezed heightwise |
private boolean |
fitToPages
Indicates whether to fit the print to the pages or scale the output This field is manipulated indirectly by virtue of the setFitWidth/Height methods |
private int |
fitWidth
The number of pages into which this excel sheet is squeezed widthwise |
private double |
footerMargin
The margin allocated for any page footers, in inches |
private double |
headerMargin
The margin allocated for any page headers, in inches |
private boolean |
hidden
Indicates whether or not this sheet is hidden |
private int |
horizontalPrintResolution
The horizontal print resolution |
private double |
leftMargin
The margin from the left hand side of the paper in inches |
private PageOrientation |
orientation
The page orientation |
private int |
pageStart
The page number at which to commence printing |
private PaperSize |
paperSize
The paper size for printing |
private double |
rightMargin
The margin from the right hand side of the paper in inches |
private int |
scaleFactor
The scale factor used when printing |
private boolean |
selected
Indicates whether or not this sheet is selected |
private boolean |
sheetProtected
Indicates whether or not this sheet is protected |
private double |
topMargin
The margin from the top of the paper in inches |
private int |
verticalPrintResolution
The vertical print resolution |
Constructor Summary | |
SheetSettings()
Default constructor |
|
SheetSettings(SheetSettings copy)
Copy constructor. |
Method Summary | |
double |
getBottomMargin()
Accessor for the bottom margin |
double |
getDefaultHeightMargin()
Gets the default margin height |
double |
getDefaultWidthMargin()
Gets the default margin width |
int |
getFitHeight()
Accessor for the fit height |
boolean |
getFitToPages()
Accessor for the fit width print flag |
int |
getFitWidth()
Accessor for the fit width |
double |
getFooterMargin()
Accessor for the footer margin |
double |
getHeaderMargin()
Accessor for the header margin |
int |
getHorizontalPrintResolution()
Accessor for the horizontal print resolution |
double |
getLeftMargin()
Accessor for the left margin |
PageOrientation |
getOrientation()
Accessor for the orientation |
int |
getPageStart()
Accessor for the page start |
PaperSize |
getPaperSize()
Accessor for the paper size |
double |
getRightMargin()
Accessor for the right margin |
int |
getScaleFactor()
Accessor for the scale factor |
double |
getTopMargin()
Accessor for the top margin |
int |
getVerticalPrintResolution()
Accessor for the vertical print resolution |
boolean |
isHidden()
Accessor for the hidden nature of this sheet |
boolean |
isProtected()
Queries whether this sheet is protected (ie. |
boolean |
isSelected()
Accessor for the selected nature of the sheet |
void |
setBottomMargin(double m)
Sets the bottom margin |
void |
setFitHeight(int fh)
Sets the number of pages vertically that this sheet will be printed into |
void |
setFitToPages(boolean b)
Accessor for the fit to pages flag |
void |
setFitWidth(int fw)
Sets the number of pages widthwise which this sheet should be printed into |
void |
setFooterMargin(double d)
Sets the margin for any page footer |
void |
setHeaderMargin(double d)
Sets the margin for any page headers |
void |
setHidden(boolean h)
Sets the hidden status of this worksheet |
void |
setHorizontalPrintResolution(int hpw)
Sets the horizontal print resolution |
void |
setLeftMargin(double m)
Sets the left margin |
void |
setOrientation(PageOrientation po)
Sets the paper orientation for printing this sheet |
void |
setPageStart(int ps)
Sets the page number at which to commence printing |
void |
setPaperSize(PaperSize ps)
Sets the paper size to be used when printing this sheet |
void |
setProtected(boolean p)
Sets the protected (ie. |
void |
setRightMargin(double m)
Sets the right margin |
void |
setScaleFactor(int sf)
Sets the scale factor for this sheet to be used when printing. |
void |
setSelected()
Sets this sheet to be when it is opened in excel |
void |
setTopMargin(double m)
Sets the top margin |
void |
setVerticalPrintResolution(int vpw)
Sets the vertical print reslution |
Methods inherited from class java.lang.Object |
|
Field Detail |
private PageOrientation orientation
private PaperSize paperSize
private boolean sheetProtected
private boolean hidden
private boolean selected
private double headerMargin
private double footerMargin
private int scaleFactor
private int pageStart
private int fitWidth
private int fitHeight
private int horizontalPrintResolution
private int verticalPrintResolution
private double leftMargin
private double rightMargin
private double topMargin
private double bottomMargin
private boolean fitToPages
private static final PageOrientation defaultOrientation
private static final PaperSize defaultPaperSize
private static final double defaultHeaderMargin
private static final double defaultFooterMargin
private static final int defaultPrintResolution
private static final double defaultWidthMargin
private static final double defaultHeightMargin
Constructor Detail |
public SheetSettings()
public SheetSettings(SheetSettings copy)
copy
- Method Detail |
public void setOrientation(PageOrientation po)
po
- the orientationpublic PageOrientation getOrientation()
public void setPaperSize(PaperSize ps)
ps
- the paper sizepublic PaperSize getPaperSize()
public boolean isProtected()
public void setProtected(boolean p)
p
- the protected statuspublic void setHeaderMargin(double d)
d
- the margin in inchespublic double getHeaderMargin()
public void setFooterMargin(double d)
d
- the footer margin in inchespublic double getFooterMargin()
public void setHidden(boolean h)
h
- the hidden flagpublic boolean isHidden()
public void setSelected()
public boolean isSelected()
public void setScaleFactor(int sf)
sf
- the scale factor as a percentagepublic int getScaleFactor()
public void setPageStart(int ps)
ps
- the page start numberpublic int getPageStart()
public void setFitWidth(int fw)
fw
- the number of pagespublic int getFitWidth()
public void setFitHeight(int fh)
fh
- the number of pages this sheet will be printed into heightwisepublic int getFitHeight()
public void setHorizontalPrintResolution(int hpw)
hpw
- public int getHorizontalPrintResolution()
public void setVerticalPrintResolution(int vpw)
vpw
- the vertical print resolutionpublic int getVerticalPrintResolution()
public void setRightMargin(double m)
m
- the right margin in inchespublic double getRightMargin()
public void setLeftMargin(double m)
m
- the left margin in inchespublic double getLeftMargin()
public void setTopMargin(double m)
m
- the top margin in inchespublic double getTopMargin()
public void setBottomMargin(double m)
m
- the bottom margin in inchespublic double getBottomMargin()
public double getDefaultWidthMargin()
public double getDefaultHeightMargin()
public boolean getFitToPages()
public void setFitToPages(boolean b)
b
- TRUE to fit to pages, FALSE to use a scale factor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |