Class DocumentRenderer

java.lang.Object
rma.swing.print.DocumentRenderer
All Implemented Interfaces:
Printable

public class DocumentRenderer extends Object implements Printable
  • Field Details

    • currentPage

      protected int currentPage
    • jeditorPane

      protected JEditorPane jeditorPane
    • pageEndY

      protected double pageEndY
    • pageStartY

      protected double pageStartY
    • scaleWidthToFit

      protected boolean scaleWidthToFit
    • pFormat

      protected PageFormat pFormat
    • pJob

      protected PrinterJob pJob
  • Constructor Details

    • DocumentRenderer

      public DocumentRenderer()
  • Method Details

    • getDocument

      public Document getDocument()
    • getScaleWidthToFit

      public boolean getScaleWidthToFit()
    • pageDialog

      public void pageDialog()
    • print

      public int print(Graphics graphics, PageFormat pageFormat, int pageIndex)
      Specified by:
      print in interface Printable
    • print

      public void print(HTMLDocument htmlDocument)
    • print

      public void print(JEditorPane jedPane)
    • print

      public void print(PlainDocument plainDocument)
    • printDialog

      protected void printDialog()
    • printView

      protected boolean printView(Graphics2D graphics2D, Shape allocation, View view)
    • setContentType

      protected void setContentType(String type)
    • setDocument

      public void setDocument(HTMLDocument htmlDocument)
    • setDocument

      public void setDocument(JEditorPane jedPane)
    • setDocument

      public void setDocument(PlainDocument plainDocument)
    • setDocument

      protected void setDocument(String type, Document document)
    • setScaleWidthToFit

      public void setScaleWidthToFit(boolean scaleWidth)