IcanGui
Class GuiIcanDataSubslice

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by IcanGui.GuiIcanDataSubslice
All Implemented Interfaces:
java.awt.event.ActionListener, java.awt.event.FocusListener, java.awt.event.KeyListener, java.awt.event.WindowListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible

public class GuiIcanDataSubslice
extends java.awt.Frame
implements java.awt.event.ActionListener, java.awt.event.KeyListener, java.awt.event.FocusListener, java.awt.event.WindowListener

Encapsulates the behavior of ICAN/JAVA data entry to control Subslicing. The constructor and remove() methods are required by the calling method in class IcanGui/GuiIcanDataPly. initMe() is required by abstract super class GuiWindow.

Since:
1.0;
Version:
1.1.15;
Updated by Louis Handler on Dec 12, 2007, 13:55 EST (1.1.15).
Updated by Louis Handler on Aug 10, 2006, 12:37 EDT (1.1.11).
Updated by Louis Handler on Jun 23, 2006, 08:09 EDT (1.1.8).
Updated by Louis Handler on Jan 17, 2006, 10:45 EST (1.1.7).
Updated by Louis Handler on Jan 17, 2006, 10:12 EST (1.1.6).
Updated by Louis Handler on Jul 13, 2005, 08:56 EDT (1.1.5).
Updated by Louis Handler on Oct 28, 2004, 11:57 EDT (1.0.10).
Updated by Louis Handler on Oct 25, 2004, 15:57 EDT (1.0.8).
Updated by Louis Handler on Apr 12, 2004, 08:33 EDT.
Updated by Louis Handler on Apr 9, 2004, 12:23 EDT.
Updated by Louis Handler on Aug 27, 2002, 10:13 EDT.
Updated by Louis Handler on Aug 27, 2002, 09:35 EDT.
Updated by Louis Handler on Aug 26, 2002, 10:52 EDT.
Updated by Louis Handler on Aug 26, 2002, 09:37 EDT.
Updated by Louis Handler on Mar 28, 2000, 13:31 EST.
Updated by Louis Handler on Mar 22, 2000, 12:54 EST.
Updated by Louis Handler on Mar 13, 2000, 12:10 EST.
Updated by Louis Handler on Feb 25, 2000, 08:39 EST.
Updated by Louis Handler on Nov 24, 1999, 11:57 EST.
Updated by Louis Handler on Jun 15, 1999, 14:49 EDT.
Author:
Louis Handler
See Also:
GuiWindow, Serialized Form

Nested Class Summary
(package private)  class GuiIcanDataSubslice.Madapter
          Mouse Adapter Inner Class
 
Nested classes/interfaces inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
private static java.lang.String BLANKS
          Constant blanks used for padding.
private  double boxLo
          Location of bottom edge of box containing the fiber or particle.
private static java.lang.String[] buttonLabels
          Labels to display on action buttons.
private  java.awt.Button[] buttons
          Action buttons.
private  double[] d
          Original Values of Diameter/Distance for Fiber or Particle, (Fiber or Particle +) Interphase, Matrix or Binder.
private  java.lang.String[][] dataColTitle
          Titles for columns in Subslice Data table.
private  java.lang.String[] dataRowTitle
          Titles for (column 1) rows in Subslice Data table.
private  java.lang.String[] descr
          Descriptive titles at top of window.
private  double[] dsl
          Slice Values of Diameter/Distance for Fiber or Particle, (Fiber or Particle +) Interphase, Matrix or Binder.
private  java.awt.TextField[] entrySliceX
          Textfields for entering Number of Subslices.
private  java.awt.TextField[] entrySliceY
          Textfields for entering Number of Subslices.
private  int fiberOrParticle
          Either MaterialProperty.PROPERTY_TYPE_FIBER or MaterialProperty.PROPERTY_TYPE_PARTICLE: used to determine whether the analysis is 2D or 3D, respectively.
private static double FOURTHPI
          The number (pi / 4).
private  java.awt.GridBagConstraints gbc
          GridBag Layout constraints.
private  java.awt.GridBagLayout gbl
          GridBag Layout manager.
private static double HALF
          The number one half.
private static int iAccept
          Accept Button verifies data and processes Subslice data.
