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.Control getControl()
    Returns the viewer component wrapped by this PrintPreview.
    Print getPrint()
    Returns the Print being displayed.
    void setPrint​(Print print)
    Sets the Print to be displayed.
    (package private) void updateCanvas()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void setPrint​(Print print)
      Sets the Print to be displayed.
      Parameters:
      print - the Print to display.
    • getPrint

      public Print getPrint()
      Returns the Print being displayed.
      Returns:
      the Print being displayed.
    • updateCanvas

      void updateCanvas()