Class JPanelPositions
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Window
-
- java.awt.Dialog
-
- javax.swing.JDialog
-
- gov.nih.mipav.view.renderer.WildMagic.Interface.JInterfaceBase
-
- gov.nih.mipav.view.renderer.WildMagic.Interface.JPanelPositions
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.io.Serializable
,java.util.EventListener
,javax.accessibility.Accessible
,javax.swing.RootPaneContainer
,javax.swing.WindowConstants
public class JPanelPositions extends JInterfaceBase
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gov.nih.mipav.view.renderer.WildMagic.Interface.JInterfaceBase
JInterfaceBase.CancelListener, JInterfaceBase.DrawingPanel, JInterfaceBase.OkColorListener
-
Nested classes/interfaces inherited from class javax.swing.JDialog
javax.swing.JDialog.AccessibleJDialog
-
Nested classes/interfaces inherited from class java.awt.Dialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
-
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
-
-
Field Summary
Fields Modifier and Type Field Description protected javax.swing.JLabel
absoluteLabel
Labels for the current absolute position:.protected javax.swing.JLabel[]
absoluteLabelVals
Labels for the current absolute position values:.protected javax.swing.JPanel
absolutePanel
JPanel containing the absoulte position labels:.private ModelImage
imageA
protected javax.swing.JLabel
modelViewLabel
Labels for the current position in 3D ModelView coordinates.protected javax.swing.JLabel[]
modelViewLabelVals
Displayed values for the current position in 3D ModelView coordinates.private javax.swing.JRadioButton
neurologicalView
private javax.swing.JPanel
panelLabels
Panel containing the position labels:.protected javax.swing.JLabel
patientSliceLabel
Labels for the current position in PatientSlice coordinates.protected javax.swing.JLabel[]
patientSliceLabelVals
Displayed values for the current position in PatientSlice coordinates.private javax.swing.JRadioButton
radiologicalView
protected javax.swing.JLabel
scannerLabel
Labels for the current scanner position:.protected javax.swing.JLabel[]
scannerLabelVals
Labels for the current scanner position values:.protected javax.swing.JPanel
scannerPanel
JPanel containing the scanner position labels:.private static long
serialVersionUID
-
Fields inherited from class gov.nih.mipav.view.renderer.WildMagic.Interface.JInterfaceBase
cancelButton, colorChooser, m_kVolumeViewer, mainPanel, OKButton, rayBasedRenderWM
-
Fields inherited from class javax.swing.JDialog
accessibleContext, rootPane, rootPaneCheckingEnabled
-
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
-
Constructor Summary
Constructors Constructor Description JPanelPositions(VolumeTriPlanarInterface kVolumeViewer)
3D clipping dialog control.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent event)
void
disposeLocal()
Dispose memory.javax.swing.JPanel
getMainPanel()
Get the main control panel.void
init()
Initializes GUI components.void
resizePanel(int panelWidth, int frameHeight)
Resizing the control panel with ViewJFrameVolumeView's frame width and height.protected void
set3DModelPosition(WildMagic.LibFoundation.Mathematics.Vector3f position)
Sets the 3DModel position label.protected void
setAbsPositionLabels(WildMagic.LibFoundation.Mathematics.Vector3f position)
Sets the Absolute position label.void
setImage(ModelImage kImage)
protected void
setPatientSlicePosition(WildMagic.LibFoundation.Mathematics.Vector3f position)
Sets the PatientSlice position label.void
setPositionLabels(WildMagic.LibFoundation.Mathematics.Vector3f position)
Sets the position labels.void
setRadiological(boolean bOn)
protected void
setScannerPosition(WildMagic.LibFoundation.Mathematics.Vector3f position)
Sets the Scanner position label.-
Methods inherited from class gov.nih.mipav.view.renderer.WildMagic.Interface.JInterfaceBase
buildCancelButton, buildOKButton, buildTitledBorder, setButtonColor, updateColorButton
-
Methods inherited from class javax.swing.JDialog
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
-
Methods inherited from class java.awt.Dialog
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
-
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, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, 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, remove, 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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
modelViewLabel
protected javax.swing.JLabel modelViewLabel
Labels for the current position in 3D ModelView coordinates.
-
modelViewLabelVals
protected javax.swing.JLabel[] modelViewLabelVals
Displayed values for the current position in 3D ModelView coordinates.
-
patientSliceLabel
protected javax.swing.JLabel patientSliceLabel
Labels for the current position in PatientSlice coordinates.
-
patientSliceLabelVals
protected javax.swing.JLabel[] patientSliceLabelVals
Displayed values for the current position in PatientSlice coordinates.
-
absoluteLabel
protected javax.swing.JLabel absoluteLabel
Labels for the current absolute position:.
-
absoluteLabelVals
protected javax.swing.JLabel[] absoluteLabelVals
Labels for the current absolute position values:.
-
absolutePanel
protected javax.swing.JPanel absolutePanel
JPanel containing the absoulte position labels:.
-
scannerLabel
protected javax.swing.JLabel scannerLabel
Labels for the current scanner position:.
-
scannerLabelVals
protected javax.swing.JLabel[] scannerLabelVals
Labels for the current scanner position values:.
-
scannerPanel
protected javax.swing.JPanel scannerPanel
JPanel containing the scanner position labels:.
-
panelLabels
private javax.swing.JPanel panelLabels
Panel containing the position labels:.
-
radiologicalView
private javax.swing.JRadioButton radiologicalView
-
neurologicalView
private javax.swing.JRadioButton neurologicalView
-
imageA
private transient ModelImage imageA
-
-
Constructor Detail
-
JPanelPositions
public JPanelPositions(VolumeTriPlanarInterface kVolumeViewer)
3D clipping dialog control.- Parameters:
kVolumeViewer
- parent frame.
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
-
disposeLocal
public void disposeLocal()
Dispose memory.
-
init
public void init()
Initializes GUI components.
-
getMainPanel
public javax.swing.JPanel getMainPanel()
Description copied from class:JInterfaceBase
Get the main control panel.- Overrides:
getMainPanel
in classJInterfaceBase
- Returns:
- mainPanel the whole control panel.
-
setImage
public void setImage(ModelImage kImage)
-
setRadiological
public void setRadiological(boolean bOn)
-
resizePanel
public void resizePanel(int panelWidth, int frameHeight)
Resizing the control panel with ViewJFrameVolumeView's frame width and height.- Parameters:
panelWidth
- widthframeHeight
- height
-
setPositionLabels
public void setPositionLabels(WildMagic.LibFoundation.Mathematics.Vector3f position)
Sets the position labels.- Parameters:
position
- the slice positions in FileCoordinates.
-
set3DModelPosition
protected void set3DModelPosition(WildMagic.LibFoundation.Mathematics.Vector3f position)
Sets the 3DModel position label.- Parameters:
position
- 3DModel position values.
-
setPatientSlicePosition
protected void setPatientSlicePosition(WildMagic.LibFoundation.Mathematics.Vector3f position)
Sets the PatientSlice position label.- Parameters:
position
- value.
-
setAbsPositionLabels
protected void setAbsPositionLabels(WildMagic.LibFoundation.Mathematics.Vector3f position)
Sets the Absolute position label.- Parameters:
position
- DOCUMENT ME!
-
setScannerPosition
protected void setScannerPosition(WildMagic.LibFoundation.Mathematics.Vector3f position)
Sets the Scanner position label.- Parameters:
position
- DOCUMENT ME!
-
-