private static int iCancel
          Cancel Button exits this screen and discards any data entered.
private static int iClear
          Clear Button clears data entry fields.
private static int iCompute
          Compute Button computes and displays Subslice data.
private static int iDetail
          Compute Button computes and displays Subslice data and table of individual Subslices.
private static int iExit
          Exit Button exits the entire program.
private static int iF
          Index of Fiber or Particle variables.
private static int iFX
          Index of Fiber or Particle X variables.
private static int iFY
          Index of Fiber or Particle Y variables.
private static int iHelp
          Help Button displays information on this window.
private static int iI
          Index of Interphase variables.
private static int iIX
          Index of Interphase X variables.
private static int iIY
          Index of Interphase Y variables.
private  int iLbl
          Index for lblData.
private static int iM
          Index of Matrix or Binder variables.
private static int iMX
          Index of Matrix or Binder X variables.
private static int iMY
          Index of Matrix or Binder Y variables.
private  int iPly
          Index of invoking Slice button corresponding to Ply number or range.
private  int iPS
          0 for Primary, 1 for Secondary.
private  int iSlice
          Index of slices in Substructure Subslice table.
private  boolean isUpdated
          Boolean: true if Substructure Subslice data has been computed for current Number of Subslices.
private  double[] k
          Original Volume ratios for Fiber or Particle, Interphase, Matrix or Binder.
private  double[] ksl
          Slice Volume ratios for Fiber or Particle, Interphase, Matrix or Binder.
private  java.awt.Label[] lblDataCol
          (Column) Labels in Subslice Data table.
private static java.awt.Label lblDataTitle
          Label for title of Subslice Data table.
private  java.awt.Label[][] lblDataVar
          Labels for Subslice Data table fields.
private  java.awt.Label[] lblDescr
          Labels for descriptions at top of window.
private  java.lang.String[] materialCode
          Strings containing the Materal codes for Fiber or Particle, Interphase, Matrix or Binder.
private static int nButtons
          Number of action buttons.
private  int nDataCols
          Number of data columns in Subslice Data table.
private  int nDataRows
          Number of data rows in Subslice Data table.
private  int nDescrs
          Number of descriptive labels at top of window.
private  int nDiameters
          Number of fiber diameters to subslice in 1(X) direction.
private  int nGbDataCols
          Number of GridBag columns in Subslice Data table.
private static int nset
          Number of Fiber or Particle, Interphase, and Matrix or Binder indices.
private static int Nset
          Number of Fiber or Particle, Interphase, and Matrix or Binder indices.
private  int[] nSubslices
          Values of the number of Subslices for Fiber or Particle, Interphase, Matrix or Binder.
private  int nSubsliceX
          Number of subslices in the 1(X) direction.
private  int nSubsliceY
          Number of subslices in the 2(Y) direction.
private  int nTotalSubslices
          Computed total number of Slices in Substructure range.
private  java.awt.Panel panelFrame
          The Panel that contains the data to be displayed within a scrolling frame.
private  double plyThickness
          Value of Ply thickness (for each Ply in range).
private  java.awt.Component saveCompFocus
          Component to set focus to.
private  java.awt.ScrollPane scrollFrame
          The scrolling frame in which the data is displayed.
private  java.lang.String sID
          Slice ID.
private static double SIXTHPI
          The number (pi / 6).
private  double sliceHi
          Location of top of slice.
private  double sliceLo
          Location of bottom of slice.
private  java.lang.String[] sliceThru
          Strings containing: "Fiber" or "Particle", "Interphase", and "Matrix" or "Binder".
private static java.lang.String[] sPSs
          Strings used to print either primary or secondary material data.
private  double[] sThickX
          Computed Slice Thicknesses for Fiber or Particle, Interphase, Matrix or Binder.
private  double[] sThickY
          Computed Slice Thicknesses for Fiber or Particle, Interphase, Matrix or Binder.
private  java.lang.String[] subDefect
          Array of ID's at which defect was set, of the form ply:box:slice::Nx:Ny.
private  GuiIcanDataSliceTable that
          Instance of caller: GuiIcanDataSliceTable.
 
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
 
