jxl.write.biff
Class SetupRecord

java.lang.Object
  |
  +--jxl.biff.RecordData
        |
        +--jxl.biff.WritableRecordData
              |
              +--jxl.write.biff.SetupRecord
All Implemented Interfaces:
ByteData

class SetupRecord
extends WritableRecordData

Stores the options and measurements from the Page Setup dialog box


Field Summary
private  byte[] data
          The binary data for output to file
private  int fitHeight
          The fit height
private  int fitWidth
          The fit width
private  double footerMargin
          The footer margin
private  double headerMargin
          The header margin
private  int horizontalPrintResolution
          The horizontal print resolution
private  PageOrientation orientation
          The page orientation
private  int pageStart
          The page start
private  int paperSize
          The paper size
private  int scaleFactor
          The scale factor
private  int verticalPrintResolution
          The vertical print resolution
 
Fields inherited from class jxl.biff.RecordData
code, record
 
Constructor Summary
SetupRecord()
          Deprecated. in favour of the sheet settings constructor
SetupRecord(SetupRecord sr)
          Deprecated. in favour of the SheetSettings constructor
SetupRecord(SheetSettings s)
          Constructor, taking the sheet settings.
 
Method Summary
 byte[] getData()
          Gets the binary data for output to file
 void setMargins(double hm, double fm)
          Sets the header and footer margins
 void setOrientation(PageOrientation o)
          Sets the orientation
 void setPaperSize(PaperSize ps)
          Sets the paper size
 
Methods inherited from class jxl.biff.WritableRecordData
getBytes
 
Methods inherited from class jxl.biff.RecordData
getCode, getRecord
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

data

private byte[] data
The binary data for output to file

headerMargin

private double headerMargin
The header margin

footerMargin

private double footerMargin
The footer margin

orientation

private PageOrientation orientation
The page orientation

paperSize

private int paperSize
The paper size

scaleFactor

private int scaleFactor
The scale factor

pageStart

private int pageStart
The page start

fitWidth

private int fitWidth
The fit width

fitHeight

private int fitHeight
The fit height

horizontalPrintResolution

private int horizontalPrintResolution
The horizontal print resolution

verticalPrintResolution

private int verticalPrintResolution
The vertical print resolution
Constructor Detail

SetupRecord

public SetupRecord()
Deprecated. in favour of the sheet settings constructor

Constructor

SetupRecord

public SetupRecord(SheetSettings s)
Constructor, taking the sheet settings. This object just takes the various fields from the bean in which it is interested
Parameters:
the - sheet settings

SetupRecord

public SetupRecord(SetupRecord sr)
Deprecated. in favour of the SheetSettings constructor

Constructor - used when copying sheets
Method Detail

setOrientation

public void setOrientation(PageOrientation o)
Sets the orientation
Parameters:
o - the orientation

setMargins

public void setMargins(double hm,
                       double fm)
Sets the header and footer margins
Parameters:
hm - the header margin
fm - the footer margin

setPaperSize

public void setPaperSize(PaperSize ps)
Sets the paper size
Parameters:
ps - the paper size

getData

public byte[] getData()
Gets the binary data for output to file
Overrides:
getData in class WritableRecordData
Returns:
the binary data