com.saic.isd.printscreen
Class TextHandler

java.lang.Object
  extended bycom.saic.isd.printscreen.PrintScreenHandler
      extended bycom.saic.isd.printscreen.TextHandler
All Implemented Interfaces:
IContainerCallBack
Direct Known Subclasses:
HtmlHandler, UnformattedTextHandler, XmlHandler

public abstract class TextHandler
extends PrintScreenHandler
implements IContainerCallBack

Provides a action to support printing of generic swing objects.

Version:
$Revision: 1.3 $
Author:
A Rearick (originator), $Author: beckg $ (latest)

Field Summary
protected static java.lang.String NEW_LINE
           
 
Fields inherited from class com.saic.isd.printscreen.PrintScreenHandler
myComponentToPrint, myFilter, myIcon, myLabel, myShortDescription
 
Constructor Summary
protected TextHandler(java.awt.Window window, java.lang.String label, java.lang.String shortDescription, javax.swing.Icon icon, java.lang.String extension, java.lang.String description)
           
 
Method Summary
 void copy()
          Create an internal representation of the screen and then copy that internal representation to the clipboard.
 void file()
          Create an internal representation of the screen and then preserver that internal representation in a file.
protected  java.lang.String makeContents()
           
 void preview()
          Create an internal representation of the screen and then show that in a window.
 void print()
          Create an internal representation of the screen and then print that internal representation to a printer.
protected  void wrapBody()
          Sub-classes can use this to implement wrapping.
 
Methods inherited from class com.saic.isd.printscreen.PrintScreenHandler
getIcon, getLabel, getShortDescription
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.saic.isd.printscreen.IContainerCallBack
format, format, format, format, format, format, format, format, format, format, format
 

Field Detail

NEW_LINE

protected static final java.lang.String NEW_LINE
Constructor Detail

TextHandler

protected TextHandler(java.awt.Window window,
                      java.lang.String label,
                      java.lang.String shortDescription,
                      javax.swing.Icon icon,
                      java.lang.String extension,
                      java.lang.String description)
Method Detail

copy

public void copy()
Description copied from class: PrintScreenHandler
Create an internal representation of the screen and then copy that internal representation to the clipboard.

Specified by:
copy in class PrintScreenHandler

file

public void file()
Description copied from class: PrintScreenHandler
Create an internal representation of the screen and then preserver that internal representation in a file.

Specified by:
file in class PrintScreenHandler

print

public void print()
Description copied from class: PrintScreenHandler
Create an internal representation of the screen and then print that internal representation to a printer.

Specified by:
print in class PrintScreenHandler

preview

public void preview()
Description copied from class: PrintScreenHandler
Create an internal representation of the screen and then show that in a window.

Specified by:
preview in class PrintScreenHandler

makeContents

protected java.lang.String makeContents()

wrapBody

protected void wrapBody()
Sub-classes can use this to implement wrapping. For example, document tags for HTML and XML.



Copyright © 2002 Gerhard Beck. All rights reserved. Subject to GPL.