Package rma.swing
Class RmaJFrame
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
rma.swing.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
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrameNested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrameNested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.TypeNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
Fields inherited from class javax.swing.JFrame
accessibleContext, rootPane, rootPaneCheckingEnabledFields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSORFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidbooleanclickButton(String buttonText) protected booleanclickButton(AbstractButton button) booleanclickCheckBox(String buttonText, boolean selected) booleanclickRadioButton(String buttonText, boolean selected) voidvoidvoidvoidprotected JRootPaneprotected voidvoidhandle the escape keystrokestatic ImageReturns a Vector list of all open RMAJFramesstatic TimeZoneDeprecated.use ServiceLookup.getTimeZoneDisplayService().getTimeZone();static WindowReturns the top most windowintDeprecated.use ServiceLookup.getUnitsDisplayService().getDisplayUnitsSystem();static intDeprecated.use ServiceLookup.getUnitsDisplayService().getDisplayUnitsSystem();static RmaJFramereturn the Frame with the title of titlevoidinvokeFormManagementMethod(Container c, Method m, Object[] args) booleanbooleanreturn whether this Frame is ignoring modified events.booleanbooleanprotected voidregisterEnterKey(boolean register) register the enter key actionprotected voidregisterEscapeKey(boolean register) register the escape key actionvoidsetComponentsEditable(boolean b) voidsetComponentsEditable(Component[] comps, boolean editable) static voidsetDefaultIconImage(Image icon) voidsetDefaultSize(int x, int y) Sets the default size of the dialog.static voidsetDisplayScale(int paramId, double scale) Deprecated.use ServiceLookup.getUnitsDisplayService().setDisplayScaleFactor(paramId, scale);voidsetEditable(boolean b) voidsetIgnoreModifiedEvents(boolean b) Set the ignoreModifiedEvents flag to true or falsevoidset the frames location centered on its parent.voidsetModified(boolean modified) voidsetSystemClosable(boolean b) static voidsetTimeZone(TimeZone tz) Deprecated.use ServiceLookup.getTimeZoneDisplayService().setTimeZone(tz);static voidsetUnitSystem(int unitSystem) Deprecated.use ServiceLookup.getUnitsDisplayService().setDisplayUnitSystem(unitSystem);voidsetVisible(boolean b) voidstayOpen()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(...booleanDeprecated.use ServiceLookup.getUnitsDisplayService().updateDisplayScale(c);booleanDeprecated.use ServiceLookup.getTimeZoneDisplayService().updateTimeZone(c);protected booleanupdateTimeZone(Container c, TimeZone timezone) Deprecated.use ServiceLookup.getTimeZoneDisplayService().updateTimeZone(c, timezone);booleanDeprecated.use ServiceLookup.getUnitsDisplayService().updateUnitSystem(c);booleanbooleanMethods inherited from class javax.swing.JFrame
addImpl, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateMethods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedMethods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, show, toBack, toFrontMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.awt.MenuContainer
getFont, postEvent
-
Constructor Details
-
RmaJFrame
public RmaJFrame() -
RmaJFrame
-
-
Method Details
-
createRootPane
- Overrides:
createRootPanein classJFrame
-
setVisible
public void setVisible(boolean b) - Overrides:
setVisiblein classWindow
-
setDefaultIconImage
-
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
-
clearForm
public void clearForm() -
clearForm
-
invokeFormManagementMethod
-
setDisplayScale
Deprecated.use ServiceLookup.getUnitsDisplayService().setDisplayScaleFactor(paramId, scale);- Parameters:
paramId-scale-
-
updateDisplayScale
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
- Specified by:
componentHiddenin interfaceComponentListener
-
componentMoved
- Specified by:
componentMovedin interfaceComponentListener
-
componentResized
- Specified by:
componentResizedin interfaceComponentListener
-
componentShown
- Specified by:
componentShownin interfaceComponentListener
-
isModified
public boolean isModified()- Specified by:
isModifiedin interfaceModifiable
-
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:
setModifiedin interfaceModifiable
-
clickButton
-
clickButton
-
clickRadioButton
-
clickCheckBox
-
getWindow
return the Frame with the title of title -
getOpenWindows
Returns a Vector list of all open RMAJFrames -
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.use ServiceLookup.getTimeZoneDisplayService().setTimeZone(tz); -
getTimeZone
Deprecated.use ServiceLookup.getTimeZoneDisplayService().getTimeZone();- Returns:
-
getUnitDisplaySystem
Deprecated.use ServiceLookup.getUnitsDisplayService().getDisplayUnitsSystem();- Returns:
-
getUnitSystem
Deprecated.use ServiceLookup.getUnitsDisplayService().getDisplayUnitsSystem();- Returns:
-
setUnitSystem
Deprecated.use ServiceLookup.getUnitsDisplayService().setDisplayUnitSystem(unitSystem);- Parameters:
unitSystem-
-
updateUnitSystem
Deprecated.use ServiceLookup.getUnitsDisplayService().updateUnitSystem(c);- Parameters:
c-- Returns:
-
updateTimeZone
Deprecated.use ServiceLookup.getTimeZoneDisplayService().updateTimeZone(c);- Parameters:
c-- Returns:
-
updateTimeZone
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
-