Class PrintViewer
java.lang.Object
org.eclipse.nebula.paperclips.widgets.PrintViewer
public class PrintViewer
extends java.lang.Object
A JFace-style
Print viewer which displays a Print in a scrollable
pane.-
Constructor Summary
Constructors Constructor Description PrintViewer(org.eclipse.swt.widgets.Composite parent, int style)Constructs a PrintPreview with the given parent and style. -
Method Summary
Modifier and Type Method Description org.eclipse.swt.widgets.ControlgetControl()Returns the viewer component wrapped by this PrintPreview.PrintgetPrint()Returns the Print being displayed.voidsetPrint(Print print)Sets the Print to be displayed.(package private) voidupdateCanvas()
-
Constructor Details
-
PrintViewer
public PrintViewer(org.eclipse.swt.widgets.Composite parent, int style)Constructs a PrintPreview with the given parent and style.- Parameters:
parent- the parent component of the scroll pane.style- the style of the scroll pane.
-
-
Method Details
-
getControl
public org.eclipse.swt.widgets.Control getControl()Returns the viewer component wrapped by this PrintPreview.- Returns:
- the viewer component wrapped by this PrintPreview.
-
setPrint
Sets the Print to be displayed.- Parameters:
print- the Print to display.
-
getPrint
Returns the Print being displayed.- Returns:
- the Print being displayed.
-
updateCanvas
void updateCanvas()
-