IcanGui
Class GuiIcanDataProcess

java.lang.Object
  extended by IcanGui.GuiHierarchy
      extended by IcanGui.GuiWindow
          extended by IcanGui.GuiIcanDataProcess
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.KeyListener, java.util.EventListener

public class GuiIcanDataProcess
extends GuiWindow
implements java.awt.event.ActionListener, java.awt.event.KeyListener

Display the output processing steps allowed and let the user choose one. Each step may be selected more than once. The user may display data, plot data, and possibly save or print data.

Since:
1.0;
Version:
1.1.14;
Updated by Louis Handler on Jan 4, 2007, 07:47 EST (1.1.14).
Updated by Louis Handler on Dec 28, 2005, 09:05 EST (1.1.6).
Updated by Louis Handler on Jun 8, 2005, 10:26 EDT (1.1.5).
Updated by Louis Handler on Nov 10, 2004, 15:29 EST (1.0.10).
Updated by Louis Handler on Apr 12, 2004, 08:30 EDT.
Updated by Louis Handler on Apr 9, 2004, 12:20 EDT.
Updated by Louis Handler on Feb 10, 2004, 10:52 EST.
Updated by Louis Handler on Jan 23, 2004, 11:37 EST.
Updated by Louis Handler on Dec 8, 2003, 14:42 EST.
Updated by Louis Handler on Sep 15, 2003, 15:43 EDT.
Updated by Louis Handler on Sep 15, 2003, 11:16 EDT.
Updated by Louis Handler on Dec 5, 2002, 11:31 EST.
Updated by Louis Handler on Dec 20, 2000, 10:30 EST.
Updated by Louis Handler on Sep 27, 2000, 15:26 EDT.
Updated by Louis Handler on Aug 29, 2000, 11:38 EDT.
Updated by Louis Handler on Mar 13, 2000, 10:32 EST.
Updated by Louis Handler on Feb 22, 2000, 15:07 EST.
Updated by Louis Handler on Jan 7, 1999, 15:22 EST.
Updated by Louis Handler on Nov 23, 1998, 10:36 EST.
Author:
Louis Handler
See Also:
GuiWindow

Nested Class Summary
(package private)  class GuiIcanDataProcess.Madapter
          Mouse Adapter Inner Class
 
Field Summary
private  java.awt.Button[] bSteps
          Array of Buttons used to perform ICAN/JAVA processing.
private static IcanDataSet data
          A reference to the input data is set/used.
private  boolean firstRun
          Variable to test for the first time the frame is displayed.
private  PlotPanel gPlotPanel
          Panel containing plot.
private static double HALF
          The number one half.
private static int iCancel
          Subscript of Cancel button.
private static int iDispAll
          Subscript of Display Entire Output to Screen button.
private static int iDispSub
          Subscript of Display Subset of Output to Screen button.
private static int iExit
          Subscript of Exit ICAN button.
private static int iHelp
          Subscript of Help button.
private static int iPlotHTM
          Subscript of Plot HygroThermoMechanical Response button.
private static int iPlotIS
          Subscript of Plot Projectile Impact Snapshot button.
private static int iPlotIV
          Subscript of Plot Projectile Impact Response button.
private static int iPlotPLY
          Subscript of Plot Ply Input button.
private static int iPlotSCF
          Subscript of Plot Stress Concentration Factors button.
private static int iPrint
          Subscript of Print button.
private static int iSave
          Subscript of Save button.
private static int iSearch
          Subscript of Search Output and Display to Screen button.
private static int nAction
          Number of initial buttons used to read/modify ICAN/JAVA input data.
private static int nButtons
          Number of Buttons/Labels.
private static int nvs
          Number of projectile impact velocities computed.
private static double ONE
          The number one.
private  java.lang.String plotTitle
          Plot title.
private  GuiIcanPlotFrame plotWindowFrame
          Plot window frame in which plot appears.
private  java.awt.Component saveCompFocus
          Component to set focus to.
private static java.lang.String[] sSteps
          Array of Strings to be used as Labels for Buttons.
 
Fields inherited from class IcanGui.GuiWindow
frameTitle, whatAmI, windowFrame
 
