public class PrintPreviewModel
extends java.awt.print.PageFormat
Modifier and Type | Class and Description |
---|---|
static class |
PrintPreviewModel.Zoom |
Constructor and Description |
---|
PrintPreviewModel() |
PrintPreviewModel(View view,
Buffer buffer,
javax.print.PrintService printService,
javax.print.attribute.PrintRequestAttributeSet attributes,
java.util.HashMap<java.lang.Integer,Range> pageRanges) |
Modifier and Type | Method and Description |
---|---|
javax.print.attribute.PrintRequestAttributeSet |
getAttributes()
Returns the value of attributes.
|
Buffer |
getBuffer()
Returns the value of buffer.
|
java.awt.Graphics |
getGraphics() |
int |
getPageNumber() |
java.util.HashMap<java.lang.Integer,Range> |
getPageRanges() |
PrintRangeType |
getPrintRangeType() |
javax.print.PrintService |
getPrintService()
Returns the value of printService.
|
View |
getView()
Returns the value of view.
|
PrintPreviewModel.Zoom |
getZoom() |
float |
getZoomLevel() |
void |
setAttributes(javax.print.attribute.PrintRequestAttributeSet attributes)
Sets the value of attributes.
|
void |
setBuffer(Buffer buffer)
Sets the value of buffer.
|
void |
setGraphics(java.awt.Graphics g) |
void |
setPageNumber(int number) |
void |
setPageRanges(java.util.HashMap<java.lang.Integer,Range> pageRanges) |
void |
setPrintRangeType(PrintRangeType type) |
void |
setPrintService(javax.print.PrintService printService)
Sets the value of printService.
|
void |
setView(View view)
Sets the value of view.
|
void |
setZoom(PrintPreviewModel.Zoom zoom) |
void |
setZoomLevel(float level) |
java.lang.String |
toString() |
public java.lang.String toString()
toString
in class java.lang.Object
public int getPageNumber()
public void setPageNumber(int number)
public java.util.HashMap<java.lang.Integer,Range> getPageRanges()
public void setPageRanges(java.util.HashMap<java.lang.Integer,Range> pageRanges)
public void setPrintRangeType(PrintRangeType type)
public PrintRangeType getPrintRangeType()
public javax.print.PrintService getPrintService()
public void setPrintService(javax.print.PrintService printService)
printService
- The value to assign printService.public javax.print.attribute.PrintRequestAttributeSet getAttributes()
public void setAttributes(javax.print.attribute.PrintRequestAttributeSet attributes)
attributes
- The value to assign attributes.public View getView()
public void setView(View view)
view
- The value to assign view.public Buffer getBuffer()
public void setBuffer(Buffer buffer)
buffer
- The value to assign buffer.public void setGraphics(java.awt.Graphics g)
public java.awt.Graphics getGraphics()
public PrintPreviewModel.Zoom getZoom()
public void setZoom(PrintPreviewModel.Zoom zoom)
public void setZoomLevel(float level)
public float getZoomLevel()