Class ControlFrame

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants, Control, AppFrame, Hidable
Direct Known Subclasses:
OSPControl

public abstract class ControlFrame extends OSPFrame implements Control
A frame with menu items for saving and loading control parameters
Version:
1.0
Author:
Wolfgang Christian
See Also:
  • Field Details

    • model

      protected Object model
    • languageItems

      protected JMenuItem[] languageItems
    • languageMenu

      protected JMenu languageMenu
    • fileMenu

      protected JMenu fileMenu
    • editMenu

      protected JMenu editMenu
    • displayMenu

      protected JMenu displayMenu
    • readItem

      protected JMenuItem readItem
    • clearItem

      protected JMenuItem clearItem
    • printFrameItem

      protected JMenuItem printFrameItem
    • saveFrameAsEPSItem

      protected JMenuItem saveFrameAsEPSItem
    • saveAsItem

      protected JMenuItem saveAsItem
    • copyItem

      protected JMenuItem copyItem
    • inspectItem

      protected JMenuItem inspectItem
    • sizeUpItem

      protected JMenuItem sizeUpItem
    • sizeDownItem

      protected JMenuItem sizeDownItem
    • ospApp

      protected OSPApplication ospApp
    • xmlDefault

      protected XMLControlElement xmlDefault
  • Constructor Details

    • ControlFrame

      protected ControlFrame(String title)
  • Method Details

    • loadDisplayMenu

      protected JMenu loadDisplayMenu()
      Adds a Display menu to the menu bar. Overrides OSPFrame method.
      Overrides:
      loadDisplayMenu in class OSPFrame
      Returns:
      the display menu
    • refreshGUI

      protected void refreshGUI()
      Refreshes the user interface in response to display changes such as Language.
      Overrides:
      refreshGUI in class OSPFrame
    • save

      public void save()
      Saves a file containing the control parameters to the disk.
    • readParameters

      public void readParameters()
      Loads a file containing the control parameters from the disk.
    • copy

      public void copy()
      Copies the data in the table to the system clipboard
    • saveXML

      public void saveXML()
    • loadXML

      public void loadXML(String[] args)
    • loadXML

      public void loadXML(XMLControlElement xml, boolean compatibleModel)
      Loads xml data into the model.
      Parameters:
      xml -
      compatibleModel - true if model is known to be compatible with the app
    • loadXML

      public void loadXML(String fileName)
    • loadXML

      public void loadXML()
    • inspectXML

      public void inspectXML()
    • getOSPApp

      public OSPApplication getOSPApp()
      Gets the OSP Application that is controlled by this frame.
      Returns: