Package org.apache.poi.hssf.record
Class PrintSetupRecord
java.lang.Object
org.apache.poi.hssf.record.RecordBase
org.apache.poi.hssf.record.Record
org.apache.poi.hssf.record.StandardRecord
org.apache.poi.hssf.record.PrintSetupRecord
- All Implemented Interfaces:
org.apache.poi.common.Duplicatable,GenericRecord
Stores print setup options -- bogus for HSSF (and marked as such)
- Since:
- 2.0-pre
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()shortbooleangetDraft()shortshortdoubledoubleshortbooleanbooleanbooleanbooleanbooleangetNotes()shortshortshortshortgetScale()shortgetSid()return the non static version of the id for this record.booleanbooleanshortvoidvoidsetCopies(short copies) voidsetDraft(boolean d) voidsetFitHeight(short height) voidsetFitWidth(short width) voidsetFooterMargin(double footermargin) voidsetHeaderMargin(double headermargin) voidsetHResolution(short resolution) voidsetLandscape(boolean ls) voidsetLeftToRight(boolean ltor) voidsetNoColor(boolean mono) voidsetNoOrientation(boolean orientation) voidsetNotes(boolean printnotes) voidsetOptions(short options) voidsetPageStart(short start) voidsetPaperSize(short size) voidsetScale(short scale) voidsetUsePage(boolean page) voidsetValidSettings(boolean valid) voidsetVResolution(short resolution) Methods inherited from class org.apache.poi.hssf.record.StandardRecord
getRecordSize, serializeMethods inherited from class org.apache.poi.hssf.record.Record
cloneViaReserialise, serialize, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.poi.common.usermodel.GenericRecord
getGenericChildren
-
Field Details
-
sid
public static final short sid- See Also:
-
-
Constructor Details
-
PrintSetupRecord
public PrintSetupRecord() -
PrintSetupRecord
-
PrintSetupRecord
-
-
Method Details
-
setPaperSize
public void setPaperSize(short size) -
setScale
public void setScale(short scale) -
setPageStart
public void setPageStart(short start) -
setFitWidth
public void setFitWidth(short width) -
setFitHeight
public void setFitHeight(short height) -
setOptions
public void setOptions(short options) -
setLeftToRight
public void setLeftToRight(boolean ltor) -
setLandscape
public void setLandscape(boolean ls) -
setValidSettings
public void setValidSettings(boolean valid) -
setNoColor
public void setNoColor(boolean mono) -
setDraft
public void setDraft(boolean d) -
setNotes
public void setNotes(boolean printnotes) -
setNoOrientation
public void setNoOrientation(boolean orientation) -
setUsePage
public void setUsePage(boolean page) -
setHResolution
public void setHResolution(short resolution) -
setVResolution
public void setVResolution(short resolution) -
setHeaderMargin
public void setHeaderMargin(double headermargin) -
setCopies
public void setCopies(short copies) -
getPaperSize
public short getPaperSize() -
getScale
public short getScale() -
getPageStart
public short getPageStart() -
getFitWidth
public short getFitWidth() -
getFitHeight
public short getFitHeight() -
getOptions
public short getOptions() -
getLeftToRight
public boolean getLeftToRight() -
getLandscape
public boolean getLandscape() -
getValidSettings
public boolean getValidSettings() -
getNoColor
public boolean getNoColor() -
getDraft
public boolean getDraft() -
getNotes
public boolean getNotes() -
getNoOrientation
public boolean getNoOrientation() -
getUsePage
public boolean getUsePage() -
getHResolution
public short getHResolution() -
getVResolution
public short getVResolution() -
getHeaderMargin
public double getHeaderMargin() -
getCopies
public short getCopies() -
serialize
-
getSid
public short getSid()Description copied from class:Recordreturn the non static version of the id for this record. -
copy
- Specified by:
copyin interfaceorg.apache.poi.common.Duplicatable- Specified by:
copyin classStandardRecord
-
getGenericRecordType
- Specified by:
getGenericRecordTypein interfaceGenericRecord- Specified by:
getGenericRecordTypein classRecord
-
getGenericProperties
-