Constructor Summary
GuiIcanDataSubslice(GuiIcanDataSliceTable that, java.lang.String[] descr, int iPly, int iPS, java.lang.String[] materialCode, double[] k, double[] ksl, double[] d, double plyThickness, int fiberOrParticle, java.lang.String sID, double boxLo, double sliceLo, double sliceHi, int[] nSubslices, java.lang.String[] subDefect)
          Constructor creates windows to display text entry fields, buttons, and table of subslices.
 
Method Summary
private  boolean acceptSubslicing()
          Check whether Substructure data is valid.
 void actionPerformed(java.awt.event.ActionEvent evt)
          Detect Action Events and process accordingly
private  void computeVars()
          Compute dynamic fields for Substructure Subslice Data and Substructure Subslice tables.
 void doArrow(int key)
          Process arrow key to move focus.
 void focusGained(java.awt.event.FocusEvent evt)
          Find The TextField with Focus if Focus Is Gained
 void focusLost(java.awt.event.FocusEvent evt)
          Does Nothing
 java.lang.String getName()
          Get class name.
 void helpMe()
          Display help message.
 void helpMe(java.awt.Component target)
          Display help message for a specified component.
protected  void initMe()
          Creates and displays main Substructure window and Slice table window.
 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 presetData()
          Set title and other ICAN/JAVA data.
 void remove()
          Dispose of any components required before disposing of parent.
private  void saveData()
          Save Substructure data.
private  void setClearData()
          Clear text data entry fields.
 void setCompFocus()
          Set focus to some component.
 void setCompFocus(java.awt.Component cFocus)
          Set focus in current class/frame.
 void setSubDefect(java.lang.String[] subDefect)
          Set the subslice defect list created in GuiIcanDataSubsliceTable.
private  void setVarsGui()
          Set dynamic fields for Substructure SubsliceData and Substructure Subslice tables into GUI.
 void windowActivated(java.awt.event.WindowEvent evt)
          Does nothing.
 void windowClosed(java.awt.event.WindowEvent evt)
          Does nothing.
 void windowClosing(java.awt.event.WindowEvent evt)
          Checks to make sure you want to exit
 void windowDeactivated(java.awt.event.WindowEvent evt)
          Does nothing.
 void windowDeiconified(java.awt.event.WindowEvent evt)
          Does nothing.
 void windowIconified(java.awt.event.WindowEvent evt)
          Does nothing.
 void windowOpened(java.awt.event.WindowEvent evt)
          Does nothing.
 
Methods inherited from class java.awt.Frame
addNotify, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setVisible, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, 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, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusDownCycle, update, 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, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getParent, getPeer, 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, isOpaque, 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, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, 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
 

Field Detail

that

private GuiIcanDataSliceTable that
Instance of caller: GuiIcanDataSliceTable.


gbl

private java.awt.GridBagLayout gbl
GridBag Layout manager.


gbc

private java.awt.GridBagConstraints gbc
GridBag Layout constraints.


iPly

private int iPly
Index of invoking Slice button corresponding to Ply number or range.


iPS

private int iPS
0 for Primary, 1 for Secondary.


sPSs

private static final java.lang.String[] sPSs
Strings used to print either primary or secondary material data.


descr

private java.lang.String[] descr
Descriptive titles at top of window.


nDescrs

private int nDescrs
Number of descriptive labels at top of window.


lblDescr

private java.awt.Label[] lblDescr
Labels for descriptions at top of window.


plyThickness

private double plyThickness
Value of Ply thickness (for each Ply in range).


sID

private java.lang.String sID
Slice ID.


sliceLo

private double sliceLo
Location of bottom of slice.


sliceHi

private double sliceHi
Location of top of slice.


boxLo

private double boxLo
Location of bottom edge of box containing the fiber or particle.


fiberOrParticle

private int fiberOrParticle
Either MaterialProperty.PROPERTY_TYPE_FIBER or MaterialProperty.PROPERTY_TYPE_PARTICLE: used to determine whether the analysis is 2D or 3D, respectively.


iF

private static final int iF
Index of Fiber or Particle variables.

See Also:
Constant Field Values

iI

private static final int iI
Index of Interphase variables.

See Also:
Constant Field Values

iM

private static final int iM
Index of Matrix or Binder variables.

