Class JPanelDTIVisualization
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- gov.nih.mipav.view.renderer.WildMagic.DTI_FrameWork.JPanelDTIVisualization
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.io.Serializable
,java.util.EventListener
,javax.accessibility.Accessible
public class JPanelDTIVisualization extends javax.swing.JPanel implements java.awt.event.ActionListener
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JButton
loadButton
Button enabled when all required images are loaded.private ModelImage
m_kAnisotropyImage
Anisotropy image *private ModelImage
m_kDTIColorImage
result image *private ModelImage
m_kDTIImage
Diffusion Tensor image.private ModelImage
m_kEigenValueImage
EigenValue image *private ModelImage
m_kEigenVectorImage
Eigenvector image *private ModelImage
m_kT2Image
Anisotropy image *private java.io.File
m_kTractFile
Tract input file.private javax.swing.JTextField
m_kTractPath
Fiber bundle tract file input path name text box.private javax.swing.JPanel
mainPanel
main panel *private javax.swing.JDialog
parentFrame
Parent dialog, when this panel is created as a stand-alone dialog: *private static long
serialVersionUID
private javax.swing.JTextField
textDTIColorImage
Text boxes for the tensor, color image, eigen vector, eigen value, and functional anisotropy files:private javax.swing.JTextField
textDTIimage
Text boxes for the tensor, color image, eigen vector, eigen value, and functional anisotropy files:private javax.swing.JTextField
textEValueImage
Text boxes for the tensor, color image, eigen vector, eigen value, and functional anisotropy files:private javax.swing.JTextField
textEVimage
Text boxes for the tensor, color image, eigen vector, eigen value, and functional anisotropy files:private javax.swing.JTextField
textFAimage
Text boxes for the tensor, color image, eigen vector, eigen value, and functional anisotropy files:private javax.swing.JTextField
textT2image
Text boxes for the tensor, color image, eigen vector, eigen value, and functional anisotropy files:-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor Description JPanelDTIVisualization(javax.swing.JDialog parent, boolean bStandAlone)
Creates the DTI Visualization panel inside the parent dialog.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent event)
private void
buildDTIColorLoadPanel()
private void
buildDTILoadPanel()
private void
buildEValueLoadPanel()
private void
buildEVLoadPanel()
private void
buildFALoadPanel()
private void
buildT2LoadPanel()
static void
createFrame()
Creates as stand-alone dialog with the interface:void
disposeLocal(boolean bDispose)
Dispose memory.void
enableLoad()
private void
init(boolean bStandAlone)
private void
loadDTIColorFile()
private void
loadDTIFile()
Launches the JFileChooser for the user to select the Diffusion Tensor Image.private void
loadEValueFile()
private void
loadEVFile()
private void
loadFAFile()
private void
loadT2File()
private void
loadTractFile()
Launches the JFileChooser for the user to select the tract file.void
setDTIColorImage(ModelImage dtiColorImage)
Set the DTI Color imagevoid
setDTIImage(ModelImage dtiImage)
Set the DTI imagevoid
setEValueImage(ModelImage evImage)
Set the eigen value imagevoid
setEVImage(ModelImage evImage)
Set the eigen vector imagevoid
setFAImage(ModelImage faImage)
Set the functional anisotropy imagevoid
setTractFile(java.lang.String tractFileName)
-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, 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, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
loadButton
private javax.swing.JButton loadButton
Button enabled when all required images are loaded. Pressing 'Load' launches the Volume DTI Renderer.
-
m_kT2Image
private ModelImage m_kT2Image
Anisotropy image *
-
m_kAnisotropyImage
private ModelImage m_kAnisotropyImage
Anisotropy image *
-
m_kDTIColorImage
private ModelImage m_kDTIColorImage
result image *
-
m_kDTIImage
private ModelImage m_kDTIImage
Diffusion Tensor image.
-
m_kEigenValueImage
private ModelImage m_kEigenValueImage
EigenValue image *
-
m_kEigenVectorImage
private ModelImage m_kEigenVectorImage
Eigenvector image *
-
m_kTractFile
private java.io.File m_kTractFile
Tract input file.
-
m_kTractPath
private javax.swing.JTextField m_kTractPath
Fiber bundle tract file input path name text box.
-
mainPanel
private javax.swing.JPanel mainPanel
main panel *
-
parentFrame
private final javax.swing.JDialog parentFrame
Parent dialog, when this panel is created as a stand-alone dialog: *
-
textDTIimage
private javax.swing.JTextField textDTIimage
Text boxes for the tensor, color image, eigen vector, eigen value, and functional anisotropy files:
-
textDTIColorImage
private javax.swing.JTextField textDTIColorImage
Text boxes for the tensor, color image, eigen vector, eigen value, and functional anisotropy files:
-
textEVimage
private javax.swing.JTextField textEVimage
Text boxes for the tensor, color image, eigen vector, eigen value, and functional anisotropy files:
-
textEValueImage
private javax.swing.JTextField textEValueImage
Text boxes for the tensor, color image, eigen vector, eigen value, and functional anisotropy files:
-
textFAimage
private javax.swing.JTextField textFAimage
Text boxes for the tensor, color image, eigen vector, eigen value, and functional anisotropy files:
-
textT2image
private javax.swing.JTextField textT2image
Text boxes for the tensor, color image, eigen vector, eigen value, and functional anisotropy files:
-
-
Method Detail
-
createFrame
public static void createFrame()
Creates as stand-alone dialog with the interface:
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
- Specified by:
actionPerformed
in interfacejava.awt.event.ActionListener
-
disposeLocal
public void disposeLocal(boolean bDispose)
Dispose memory.
-
enableLoad
public void enableLoad()
-
setDTIColorImage
public void setDTIColorImage(ModelImage dtiColorImage)
Set the DTI Color image- Parameters:
DTI
- Color Image
-
setDTIImage
public void setDTIImage(ModelImage dtiImage)
Set the DTI image- Parameters:
DTI
- image
-
setEValueImage
public void setEValueImage(ModelImage evImage)
Set the eigen value image- Parameters:
eigen
- value image
-
setEVImage
public void setEVImage(ModelImage evImage)
Set the eigen vector image- Parameters:
eigen
- vector image
-
setFAImage
public void setFAImage(ModelImage faImage)
Set the functional anisotropy image- Parameters:
eigen
- vector image
-
setTractFile
public void setTractFile(java.lang.String tractFileName)
-
buildDTIColorLoadPanel
private void buildDTIColorLoadPanel()
-
buildDTILoadPanel
private void buildDTILoadPanel()
-
buildEValueLoadPanel
private void buildEValueLoadPanel()
-
buildEVLoadPanel
private void buildEVLoadPanel()
-
buildFALoadPanel
private void buildFALoadPanel()
-
buildT2LoadPanel
private void buildT2LoadPanel()
-
init
private void init(boolean bStandAlone)
-
loadDTIColorFile
private void loadDTIColorFile()
-
loadDTIFile
private void loadDTIFile()
Launches the JFileChooser for the user to select the Diffusion Tensor Image. Loads the tensor data.
-
loadEValueFile
private void loadEValueFile()
-
loadEVFile
private void loadEVFile()
-
loadFAFile
private void loadFAFile()
-
loadT2File
private void loadT2File()
-
loadTractFile
private void loadTractFile()
Launches the JFileChooser for the user to select the tract file. Stores the File for the tract file but does not read the file.
-
-