com.saic.isd.printscreen
Class PrintScreenHandler

java.lang.Object
  extended bycom.saic.isd.printscreen.PrintScreenHandler
Direct Known Subclasses:
ImageHandler, TextHandler

public abstract class PrintScreenHandler
extends java.lang.Object

Superclass designed to construct and hold an internal representation of the object to be printed.


Field Summary
protected  java.awt.Component myComponentToPrint
           
protected  SimpleFileFilter myFilter
           
protected  javax.swing.Icon myIcon
           
protected  java.lang.String myLabel
           
protected  java.lang.String myShortDescription
           
 
Constructor Summary
protected PrintScreenHandler(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
abstract  void copy()
          Create an internal representation of the screen and then copy that internal representation to the clipboard.
abstract  void file()
          Create an internal representation of the screen and then preserver that internal representation in a file.
 javax.swing.Icon getIcon()
          May return null.
 java.lang.String getLabel()
          Must not return null.
 java.lang.String getShortDescription()
          May return null.
abstract  void preview()
          Create an internal representation of the screen and then show that in a window.
abstract  void print()
          Create an internal representation of the screen and then print that internal representation to a printer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myComponentToPrint

protected java.awt.Component myComponentToPrint

myLabel

protected java.lang.String myLabel

myShortDescription

protected java.lang.String myShortDescription

myIcon

protected javax.swing.Icon myIcon

myFilter

protected SimpleFileFilter myFilter
Constructor Detail

PrintScreenHandler

protected PrintScreenHandler(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

getLabel

public java.lang.String getLabel()
Must not return null.

Returns:
the label

copy

public abstract void copy()
Create an internal representation of the screen and then copy that internal representation to the clipboard.


print

public abstract void print()
Create an internal representation of the screen and then print that internal representation to a printer.


preview

public abstract void preview()
Create an internal representation of the screen and then show that in a window.


file

public abstract void file()
Create an internal representation of the screen and then preserver that internal representation in a file.


getShortDescription

public java.lang.String getShortDescription()
May return null.

Returns:
the short description

getIcon

public javax.swing.Icon getIcon()
May return null.

Returns:
the iocn


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