See Also:
Constant Field Values

nset

private static final int nset
Number of Fiber or Particle, Interphase, and Matrix or Binder indices.

See Also:
Constant Field Values

iFX

private static final int iFX
Index of Fiber or Particle X variables.

See Also:
Constant Field Values

iIX

private static final int iIX
Index of Interphase X variables.

See Also:
Constant Field Values

iMX

private static final int iMX
Index of Matrix or Binder X variables.

See Also:
Constant Field Values

iFY

private static final int iFY
Index of Fiber or Particle Y variables.

See Also:
Constant Field Values

iIY

private static final int iIY
Index of Interphase Y variables.

See Also:
Constant Field Values

iMY

private static final int iMY
Index of Matrix or Binder Y variables.

See Also:
Constant Field Values

Nset

private static final int Nset
Number of Fiber or Particle, Interphase, and Matrix or Binder indices.

See Also:
Constant Field Values

lblDataTitle

private static final java.awt.Label lblDataTitle
Label for title of Subslice Data table.


dataColTitle

private java.lang.String[][] dataColTitle
Titles for columns in Subslice Data table.


nDataCols

private int nDataCols
Number of data columns in Subslice Data table.


nGbDataCols

private int nGbDataCols
Number of GridBag columns in Subslice Data table.


lblDataCol

private java.awt.Label[] lblDataCol
(Column) Labels in Subslice Data table.


dataRowTitle

private java.lang.String[] dataRowTitle
Titles for (column 1) rows in Subslice Data table.


nDataRows

private int nDataRows
Number of data rows in Subslice Data table.


entrySliceX

private java.awt.TextField[] entrySliceX
Textfields for entering Number of Subslices. Number of subslices through:
  1. Fiber or Particle
  2. Interphase - same value is used (strictly) above and below Fiber or Particle.
  3. Matrix or Binder - same number is used (strictly) above and below any Interphase.


entrySliceY

private java.awt.TextField[] entrySliceY
Textfields for entering Number of Subslices. Number of subslices through:
  1. Fiber or Particle
  2. Interphase - same value is used (strictly) above and below Fiber or Particle.
  3. Matrix or Binder - same number is used (strictly) above and below any Interphase.


nSubslices

private int[] nSubslices
Values of the number of Subslices for Fiber or Particle, Interphase, Matrix or Binder.


lblDataVar

private java.awt.Label[][] lblDataVar
Labels for Subslice Data table fields.
  1. Fiber or Particle
    • Material Code
    • Number of Subslices (actually a TextField: see entrySliceX)
    • Number of Subslices (actually a TextField: see entrySliceY)
    • Volume Ratio
    • Diameter or Distance - diameter of Fiber or Particle
    • Slice Thickness - Fiber or Particle diameter / Number of Subslices
  2. Interphase
    • Material Code
    • Number of Subslices - strictly above or below Fiber or Particle (actually a TextField: see entrySliceX)
    • Number of Subslices - strictly above or below Fiber or Particle (actually a TextField: see entrySliceY)
    • Volume Ratio
    • Diameter or Distance - diameter of Fiber or Particle + Interphase
    • Slice Thickness - Interphase annulus (above or below Fiber or Particle) / Number of Subslices
  3. Matrix or Binder
    • Material Code
    • Number of Subslices - strictly above or below any Interphase (actually a TextField: see entrySliceX)
    • Number of Subslices - strictly above or below any Interphase (actually a TextField: see entrySliceY)
    • Volume Ratio
    • Diameter or Distance - Substructure height
    • Slice Thickness - Matrix or Binder (strictly above or below any Interphase) / Number of Subslices
  4. Number of Diameters (only for fibers)
  5. Number of Subslices (in each direction)
  6. Total Number of Subslices

See Also:
entrySliceX, entrySliceY

sliceThru

private java.lang.String[] sliceThru
Strings containing: "Fiber" or "Particle", "Interphase", and "Matrix" or "Binder".


materialCode

private java.lang.String[] materialCode
Strings containing the Materal codes for Fiber or Particle, Interphase, Matrix or Binder.


k

private double[] k
Original Volume ratios for Fiber or Particle, Interphase, Matrix or Binder.


ksl

