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.AccessibleJFrame
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.Type
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested 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, rootPaneCheckingEnabled
Fields 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_CURSOR
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Fields 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 TypeMethodDescriptionvoid
void
boolean
clickButton
(String buttonText) protected boolean
clickButton
(AbstractButton button) boolean
clickCheckBox
(String buttonText, boolean selected) boolean
clickRadioButton
(String buttonText, boolean selected) void
void
void
void
protected JRootPane
protected void
void
handle the escape keystrokestatic Image
Returns a Vector list of all open RMAJFramesstatic TimeZone
Deprecated.use ServiceLookup.getTimeZoneDisplayService().getTimeZone();static Window
Returns the top most windowint
Deprecated.use ServiceLookup.getUnitsDisplayService().getDisplayUnitsSystem();static int
Deprecated.use ServiceLookup.getUnitsDisplayService().getDisplayUnitsSystem();static RmaJFrame
return the Frame with the title of titlevoid
invokeFormManagementMethod
(Container c, Method m, Object[] args) boolean
boolean
return whether this Frame is ignoring modified events.boolean
boolean
protected void
registerEnterKey
(boolean register) register the enter key actionprotected void
registerEscapeKey
(boolean register) register the escape key actionvoid
setComponentsEditable
(boolean b) void
setComponentsEditable
(Component[] comps, boolean editable) static void
setDefaultIconImage
(Image icon) void
setDefaultSize
(int x, int y) Sets the default size of the dialog.static void
setDisplayScale
(int paramId, double scale) Deprecated.use ServiceLookup.getUnitsDisplayService().setDisplayScaleFactor(paramId, scale);void
setEditable
(boolean b) void
setIgnoreModifiedEvents
(boolean b) Set the ignoreModifiedEvents flag to true or falsevoid
set the frames location centered on its parent.void
setModified
(boolean modified) void
setSystemClosable
(boolean b) static void
setTimeZone
(TimeZone tz) Deprecated.use ServiceLookup.getTimeZoneDisplayService().setTimeZone(tz);static void
setUnitSystem
(int unitSystem) Deprecated.use ServiceLookup.getUnitsDisplayService().setDisplayUnitSystem(unitSystem);void
setVisible
(boolean b) 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(...boolean
Deprecated.use ServiceLookup.getUnitsDisplayService().updateDisplayScale(c);boolean
Deprecated.use ServiceLookup.getTimeZoneDisplayService().updateTimeZone(c);protected boolean
updateTimeZone
(Container c, TimeZone timezone) Deprecated.use ServiceLookup.getTimeZoneDisplayService().updateTimeZone(c, timezone);boolean
Deprecated.use ServiceLookup.getUnitsDisplayService().updateUnitSystem(c);boolean
boolean
Methods 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, update
Methods 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, setUndecorated
Methods 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, toFront
Methods 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, validateTree
Methods 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, transferFocusUpCycle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
-
Constructor Details
-
RmaJFrame
public RmaJFrame() -
RmaJFrame
-
-
Method Details
-
createRootPane
- Overrides:
createRootPane
in classJFrame
-
setVisible
public void setVisible(boolean b) - Overrides:
setVisible
in 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:
componentHidden
in interfaceComponentListener
-
componentMoved
- Specified by:
componentMoved
in interfaceComponentListener
-
componentResized
- Specified by:
componentResized
in interfaceComponentListener
-
componentShown
- Specified by:
componentShown
in interfaceComponentListener
-
isModified
public boolean isModified()- Specified by:
isModified
in 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:
setModified
in 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
-