Fields inherited from class IcanGui.GuiHierarchy
IDO_ICAN_DATA, IDO_ICAN_DATA_BOOLEANS, IDO_ICAN_DATA_DAMPING, IDO_ICAN_DATA_IMPACT, IDO_ICAN_DATA_LOADS, IDO_ICAN_DATA_MATERIAL, IDO_ICAN_DATA_OUTPUTS, IDO_ICAN_DATA_PLOT_IMPACT, IDO_ICAN_DATA_PLOTPL, IDO_ICAN_DATA_PLY, IDO_ICAN_DATA_PROCESS, IDO_ICAN_DATA_REACTION, IDO_ICAN_DATA_SLICE, IDO_ICAN_DATA_SLICE_TABLE, IDO_ICAN_DATA_VVI, IDO_ICAN_DATA_VVR, IDO_ICAN_ELECTRICAL_CYCLIC_LOADS, IDO_ICAN_ELECTRICAL_STATIC_LOADS, IDO_ICAN_EXPERT, IDO_ICAN_HYGRAL_CYCLIC_LOADS, IDO_ICAN_HYGRAL_STATIC_LOADS, IDO_ICAN_MECH_CYCLIC_LOADS, IDO_ICAN_MECH_STATIC_DISPLACEMENTS, IDO_ICAN_MECH_STATIC_LOADS, IDO_ICAN_MORE_LOADS, IDO_ICAN_PROMPT, IDO_ICAN_RATE_LOADS, IDO_ICAN_THERMAL_CYCLIC_LOADS, IDO_ICAN_THERMAL_STATIC_LOADS, IDO_MAIN, IDO_MDB_DATA_MFIM, IDO_MDB_DATA_START, IDO_MDB_PROMPT, IDO_MSG_DATA, NDO
 
Constructor Summary
GuiIcanDataProcess()
          Constructor creates window to display buttons.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent evt)
          Detect Action Events and process accordingly.
 void changeGuiUnits()
          Change units on GUI for this class.
 java.lang.String getName()
          Get class name.
private  int getSubsetToDisplay()
          Get subset of output data to display, identified by the output selections.
 void helpMe()
          Display help message.
 void helpMe(java.awt.Component target)
          Display context-sensitive help.
protected  void initMe()
          Create window to display buttons.
 void keyPressed(java.awt.event.KeyEvent evt)
          Does Nothing
 void keyReleased(java.awt.event.KeyEvent evt)
          Detects when the following keys are released Tab, up arrow, down arrow, enter, shift+tab, alt+right, alt+left, F1
 void keyTyped(java.awt.event.KeyEvent evt)
          Does Nothing
 void PlotImpactSnapshot()
          Plot snapshot of impact projectile and laminate, showing the plies.
 void PlotPlyInput()
          Plot Ply input showing the plies.
 void plotSTRCON()
          Plot stress concentration factors: K1XX due to sigma XX, K1YY due to sigma YY, K1XY due to sigma XY.
 void presetData()
          Set buttons from ICAN/JAVA output data.
private  void printAll()
          Print contents of TextArea.
private  void searchMe()
          Obtain the search string to search the data on the screen for the next occurrence of a given character string.
 void setCompFocus()
          Set focus to some component.
 void setCompFocus(java.awt.Component cFocus)
          Set focus in current class/frame.
 
Methods inherited from class IcanGui.GuiWindow
addGB, askExit, askQuestion, showMessageInfo
 
Methods inherited from class IcanGui.GuiHierarchy
changeAllGuiUnits, exitGui, getCurrent, getFrame, getFrame, getGuiWindowClass, getGuiWindowClass, hideMe, initHierarchy, setCurrent, setNextUp, showMe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

private static IcanDataSet data
A reference to the input data is set/used.


nvs

private static int nvs
Number of projectile impact velocities computed. Must be greater than zero to enable button to plot the impact data.


sSteps

private static final java.lang.String[] sSteps
Array of Strings to be used as Labels for Buttons.


nButtons

private static final int nButtons
Number of Buttons/Labels.


iDispAll

private static final int iDispAll
Subscript of Display Entire Output to Screen button.

See Also:
Constant Field Values

iDispSub

private static final int iDispSub
Subscript of Display Subset of Output to Screen button.

See Also:
Constant Field Values

iSearch

private static final int iSearch
Subscript of Search Output and Display to Screen button.

See Also:
Constant Field Values

iPlotPLY

private static final int iPlotPLY
Subscript of Plot Ply Input button.

See Also:
Constant Field Values

iPlotHTM

private static final int iPlotHTM
Subscript of Plot HygroThermoMechanical Response button.

See Also:
Constant Field Values

iPlotSCF

private static final int iPlotSCF
Subscript of Plot Stress Concentration Factors button.

See Also:
Constant Field Values

iPlotIV