private double[] ksl
Slice Volume ratios for Fiber or Particle, Interphase, Matrix or Binder.


d

private double[] d
Original Values of Diameter/Distance for Fiber or Particle, (Fiber or Particle +) Interphase, Matrix or Binder.

See Also:
lblDataVar

dsl

private double[] dsl
Slice Values of Diameter/Distance for Fiber or Particle, (Fiber or Particle +) Interphase, Matrix or Binder.

See Also:
lblDataVar

sThickX

private double[] sThickX
Computed Slice Thicknesses for Fiber or Particle, Interphase, Matrix or Binder.

See Also:
lblDataVar

sThickY

private double[] sThickY
Computed Slice Thicknesses for Fiber or Particle, Interphase, Matrix or Binder.

See Also:
lblDataVar

nSubsliceX

private int nSubsliceX
Number of subslices in the 1(X) direction.


nSubsliceY

private int nSubsliceY
Number of subslices in the 2(Y) direction.


nTotalSubslices

private int nTotalSubslices
Computed total number of Slices in Substructure range.


nDiameters

private int nDiameters
Number of fiber diameters to subslice in 1(X) direction.


iAccept

private static final int iAccept
Accept Button verifies data and processes Subslice data.

See Also:
Constant Field Values

iCompute

private static final int iCompute
Compute Button computes and displays Subslice data.

See Also:
Constant Field Values

iDetail

private static final int iDetail
Compute Button computes and displays Subslice data and table of individual Subslices.

See Also:
Constant Field Values

iHelp

private static final int iHelp
Help Button displays information on this window.

See Also:
Constant Field Values

iClear

private static final int iClear
Clear Button clears data entry fields.

See Also:
Constant Field Values

iCancel

private static final int iCancel
Cancel Button exits this screen and discards any data entered.

See Also:
Constant Field Values

iExit

private static final int iExit
Exit Button exits the entire program.
To exit just this screen, see Accept or Cancel.

See Also:
iAccept, iCancel, Constant Field Values

buttonLabels

private static final java.lang.String[] buttonLabels
Labels to display on action buttons.


nButtons

private static final int nButtons
Number of action buttons.


buttons

private java.awt.Button[] buttons
Action buttons.


scrollFrame

private java.awt.ScrollPane scrollFrame
The scrolling frame in which the data is displayed.


panelFrame

private java.awt.Panel panelFrame
The Panel that contains the data to be displayed within a scrolling frame.


iSlice

private int iSlice
Index of slices in Substructure Subslice table.


iLbl

private int iLbl
Index for lblData.


subDefect

private java.lang.String[] subDefect
Array of ID's at which defect was set, of the form ply:box:slice::Nx:Ny.


isUpdated

private boolean isUpdated
Boolean: true if Substructure Subslice data has been computed for current Number of Subslices.

See Also:
entrySliceX, entrySliceY

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

FOURTHPI

private static final double FOURTHPI
The number (pi / 4).

See Also:
Constant Field Values

SIXTHPI

private static final double SIXTHPI
The number (pi / 6).

See Also:
Constant Field Values

BLANKS

private static final java.lang.String BLANKS
Constant blanks used for padding.

See Also:
Constant Field Values
Constructor Detail

GuiIcanDataSubslice

public GuiIcanDataSubslice(GuiIcanDataSliceTable that,
                           java.lang.String[] descr,
                           int iPly,
                           int iPS,
                           java.lang.String[] materialCode,
                           double[] k,
                           double[] ksl,
                           double[] d,
                           double plyThickness,
                           int fiberOrParticle,
                           java.lang.String sID,
                           double boxLo,
                           double sliceLo,
                           double sliceHi,
                           int[] nSubslices,
                           java.lang.String[] subDefect)
Constructor creates windows to display text entry fields, buttons, and table of subslices.

