Package hec.gfx2d

Class PrintMultipleJDialog

All Implemented Interfaces:
ActionListener, ComponentListener, ImageObserver, MenuContainer, Pageable, Printable, Serializable, EventListener, Accessible, ChangeListener, RootPaneContainer, WindowConstants, Modifiable, ButtonCmdPanelListener

public class PrintMultipleJDialog extends RmaJDialog implements ActionListener, ChangeListener, ButtonCmdPanelListener, Printable, Pageable
See Also:
  • Constructor Details

    • PrintMultipleJDialog

      public PrintMultipleJDialog(Frame parent)
    • PrintMultipleJDialog

      public PrintMultipleJDialog(String title)
    • PrintMultipleJDialog

      public PrintMultipleJDialog()
  • Method Details

    • addNotify

      public void addNotify()
      Overrides:
      addNotify in class RmaJDialog
    • main

      public static void main(String[] args)
    • setVisible

      public void setVisible(boolean b)
      Description copied from class: RmaJDialog
      make sure the ok button is the default button when the dialog comes up.
      Overrides:
      setVisible in class RmaJDialog
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Intercepts all Action events and routes them to the correct handlers.
      Specified by:
      actionPerformed in interface ActionListener
    • buttonCmdActionPerformed

      public void buttonCmdActionPerformed(ActionEvent e)
      Intercepts all ButtonCmdPanel events and routes them to the correct handlers.
      Specified by:
      buttonCmdActionPerformed in interface ButtonCmdPanelListener
    • print

      public int print(Graphics g, PageFormat pageFormat, int pageIndex) throws PrinterException
      This is the print callback method. It is used as a part of the Printable interface. A print job calls this method when it needs information to print
      Specified by:
      print in interface Printable
      Parameters:
      g - - graphics context to print to.
      pageFormat - - the page format that is used to print to
      pageIndex - - the page number
      Throws:
      PrinterException
    • getPageFormat

      public PageFormat getPageFormat(int pageNum)
      Returns the page format that is used for each page. The page format is the default page format generated by the print job and is the same for all pages.
      Specified by:
      getPageFormat in interface Pageable
    • getPrintable

      public Printable getPrintable(int pageNum)
      Returns a reference to this dialog. This dialog controls which plots go on which page
      Specified by:
      getPrintable in interface Pageable
    • getNumberOfPages

      public int getNumberOfPages()
      Returns the number of pages for this document
      Specified by:
      getNumberOfPages in interface Pageable
    • saveAs

      public void saveAs()
    • saveToPostscript

      public void saveToPostscript(File file)
    • saveToJpeg

      public void saveToJpeg(File file)
    • pageSetup

      public void pageSetup()
      Called when the user clicks on the page setup menu item. It takes care of displaying the page setup dialog
    • printPreview

      public void printPreview()
      Displays the print preview dialog. Called when the user clicks the Print Preview menu item
    • stateChanged

      public void stateChanged(ChangeEvent e)
      Intercepts change events for the dialog. Only accepts the events generated by the slider bars
      Specified by:
      stateChanged in interface ChangeListener