private static final int iPlotIV
Subscript of Plot Projectile Impact Response button. Used for testing and enabling button.

See Also:
Constant Field Values

iPlotIS

private static final int iPlotIS
Subscript of Plot Projectile Impact Snapshot button. Used for testing and enabling button.

See Also:
Constant Field Values

iSave

private static final int iSave
Subscript of Save button. Used for testing and enabling button.

See Also:
Constant Field Values

iPrint

private static final int iPrint
Subscript of Print button. Used for testing and enabling button.

See Also:
Constant Field Values

iHelp

private static final int iHelp
Subscript of Help button.

See Also:
Constant Field Values

iCancel

private static final int iCancel
Subscript of Cancel button.

See Also:
Constant Field Values

iExit

private static final int iExit
Subscript of Exit ICAN button.

See Also:
Constant Field Values

bSteps

private java.awt.Button[] bSteps
Array of Buttons used to perform ICAN/JAVA processing.


nAction

private static final int nAction
Number of initial buttons used to read/modify ICAN/JAVA input data.


plotTitle

private java.lang.String plotTitle
Plot title.


plotWindowFrame

private GuiIcanPlotFrame plotWindowFrame
Plot window frame in which plot appears.


gPlotPanel

private PlotPanel gPlotPanel
Panel containing plot.


firstRun

private boolean firstRun
Variable to test for the first time the frame is displayed. Used to set focus on entry.


saveCompFocus

private java.awt.Component saveCompFocus
Component to set focus to.


HALF

private static final double HALF
The number one half.

See Also:
Constant Field Values

ONE

private static final double ONE
The number one.

See Also:
Constant Field Values
Constructor Detail

GuiIcanDataProcess

public GuiIcanDataProcess()
Constructor creates window to display buttons.

Method Detail

initMe

protected void initMe()
Create window to display buttons. The buttons encapsulate the steps required to run all parts of the application/applet.

Specified by:
initMe in class GuiWindow

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent evt)
Detect Action Events and process accordingly.

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
evt - Action event.

printAll

private void printAll()
Print contents of TextArea.


getSubsetToDisplay

private int getSubsetToDisplay()
Get subset of output data to display, identified by the output selections.

Returns:
Index of selected output PRINT switch.

searchMe

private void searchMe()
Obtain the search string to search the data on the screen for the next occurrence of a given character string. This is used for "new search" or "search again".


PlotPlyInput

public void PlotPlyInput()
Plot Ply input showing the plies.


plotSTRCON

public void plotSTRCON()
Plot stress concentration factors: K1XX due to sigma XX, K1YY due to sigma YY, K1XY due to sigma XY.


PlotImpactSnapshot

public void PlotImpactSnapshot()
Plot snapshot of impact projectile and laminate, showing the plies.


keyPressed

public void keyPressed(java.awt.event.KeyEvent evt)
Does Nothing

Specified by:
keyPressed in interface java.awt.event.KeyListener
Parameters:
evt - Key event.

keyTyped

public void keyTyped(java.awt.event.KeyEvent evt)
Does Nothing

Specified by:
keyTyped in interface java.awt.event.KeyListener
Parameters:
evt - Key event.

keyReleased

public void keyReleased(java.awt.event.KeyEvent evt)
Detects when the following keys are released Tab, up arrow, down arrow, enter, shift+tab, alt+right, alt+left, F1

Specified by:
keyReleased in interface java.awt.event.KeyListener
Parameters:
evt - Key event.

helpMe

public void helpMe()
Display help message.


helpMe

public void helpMe(java.awt.Component target)
Display context-sensitive help. Display help message for a specified component.

Specified by:
helpMe in class GuiWindow
Parameters:
target - Component for which help is desired.

presetData

public void presetData()
Set buttons from ICAN/JAVA output data.

Specified by:
presetData in class GuiWindow

setCompFocus

public void setCompFocus()
Set focus to some component. Normally used when entering this screen after show().

Specified by:
setCompFocus in class GuiHierarchy

setCompFocus

public void setCompFocus(java.awt.Component cFocus)
Set focus in current class/frame.

Specified by:
setCompFocus in class GuiHierarchy
Parameters:
cFocus - Component to save to reset later.

changeGuiUnits

public void changeGuiUnits()
Change units on GUI for this class. Invoked when user changes units.

Specified by:
changeGuiUnits in class GuiWindow

getName

public java.lang.String getName()
Get class name.

Specified by:
getName in class GuiWindow
Returns:
Class name.