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
-
Field Summary
Fields inherited from class java.awt.print.PageFormat
LANDSCAPE, PORTRAIT, REVERSE_LANDSCAPE
-
Constructor Summary
ConstructorDescriptionPrintPreviewModel
(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.int
Returns the value of printService.getView()
Returns the value of view.getZoom()
float
void
setAttributes
(PrintRequestAttributeSet attributes) Sets the value of attributes.void
Sets the value of buffer.void
void
setPageNumber
(int number) void
setPageRanges
(HashMap<Integer, Range> pageRanges) void
void
setPrintService
(PrintService printService) Sets the value of printService.void
Sets the value of view.void
void
setZoomLevel
(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()
-