insensa.view.help
Class HelpDocumentRenderer

java.lang.Object
  extended by insensa.view.help.HelpDocumentRenderer
All Implemented Interfaces:
java.awt.print.Printable

public class HelpDocumentRenderer
extends java.lang.Object
implements java.awt.print.Printable


Field Summary
protected  int currentPage
           
protected  javax.swing.JEditorPane jeditorPane
           
protected  double pageEndY
           
protected  double pageStartY
           
protected  java.awt.print.PageFormat pFormat
           
protected  java.awt.print.PrinterJob pJob
           
protected  boolean scaleWidthToFit
           
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Constructor Summary
HelpDocumentRenderer()
           
 
Method Summary
 javax.swing.text.Document getDocument()
           
 boolean getScaleWidthToFit()
           
 void pageDialog()
           
 int print(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int pageIndex)
           
 void print(javax.swing.text.html.HTMLDocument htmlDocument)
           
 void print(javax.swing.JEditorPane jedPane)
           
 void print(javax.swing.text.PlainDocument plainDocument)
           
protected  void printDialog()
           
protected  boolean printView(java.awt.Graphics2D graphics2D, java.awt.Shape allocation, javax.swing.text.View view)
           
protected  void setContentType(java.lang.String type)
           
 void setDocument(javax.swing.text.html.HTMLDocument htmlDocument)
           
 void setDocument(javax.swing.JEditorPane jedPane)
           
 void setDocument(javax.swing.text.PlainDocument plainDocument)
           
protected  void setDocument(java.lang.String type, javax.swing.text.Document document)
           
 void setScaleWidthToFit(boolean scaleWidth)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentPage

protected int currentPage

jeditorPane

protected javax.swing.JEditorPane jeditorPane

pageEndY

protected double pageEndY

pageStartY

protected double pageStartY

scaleWidthToFit

protected boolean scaleWidthToFit

pFormat

protected java.awt.print.PageFormat pFormat

pJob

protected java.awt.print.PrinterJob pJob
Constructor Detail

HelpDocumentRenderer

public HelpDocumentRenderer()
Method Detail

getDocument

public javax.swing.text.Document getDocument()
Returns:

getScaleWidthToFit

public boolean getScaleWidthToFit()
Returns:

pageDialog

public void pageDialog()

print

public int print(java.awt.Graphics graphics,
                 java.awt.print.PageFormat pageFormat,
                 int pageIndex)
Specified by:
print in interface java.awt.print.Printable
See Also:
Printable.print(java.awt.Graphics, java.awt.print.PageFormat, int)

print

public void print(javax.swing.text.html.HTMLDocument htmlDocument)
Parameters:
htmlDocument -

print

public void print(javax.swing.JEditorPane jedPane)
Parameters:
jedPane -

print

public void print(javax.swing.text.PlainDocument plainDocument)
Parameters:
plainDocument -

printDialog

protected void printDialog()

printView

protected boolean printView(java.awt.Graphics2D graphics2D,
                            java.awt.Shape allocation,
                            javax.swing.text.View view)
Parameters:
graphics2D -
allocation -
insensa.view -
Returns:

setContentType

protected void setContentType(java.lang.String type)
Parameters:
type -

setDocument

public void setDocument(javax.swing.text.html.HTMLDocument htmlDocument)
Parameters:
htmlDocument -

setDocument

public void setDocument(javax.swing.JEditorPane jedPane)
Parameters:
jedPane -

setDocument

public void setDocument(javax.swing.text.PlainDocument plainDocument)
Parameters:
plainDocument -

setDocument

protected void setDocument(java.lang.String type,
                           javax.swing.text.Document document)
Parameters:
type -
document -

setScaleWidthToFit

public void setScaleWidthToFit(boolean scaleWidth)
Parameters:
scaleWidth -