Parameters:
that - Instance of caller: GuiIcanDataSliceTable.
descr - The title and description and section of the ICAN/JAVA run.
iPly - Subscript of Ply range data.
iPS - 0 for Primary, 1 for Secondary.
materialCode - Material code for fiber or particle, interphase, matrix or binder.
k - Original Volume ratio for Fiber or particle, Interphase, Matrix or binder.
ksl - Slice Volume ratio for Fiber or particle, Interphase, Matrix or binder.
d - Array of diameter/distances.
plyThickness - Thickness of this Ply.
fiberOrParticle - See MaterialDataBank.MaterialProperty.PROPERTY_TYPE_FIBER or MaterialDataBank.MaterialProperty.PROPERTY_TYPE_PARTICLE to determine whether 2-D or 3-D analysis is required.
sID - Slice ID.
boxLo - Location of bottom edge of box containing the fiber or particle.
sliceLo - Location of bottom of slice.
sliceHi - Location of top of slice.
nSubslices - Array containing number of subslices of each type (F/P, I, or M/B) to initialize the class for.
subDefect - Array of ID's at which defect was set.
See Also:
MaterialProperty.PROPERTY_TYPE_FIBER, MaterialProperty.PROPERTY_TYPE_PARTICLE
Method Detail

initMe

protected void initMe()
Creates and displays main Substructure window and Slice table window. Main window contains: descriptions, Substructure Selection and Substructure Data tables, and buttons.


computeVars

private void computeVars()
Compute dynamic fields for Substructure Subslice Data and Substructure Subslice tables.


setVarsGui

private void setVarsGui()
Set dynamic fields for Substructure SubsliceData and Substructure Subslice tables into GUI.


remove

public void remove()
Dispose of any components required before disposing of parent.


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.

setSubDefect

public void setSubDefect(java.lang.String[] subDefect)
Set the subslice defect list created in GuiIcanDataSubsliceTable.

Parameters:
subDefect - Array of ID's at which defect was set, of the form ply:box:slice::Nx:Ny.
See Also:
GuiIcanDataSubsliceTable

focusGained

public void focusGained(java.awt.event.FocusEvent evt)
Find The TextField with Focus if Focus Is Gained

Specified by:
focusGained in interface java.awt.event.FocusListener
Parameters:
evt - Focus event.

focusLost

public void focusLost(java.awt.event.FocusEvent evt)
Does Nothing

Specified by:
focusLost in interface java.awt.event.FocusListener
Parameters:
evt - Focus event.

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.

doArrow

public void doArrow(int key)
Process arrow key to move focus.

Parameters:
key - Arrow key entered.

helpMe

public void helpMe()
Display help message.


helpMe

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

Parameters:
target - Component for which help is desired.

setClearData

private void setClearData()
Clear text data entry fields.


presetData

public void presetData()
Set title and other ICAN/JAVA data. If ICAN/JAVA data initialized, use it to initialize the Substructure inputs.


setCompFocus

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


setCompFocus

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

Parameters:
cFocus - Component to save to reset later.

saveData

private void saveData()
Save Substructure data.


acceptSubslicing

private boolean acceptSubslicing()
Check whether Substructure data is valid.

Returns:
True, if Substructure data is valid; False otherwise.

windowOpened

public void windowOpened(java.awt.event.WindowEvent evt)
Does nothing.

Specified by:
windowOpened in interface java.awt.event.WindowListener
Parameters:
evt - Window event.

windowClosing

public void windowClosing(java.awt.event.WindowEvent evt)
Checks to make sure you want to exit

Specified by:
windowClosing in interface java.awt.event.WindowListener
Parameters:
evt - Window event.

windowClosed

public void windowClosed(java.awt.event.WindowEvent evt)
Does nothing.

Specified by:
windowClosed in interface java.awt.event.WindowListener
Parameters:
evt - Window event.

windowIconified

public void windowIconified(java.awt.event.WindowEvent evt)
Does nothing.

Specified by:
windowIconified in interface java.awt.event.WindowListener
Parameters:
evt - Window event.

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent evt)
Does nothing.

Specified by:
windowDeiconified in interface java.awt.event.WindowListener
Parameters:
evt - Window event.

windowActivated

public void windowActivated(java.awt.event.WindowEvent evt)
Does nothing.

Specified by:
windowActivated in interface java.awt.event.WindowListener
Parameters:
evt - Window event.

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent evt)
Does nothing.

Specified by:
windowDeactivated in interface java.awt.event.WindowListener
Parameters:
evt - Window event.

getName

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

Overrides:
getName in class java.awt.Component
Returns:
Class name.