Package rma.swing

Class RmaJFrame

All Implemented Interfaces:
ComponentListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, Modifiable
Direct Known Subclasses:
AbstractRmiTextFileReaderJDialog, AbstractScriptButtonFrame, AbstractScriptEditor, DataTypeEditor, DataTypeEditor, DBFFileViewer, FormattedTextEditor, G2dDialog, GeneralTableEditor, HecDataTableFrame, HelpFrame, HistogramPlotDialog, HistogramPlotDialog, JLayerSelector, PasswordFileEditor, RmaJTableExample, RmiPortScannerFrame, TextEditFrame, TextFileEditorFrame, VCRControlsDialog

public class RmaJFrame extends JFrame implements ComponentListener, Modifiable
See Also:
  • Constructor Details

    • RmaJFrame

      public RmaJFrame()
    • RmaJFrame

      public RmaJFrame(String title)
  • Method Details

    • createRootPane

      protected JRootPane createRootPane()
      Overrides:
      createRootPane in class JFrame
    • setVisible

      public void setVisible(boolean b)
      Overrides:
      setVisible in class Window
    • setDefaultIconImage

      public static void setDefaultIconImage(Image icon)
    • getDefaultIconImage

      public static Image getDefaultIconImage()
    • setLocation

      public void setLocation()
      set the frames location centered on its parent. If it doesn't hava a parent then center it on the screen.
    • validateComponents

      public boolean validateComponents()
    • validateComponents

      public boolean validateComponents(Container c)
    • clearForm

      public void clearForm()
    • clearForm

      public void clearForm(Container c)
    • invokeFormManagementMethod

      public void invokeFormManagementMethod(Container c, Method m, Object[] args)
    • setDisplayScale

      @Deprecated public static void setDisplayScale(int paramId, double scale)
      Deprecated.
      use ServiceLookup.getUnitsDisplayService().setDisplayScaleFactor(paramId, scale);
      Parameters:
      paramId -
      scale -
    • updateDisplayScale

      @Deprecated public boolean updateDisplayScale(Container c)
      Deprecated.
      use ServiceLookup.getUnitsDisplayService().updateDisplayScale(c);
      Parameters:
      c -
      Returns:
    • setDefaultSize

      public void setDefaultSize(int x, int y)
      Sets the default size of the dialog. If the dialog is resized smaller than the default size, it is resized to the default size.
    • componentHidden

      public void componentHidden(ComponentEvent e)
      Specified by:
      componentHidden in interface ComponentListener
    • componentMoved

      public void componentMoved(ComponentEvent e)
      Specified by:
      componentMoved in interface ComponentListener
    • componentResized

      public void componentResized(ComponentEvent e)
      Specified by:
      componentResized in interface ComponentListener
    • componentShown

      public void componentShown(ComponentEvent e)
      Specified by:
      componentShown in interface ComponentListener
    • isModified

      public boolean isModified()
      Specified by:
      isModified in interface Modifiable
    • setIgnoreModifiedEvents

      public void setIgnoreModifiedEvents(boolean b)
      Set the ignoreModifiedEvents flag to true or false
    • isIgnoringModifiedEvents

      public boolean isIgnoringModifiedEvents()
      return whether this Frame is ignoring modified events.
    • setModified

      public void setModified(boolean modified)
      Specified by:
      setModified in interface Modifiable
    • clickButton

      protected boolean clickButton(AbstractButton button)
    • clickButton

      public boolean clickButton(String buttonText)
    • clickRadioButton

      public boolean clickRadioButton(String buttonText, boolean selected)
    • clickCheckBox

      public boolean clickCheckBox(String buttonText, boolean selected)
    • getWindow

      public static RmaJFrame getWindow(String title)
      return the Frame with the title of title
    • getOpenWindows

      public static Vector<RmaJFrame> getOpenWindows()
      Returns a Vector list of all open RMAJFrames
    • getTopWindow

      public static Window getTopWindow()
      Returns the top most window
      Returns:
      the top displaying window
    • stayOpen

      public void stayOpen()
      A function when RmaJFrame is being run from a headless script This will keep the window open until the user closes it For scripting only, and only from a batch mode (Do not call interactively or from a program, as it will stall) Use example: plot = Plot.newPlot() plot.addData(... plot.showPlot() curve = plot.getCurve( # All done with changes - keep up for the user to view plot.stayOpen()
    • setTimeZone

      @Deprecated public static void setTimeZone(TimeZone tz)
      Deprecated.
      use ServiceLookup.getTimeZoneDisplayService().setTimeZone(tz);
    • getTimeZone

      @Deprecated public static TimeZone getTimeZone()
      Deprecated.
      use ServiceLookup.getTimeZoneDisplayService().getTimeZone();
      Returns:
    • getUnitDisplaySystem

      @Deprecated public int getUnitDisplaySystem()
      Deprecated.
      use ServiceLookup.getUnitsDisplayService().getDisplayUnitsSystem();
      Returns:
    • getUnitSystem

      @Deprecated public static int getUnitSystem()
      Deprecated.
      use ServiceLookup.getUnitsDisplayService().getDisplayUnitsSystem();
      Returns:
    • setUnitSystem

      @Deprecated public static void setUnitSystem(int unitSystem)
      Deprecated.
      use ServiceLookup.getUnitsDisplayService().setDisplayUnitSystem(unitSystem);
      Parameters:
      unitSystem -
    • updateUnitSystem

      @Deprecated public boolean updateUnitSystem(Container c)
      Deprecated.
      use ServiceLookup.getUnitsDisplayService().updateUnitSystem(c);
      Parameters:
      c -
      Returns:
    • updateTimeZone

      @Deprecated public boolean updateTimeZone(Container c)
      Deprecated.
      use ServiceLookup.getTimeZoneDisplayService().updateTimeZone(c);
      Parameters:
      c -
      Returns:
    • updateTimeZone

      @Deprecated protected boolean updateTimeZone(Container c, TimeZone timezone)
      Deprecated.
      use ServiceLookup.getTimeZoneDisplayService().updateTimeZone(c, timezone);
      Parameters:
      c -
      timezone -
      Returns:
    • setSystemClosable

      public void setSystemClosable(boolean b)
    • isSystemClosable

      public boolean isSystemClosable()
    • registerEscapeKey

      protected void registerEscapeKey(boolean register)
      register the escape key action
    • registerEnterKey

      protected void registerEnterKey(boolean register)
      register the enter key action
    • enterKeyPressed

      protected void enterKeyPressed()
    • escapeKeyPressed

      public void escapeKeyPressed()
      handle the escape keystroke
    • setEditable

      public void setEditable(boolean b)
    • isEditable

      public boolean isEditable()
    • setComponentsEditable

      public void setComponentsEditable(boolean b)
    • setComponentsEditable

      public void setComponentsEditable(Component[] comps, boolean editable)