edu.sc.seis.fissuresUtil.display
Class SeismogramPrinter

java.lang.Object
  extended by edu.sc.seis.fissuresUtil.display.SeismogramPrinter
All Implemented Interfaces:
java.awt.print.Printable

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

SeismogramPrinter prints an array of BasicSeismogramDisplays Created: Sun Oct 13 17:06:40 2002


Field Summary
 
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
 
Method Summary
static void print(BasicSeismogramDisplay[] displays)
          print instantiates a new SeismogramPrinter and uses it to print the passed array of seismogram displays
 int print(java.awt.Graphics g, java.awt.print.PageFormat pageFormat, int pageIndex)
          Implementation of java.awt.print.Printable's print method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

print

public static void print(BasicSeismogramDisplay[] displays)
print instantiates a new SeismogramPrinter and uses it to print the passed array of seismogram displays

Parameters:
displays - an array of BSD's to print

print

public int print(java.awt.Graphics g,
                 java.awt.print.PageFormat pageFormat,
                 int pageIndex)
Implementation of java.awt.print.Printable's print method. Allows this object to be printed by java's print api

Specified by:
print in interface java.awt.print.Printable
Parameters:
g - the Graphics the current page prints to
pageFormat - this page's format
pageIndex - the current page index
Returns:
an int specifying if this page exists