java.lang.Object
java.awt.print.PageFormat
org.gjt.sp.jedit.print.PrintPreviewModel
- All Implemented Interfaces:
Cloneable
Data model for the print preview pane, contains setters and getters for the
print preview display.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class java.awt.print.PageFormat
LANDSCAPE, PORTRAIT, REVERSE_LANDSCAPE -
Constructor Summary
ConstructorsConstructorDescriptionPrintPreviewModel(View view, Buffer buffer, PrintService printService, PrintRequestAttributeSet attributes, HashMap<Integer, Range> pageRanges) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of attributes.Returns the value of buffer.intReturns the value of printService.getView()Returns the value of view.getZoom()floatvoidsetAttributes(PrintRequestAttributeSet attributes) Sets the value of attributes.voidSets the value of buffer.voidvoidsetPageNumber(int number) voidsetPageRanges(HashMap<Integer, Range> pageRanges) voidvoidsetPrintService(PrintService printService) Sets the value of printService.voidSets the value of view.voidvoidsetZoomLevel(float level) toString()Methods inherited from class java.awt.print.PageFormat
clone, getHeight, getImageableHeight, getImageableWidth, getImageableX, getImageableY, getMatrix, getOrientation, getPaper, getWidth, setOrientation, setPaper
-
Constructor Details
-
PrintPreviewModel
public PrintPreviewModel() -
PrintPreviewModel
public PrintPreviewModel(View view, Buffer buffer, PrintService printService, PrintRequestAttributeSet attributes, HashMap<Integer, Range> pageRanges)
-
-
Method Details
-
toString
-
getPageNumber
public int getPageNumber() -
setPageNumber
public void setPageNumber(int number) -
getPageRanges
-
setPageRanges
-
setPrintRangeType
-
getPrintRangeType
-
getPrintService
Returns the value of printService. -
setPrintService
Sets the value of printService.- Parameters:
printService- The value to assign printService.
-
getAttributes
Returns the value of attributes. -
setAttributes
Sets the value of attributes.- Parameters:
attributes- The value to assign attributes.
-
getView
Returns the value of view. -
setView
Sets the value of view.- Parameters:
view- The value to assign view.
-
getBuffer
Returns the value of buffer. -
setBuffer
Sets the value of buffer.- Parameters:
buffer- The value to assign buffer.
-
setGraphics
-
getGraphics
-
getZoom
-
setZoom
-
setZoomLevel
public void setZoomLevel(float level) -
getZoomLevel
public float getZoomLevel()
-