|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Window java.awt.Frame IcanGui.GuiIcanDataSubsliceTable
public class GuiIcanDataSubsliceTable
Class to create Substructure Subslice table.
Nested Class Summary | |
---|---|
(package private) class |
GuiIcanDataSubsliceTable.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.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
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
Values of Diameter/Distance for Fiber or Particle, (Fiber or Particle +) Interphase, Matrix or Binder. |
private java.lang.String[] |
descr
Title and description of the ICAN/JAVA run and ply data. |
private double[] |
dsl
Values of Diameter/Distance for Fiber or Particle, (Fiber or Particle +) Interphase, Matrix or Binder. |
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 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 Substructure 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 |
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 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 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[] |
lblDescr
Labels for descriptions at top of window. |
private java.awt.Label[][] |
lblSliceCol
(Column) Labels in Substructure Subslice table. |
private java.awt.Label[] |
lblSliceTotals
Totals for columns in Substructure Subslice table. |
private java.awt.Label[][] |
lblSubsliceVar
Labels in Substructure Subslice fields. |
private java.lang.String[] |
materialCode
Strings containing the Materal codes for Fiber or Particle, Interphase, Matrix or Binder. |
private GuiIcanDataSubsliceTable.Madapter |
myMadapter
Mouse Adapter to handle mouse entering the window for the first time and right clicks. |
private static int |
nButtons
Number of action buttons. |
private int |
nDefect
Number of defects set. |
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 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 |
nSliceCols
Number of Columns in Substructure Subslice table. |
private int |
nSlicesTotal
Computed total number of Slices in Substructure range. |
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 java.awt.Panel[] |
panelCol
Panel containing user's Substructure data table columns. |
private java.awt.Panel |
panelFrame
The Panel that contains the data to be displayed within a scrolling frame. |
private java.awt.Panel |
panelUser
Panel containing user's Subslice data table. |
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 java.lang.String[][] |
sliceColTitle
Titles for columns in Substructure Subslice table. |
private java.awt.Checkbox[] |
sliceDefect
Checkbox to indicate whether Substructure Subslice has a defect. |
private double |
sliceHi
Location of top of slice. |
private double |
sliceLo
Location of bottom of slice. |
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 GuiIcanDataSubslice |
that
Instance of caller: GuiIcanDataSubslice. |
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 | |
---|---|
GuiIcanDataSubsliceTable(GuiIcanDataSubslice that,
java.lang.String[] descr,
int iPly,
int iPS,
java.lang.String[] materialCode,
double[] k,
double[] ksl,
double[] d,
double[] dsl,
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 | |
---|---|
boolean |
acceptSlicing()
Check for valid combination of Defect. |
void |
actionPerformed(java.awt.event.ActionEvent evt)
Detect Action Events and process accordingly |
private boolean |
addIcanDataUser()
Add a set of Subslice input data for each subslice. |
void |
doArrow(int key)
Process arrow key to move focus. |
void |
focusGained(java.awt.event.FocusEvent evt)
Does Nothing |
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()
|
boolean |
isDefect(java.lang.String subID)
Is there a defect at this slot? |
void |
keyPressed(java.awt.event.KeyEvent evt)
Makes sure that keys are not processed twice. |
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()
Remove buttons and labels to destroy window. |
void |
saveDefect()
Save defect data for subslices. |
void |
setCompFocus()
Set focus to some component. |
void |
setCompFocus(java.awt.Component cFocus)
Set focus in current class/frame. |
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, finalize, 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, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, 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, transferFocusBackward, 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, 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, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
---|
getFont, postEvent |
Field Detail |
---|
private GuiIcanDataSubslice that
private java.awt.Panel panelUser
private java.awt.Panel[] panelCol
private java.awt.GridBagLayout gbl
private java.awt.GridBagConstraints gbc
private int iPly
private int iPS
private java.lang.String[] descr
private int nDescrs
private java.awt.Label[] lblDescr
private double plyThickness
private java.lang.String sID
private double sliceLo
private double sliceHi
private double boxLo
private int fiberOrParticle
private static final int iF
private static final int iI
private static final int iM
private static final int nset
private static final int iFX
private static final int iIX
private static final int iMX
private static final int iFY
private static final int iIY
private static final int iMY
private static final int Nset
private int[] nSubslices
private java.lang.String[] materialCode
private double[] k
private double[] ksl
private double[] d
private double[] dsl
private double[] sThickX
private double[] sThickY
private int nSubsliceX
private int nSubsliceY
private int nSlicesTotal
private int nDiameters
private static final java.lang.String[][] sliceColTitle
private int nSliceCols
private java.awt.Label[][] lblSliceCol
private java.awt.Label[] lblSliceTotals
private java.awt.Label[][] lblSubsliceVar
private java.awt.Checkbox[] sliceDefect
private java.lang.String[] subDefect
private int nDefect
private int iSlice
private java.awt.Component saveCompFocus
private static final double HALF
private static final int iAccept
private static final int iHelp
private static final int iClear
private static final int iCancel
private static final int iExit
iAccept
,
iCancel
,
Constant Field Valuesprivate static final java.lang.String[] buttonLabels
private static final int nButtons
private java.awt.Button[] buttons
private java.awt.ScrollPane scrollFrame
private java.awt.Panel panelFrame
private GuiIcanDataSubsliceTable.Madapter myMadapter
Constructor Detail |
---|
public GuiIcanDataSubsliceTable(GuiIcanDataSubslice that, java.lang.String[] descr, int iPly, int iPS, java.lang.String[] materialCode, double[] k, double[] ksl, double[] d, double[] dsl, double plyThickness, int fiberOrParticle, java.lang.String sID, double boxLo, double sliceLo, double sliceHi, int[] nSubslices, java.lang.String[] subDefect)
that
- Instance of caller: GuiIcanDataSliceTable.descr
- The title and description and which portion
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
- Original Array of diameter/distances.dsl
- Slice 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.MaterialProperty.PROPERTY_TYPE_FIBER
,
MaterialProperty.PROPERTY_TYPE_PARTICLE
Method Detail |
---|
protected void initMe()
private boolean addIcanDataUser()
public boolean isDefect(java.lang.String subID)
subID
- Subslice ID in the form ply:box:slice::Nx:Ny.
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
evt
- Action event.public boolean acceptSlicing()
public void saveDefect()
public void helpMe()
public void helpMe(java.awt.Component target)
target
- Component for which help is desired.public void remove()
public void windowActivated(java.awt.event.WindowEvent evt)
windowActivated
in interface java.awt.event.WindowListener
evt
- Window event.public void windowDeactivated(java.awt.event.WindowEvent evt)
windowDeactivated
in interface java.awt.event.WindowListener
evt
- Window event.public void windowIconified(java.awt.event.WindowEvent evt)
windowIconified
in interface java.awt.event.WindowListener
evt
- Window event.public void windowDeiconified(java.awt.event.WindowEvent evt)
windowDeiconified
in interface java.awt.event.WindowListener
evt
- Window event.public void windowOpened(java.awt.event.WindowEvent evt)
windowOpened
in interface java.awt.event.WindowListener
evt
- Window event.public void windowClosed(java.awt.event.WindowEvent evt)
windowClosed
in interface java.awt.event.WindowListener
evt
- Window event.public void windowClosing(java.awt.event.WindowEvent evt)
windowClosing
in interface java.awt.event.WindowListener
evt
- Window event.public void keyTyped(java.awt.event.KeyEvent evt)
keyTyped
in interface java.awt.event.KeyListener
evt
- Key event.public void keyPressed(java.awt.event.KeyEvent evt)
keyPressed
in interface java.awt.event.KeyListener
evt
- Key event.public void keyReleased(java.awt.event.KeyEvent evt)
keyReleased
in interface java.awt.event.KeyListener
evt
- Key event.public void doArrow(int key)
key
- Arrow key entered.public void focusGained(java.awt.event.FocusEvent evt)
focusGained
in interface java.awt.event.FocusListener
evt
- Focus event.public void focusLost(java.awt.event.FocusEvent evt)
focusLost
in interface java.awt.event.FocusListener
evt
- Focus event.public void presetData()
public void setCompFocus()
public void setCompFocus(java.awt.Component cFocus)
cFocus
- Component to save to reset later.public java.lang.String getName()
getName
in class java.awt.Component
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |