Class JPanelSlices
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
gov.nih.mipav.view.renderer.JPanelRendererBase
gov.nih.mipav.view.renderer.J3D.JPanelRendererJ3D
gov.nih.mipav.view.renderer.J3D.surfaceview.JPanelSlices
- All Implemented Interfaces:
ActionListener,FocusListener,ItemListener,KeyListener,MouseListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ChangeListener
Dialog to turn slices bounding box of surface renderer on and off, and to
change the color of the frame. This dialog also control the X, Y, Z slices
movements.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classDoes nothing.(package private) classWrapper in order to hold the control panel layout in the JScrollPane.(package private) classPick up the selected color and call method to change the VOI color.Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate JPanelBounding box control panel.private JCheckBox[]Check box for turning bounding boxes on and off.Check boxes that turn the image plane on and off.Check boxes that turn the image plane on and off.Check boxes that turn the image plane on and off.private JButton[]Color button for changing bounding box color.private ViewJColorChooserColor chooser dialog.private JPanelMain panel for sliders.private intCurrent event vector index.private JLabelLabels next to sliders.private JLabelLabels next to sliders.private JLabelLabels beneath sliders.private JLabelLabels beneath sliders.private JLabelLabels beneath sliders.private JLabelLabels next to sliders.private JLabelLabels beneath sliders.private JLabelLabels beneath sliders.private JLabelLabels beneath sliders.private JLabelLabels next to sliders.private JLabelLabels beneath sliders.private JLabelLabels beneath sliders.private JLabelLabels beneath sliders.private JPanelOpacity control panel.private JLabelThe opacity slider label.private JLabelThe opacity slider label.private JLabelThe opacity slider label.private JLabel[]The labels below the opacity slider.private JLabel[]The labels below the opacity slider.private JLabel[]The labels below the opacity slider.private JSliderOpacity slider, not enabled yet.private JSliderOpacity slider, not enabled yet.private JSliderOpacity slider, not enabled yet.private JScrollPaneThe scroll pane holding the panel content.private JPanelSlices.DrawingPanelScroll panel that holding the all the control components.private static final longUse serialVersionUID for interoperability.private booleanFlag to indicate the first time slider name changes.private WildMagic.LibFoundation.Mathematics.Vector3fboolean[]Flags indicating if the image slices are on or off.Sliders for the image planes.Sliders for the image planes.Sliders for the image planes.Sliders for the image planes.private intx, y, z and time dimension values.private JTextFieldText fields that display the slice number next to the sliders.private JTextFieldText fields that display the slice number next to the sliders.private JTextFieldText fields that display the slice number next to the sliders.private JTextFieldText fields that display the slice number next to the sliders.intWhich time slice is currently displayed.private intx, y, z and time dimension values.private intx, y, z opacity slider values.private intProbe x, y, z position.intWhich slice is currently displayed in the ZY plane.private intx, y, z and time dimension values.private intx, y, z opacity slider values.private intProbe x, y, z position.intWhich slice is currently displayed in the XZ plane.private intx, y, z and time dimension values.private intx, y, z opacity slider values.private intProbe x, y, z position.intWhich slice is currently displayed in the XY plane.Fields inherited from class gov.nih.mipav.view.renderer.J3D.JPanelRendererJ3D
rayBasedRender, renderBaseFields inherited from class gov.nih.mipav.view.renderer.JPanelRendererBase
applyButton, cancelButton, cancelFlag, closeButton, helpButton, isActiveImage, mainPanel, NEW, OKButton, REPLACE, runInSeparateThread, serif12, serif12BFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionJPanelSlices(SurfaceRender parent) Creates new dialog for turning slices bounding box frame on and off. -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Changes color of slices box frame and button if color button was pressed; turns bounding box on and off if checkbox was pressed; and closes dialog if "Close" button was pressed.private voidaddControlPanel(Component c, GridBagConstraints gbc, int x, int y, int w, int h) Helper method that adds components to the control panel for the grid bag layout.private voidaddOpacityControlPanel(Component c, GridBagConstraints gbc, int x, int y, int w, int h) Helper method that adds components to the control panel for the grid bag layout.private voidBuild the boudning box for X, Y, Z slices.voidBuilds panel that has 3 sliders for the 3 planes shown, 3 checkboxes for showing the planes, 3 text boxes for the current values of the sliders, and a fourth slider and text box for the time dimension, if necessary.voidBuilds panel for opacity control change on the triplanar X, Y, Z.voidBuild the slice pickable panelprivate voidBuilds the time (4D) slider.private JLabelcreateLabel(String title) Creates a label in the proper font and color.voidWhen 3D texture volume render is invoked, disable all the slices and bounding frame boxes.voiddispose()Dispose memory.voidEnable slider X, Y, Z and triplanar.getBoxX()Return the checkbox of X slider.getBoxY()Return the checkbox of Y slider.getBoxZ()Return the checkbox of Z slider.WildMagic.LibFoundation.Mathematics.Vector3fGets the three slider positions, representing the center point of the three orthogonal planes.Return the control panel.Return the X opacity slider.Return the Y opacity slider.Return the Z opacity slider.intgetSlice(int orientation) Get the current slider value for the slider that matches the orientation input parameter.Return the X slider.Return the Y slider.Return the Z slider.booleangetVisible(int orientation) slice slider visible or not.intGet the x opacity slider value.intGet the probe x coordinate.intGet the X slider value.intGet the y opacity slider value.intGet the probe y coordinate.intGet the y slider value.intGet the z opacity slider value.intGet the probe z coordinate.intGet the z slider value.voidinit()Initializes GUI components.voidmouseClicked(MouseEvent event) Unchanged.voidmouseEntered(MouseEvent event) Unchanged.voidmouseExited(MouseEvent event) Unchanged.voidmousePressed(MouseEvent event) Unchanged.voidmouseReleased(MouseEvent event) Used in MouseRecorder to stop one series of slide moves.voidresizePanel(int panelWidth, int frameHeight) Resizig the control panel with ViewJFrameVolumeView's frame width and height.protected voidsetBoxColor(JButton button, Color color) Calls the appropriate method in the parent frame.voidsetCenter(int x, int y, int z) Sets the three slider positions, based on the position of the three orthogonal planes: AXIAL, CORONAL, and SAGITTAL.voidsetOpacitySliderXEnabled(boolean flag) Set the opacity slider X with given boolean value.voidsetOpacitySliderYEnabled(boolean flag) Set the opacity slider Y with given boolean value.voidsetOpacitySliderZEnabled(boolean flag) Set the opacity slider Z with given boolean value.voidsetSceneState(Object scene) Sets the scene state appropriately, so that the slices that are supposed to be visible are showing, the ones that aren't are hidden, and the sliders are starting at the appropriate value.voidsetXProbePos(int _xProbe) Set probe x coordinate.private voidsetXSlicePos(int _xSlice) Set the current x slider move position.voidsetXSliderEnabled(boolean flag) Sets the x slider and the labels beside and beneath it to the state given byflag.voidsetYProbePos(int _yProbe) Set probe y coordinate.private voidsetYSlicePos(int _ySlice) Set the current y slider move position.voidsetYSliderEnabled(boolean flag) Sets the y slider and the labels beside and beneath it to the state given byflag.voidsetZProbePos(int _zProbe) Set probe z coordinate.private voidsetZSlicePos(int _zSlice) Set the current z slider move position.voidsetZSliderEnabled(boolean flag) Sets the z slider and the labels beside and beneath it to the state given byflag.voidSets how the image plane should be displayed depending on value of slider.Methods inherited from class gov.nih.mipav.view.renderer.J3D.JPanelRendererJ3D
disposeLocal, getSurfaceRender, setRayBasedRender, setSurfaceRenderMethods inherited from class gov.nih.mipav.view.renderer.JPanelRendererBase
buildApplyButton, buildCancelButton, buildCloseButton, buildHelpButton, buildOKButton, buildTitledBorder, finalize, focusGained, focusLost, isCancelled, itemStateChanged, keyPressed, keyReleased, keyTyped, makeString, setLeftHandSystem, setVisible, setVisibleStandard, setWCSystem, testParameterMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods 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, unregisterKeyboardAction, updateMethods 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, validateTreeMethods 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, transferFocusUpCycleMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.awt.event.FocusListener
focusGained, focusLostMethods inherited from interface java.awt.event.ItemListener
itemStateChangedMethods inherited from interface java.awt.event.KeyListener
keyPressed, keyReleased, keyTyped
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDUse serialVersionUID for interoperability.- See Also:
-
boxX
Check boxes that turn the image plane on and off. -
boxY
Check boxes that turn the image plane on and off. -
boxZ
Check boxes that turn the image plane on and off. -
sliderX
Sliders for the image planes. -
sliderY
Sliders for the image planes. -
sliderZ
Sliders for the image planes. -
sliderT
Sliders for the image planes. -
tSlice
public int tSliceWhich time slice is currently displayed. -
slicePosition
private WildMagic.LibFoundation.Mathematics.Vector3f slicePosition -
xSlice
public int xSliceWhich slice is currently displayed in the ZY plane. -
sliceVisible
public boolean[] sliceVisibleFlags indicating if the image slices are on or off. -
ySlice
public int ySliceWhich slice is currently displayed in the XZ plane. -
zSlice
public int zSliceWhich slice is currently displayed in the XY plane. -
boundingBoxPanel
Bounding box control panel. -
boundingCheck
Check box for turning bounding boxes on and off. -
colorButton
Color button for changing bounding box color. -
colorChooser
Color chooser dialog. -
controlPanel
Main panel for sliders. -
current
private int currentCurrent event vector index. -
labelX
Labels next to sliders. -
labelY
Labels next to sliders. -
labelZ
Labels next to sliders. -
labelT
Labels next to sliders. -
labelX1
Labels beneath sliders. -
labelXMid
Labels beneath sliders. -
labelXEnd
Labels beneath sliders. -
labelY1
Labels beneath sliders. -
labelYMid
Labels beneath sliders. -
labelYEnd
Labels beneath sliders. -
labelZ1
Labels beneath sliders. -
labelZMid
Labels beneath sliders. -
labelZEnd
Labels beneath sliders. -
opacityControlPanel
Opacity control panel. -
opacityLabelX
The opacity slider label. -
opacityLabelY
The opacity slider label. -
opacityLabelZ
The opacity slider label. -
opacitySliderLabelsX
The labels below the opacity slider. -
opacitySliderLabelsY
The labels below the opacity slider. -
opacitySliderLabelsZ
The labels below the opacity slider. -
opacitySliderX
Opacity slider, not enabled yet. -
opacitySliderY
Opacity slider, not enabled yet. -
opacitySliderZ
Opacity slider, not enabled yet. -
scroller
The scroll pane holding the panel content. Useful when the screen is small. -
scrollPanel
Scroll panel that holding the all the control components. -
setSliderFlag
private boolean setSliderFlagFlag to indicate the first time slider name changes. -
textX
Text fields that display the slice number next to the sliders. -
textY
Text fields that display the slice number next to the sliders. -
textZ
Text fields that display the slice number next to the sliders. -
textT
Text fields that display the slice number next to the sliders. -
xDim
private int xDimx, y, z and time dimension values. -
yDim
private int yDimx, y, z and time dimension values. -
zDim
private int zDimx, y, z and time dimension values. -
tDim
private int tDimx, y, z and time dimension values. -
xOpacitySlice
private int xOpacitySlicex, y, z opacity slider values. -
yOpacitySlice
private int yOpacitySlicex, y, z opacity slider values. -
zOpacitySlice
private int zOpacitySlicex, y, z opacity slider values. -
xProbe
private int xProbeProbe x, y, z position. -
yProbe
private int yProbeProbe x, y, z position. -
zProbe
private int zProbeProbe x, y, z position.
-
-
Constructor Details
-
JPanelSlices
Creates new dialog for turning slices bounding box frame on and off.- Parameters:
parent- Should be of type ViewJFrameSurfaceRenderer
-
-
Method Details
-
actionPerformed
Changes color of slices box frame and button if color button was pressed; turns bounding box on and off if checkbox was pressed; and closes dialog if "Close" button was pressed.- Specified by:
actionPerformedin interfaceActionListener- Specified by:
actionPerformedin classJPanelRendererBase- Parameters:
event- Event that triggered function.
-
buildSlicePickPanel
public void buildSlicePickPanel()Build the slice pickable panel -
buildControlPanel
public void buildControlPanel()Builds panel that has 3 sliders for the 3 planes shown, 3 checkboxes for showing the planes, 3 text boxes for the current values of the sliders, and a fourth slider and text box for the time dimension, if necessary. -
buildOpacityPanel
public void buildOpacityPanel()Builds panel for opacity control change on the triplanar X, Y, Z. -
disableSlices
public void disableSlices()When 3D texture volume render is invoked, disable all the slices and bounding frame boxes. -
dispose
public void dispose()Dispose memory. -
enableSlices
public void enableSlices()Enable slider X, Y, Z and triplanar. -
getBoxX
Return the checkbox of X slider.- Returns:
- boxX Get X slider check box.
-
getBoxY
Return the checkbox of Y slider.- Returns:
- boxY Get Y slider check box.
-
getBoxZ
Return the checkbox of Z slider.- Returns:
- boxZ Get Z slider check box.
-
getMainPanel
Return the control panel.- Specified by:
getMainPanelin classJPanelRendererBase- Returns:
- JPanel slices move control panel
-
getOpacitySliderX
Return the X opacity slider.- Returns:
- opcitySliderX Opacity slider X.
-
getOpacitySliderY
Return the Y opacity slider.- Returns:
- opcitySliderY Opacity slider Y.
-
getOpacitySliderZ
Return the Z opacity slider.- Returns:
- opcitySliderZ Opacity slider Z.
-
getSliderX
Return the X slider.- Returns:
- sliderX X slider.
-
getSliderY
Return the Y slider.- Returns:
- sliderY Y slider.
-
getSliderZ
Return the Z slider.- Returns:
- sliderZ Z slider.
-
getXOpacitySlice
public int getXOpacitySlice()Get the x opacity slider value.- Returns:
- xOpacityslice X opacity slider value.
-
getXProbePos
public int getXProbePos()Get the probe x coordinate.- Returns:
- xProbe probe x position
-
getSlice
public int getSlice(int orientation) Get the current slider value for the slider that matches the orientation input parameter.- Parameters:
orientation- either FileInfoBase.AXIAL, FileInfoBase.CORONAL, FileInfoBase.SAGITTAL, or FileInfoBase.UNKNOWN_ORIENT.- Returns:
- The slider position for the given orientation is returned. *
-
setCenter
public void setCenter(int x, int y, int z) Sets the three slider positions, based on the position of the three orthogonal planes: AXIAL, CORONAL, and SAGITTAL.- Parameters:
x- center x-position in FileCoordinatesy- center y-position in FileCoordinatesz- center z-position in FileCoordinates
-
getCenter
public WildMagic.LibFoundation.Mathematics.Vector3f getCenter()Gets the three slider positions, representing the center point of the three orthogonal planes. The center point is translated from local ModelCoordinates into FileCoordinates.- Returns:
- , the center of the three orthogonal planes (the three slider positions) in FileCoordinates.
-
getXSlice
public int getXSlice()Get the X slider value.- Returns:
- xSlice X slider value.
-
getVisible
public boolean getVisible(int orientation) slice slider visible or not.- Returns:
- sliceVisible if
truevisible, otherwise invisible.
-
getYOpacitySlice
public int getYOpacitySlice()Get the y opacity slider value.- Returns:
- yOpacityslice Y opacity slider value.
-
getYProbePos
public int getYProbePos()Get the probe y coordinate.- Returns:
- yProbe probe y position
-
getYSlice
public int getYSlice()Get the y slider value.- Returns:
- ySlice Y slider value.
-
getZOpacitySlice
public int getZOpacitySlice()Get the z opacity slider value.- Returns:
- zOpacityslice Z opacity slider value.
-
getZProbePos
public int getZProbePos()Get the probe z coordinate.- Returns:
- zProbe probe z position
-
getZSlice
public int getZSlice()Get the z slider value.- Returns:
- zSlice Z slider value.
-
init
public void init()Initializes GUI components. -
mouseClicked
Unchanged.- Specified by:
mouseClickedin interfaceMouseListener- Parameters:
event- Original mouse event.
-
mouseEntered
Unchanged.- Specified by:
mouseEnteredin interfaceMouseListener- Parameters:
event- Original mouse event.
-
mouseExited
Unchanged.- Specified by:
mouseExitedin interfaceMouseListener- Parameters:
event- Original mouse event.
-
mousePressed
Unchanged.- Specified by:
mousePressedin interfaceMouseListener- Parameters:
event- Original mouse event.
-
mouseReleased
Used in MouseRecorder to stop one series of slide moves.- Specified by:
mouseReleasedin interfaceMouseListener- Parameters:
event- Original mouse event.
-
resizePanel
public void resizePanel(int panelWidth, int frameHeight) Resizig the control panel with ViewJFrameVolumeView's frame width and height.- Overrides:
resizePanelin classJPanelRendererBase- Parameters:
panelWidth- DOCUMENT ME!frameHeight- DOCUMENT ME!
-
setOpacitySliderXEnabled
public void setOpacitySliderXEnabled(boolean flag) Set the opacity slider X with given boolean value.- Parameters:
flag- indicate opacity slider is set or not
-
setOpacitySliderYEnabled
public void setOpacitySliderYEnabled(boolean flag) Set the opacity slider Y with given boolean value.- Parameters:
flag- indicate opacity slider is set or not
-
setOpacitySliderZEnabled
public void setOpacitySliderZEnabled(boolean flag) Set the opacity slider Z with given boolean value.- Parameters:
flag- indicate opacity slider is set or not
-
setSceneState
Sets the scene state appropriately, so that the slices that are supposed to be visible are showing, the ones that aren't are hidden, and the sliders are starting at the appropriate value.- Parameters:
scene- The state of the scene.
-
setXProbePos
public void setXProbePos(int _xProbe) Set probe x coordinate.- Parameters:
_xProbe- probe x position
-
setXSlicePos
private void setXSlicePos(int _xSlice) Set the current x slider move position.- Parameters:
_xSlice- x slider position
-
setXSliderEnabled
public void setXSliderEnabled(boolean flag) Sets the x slider and the labels beside and beneath it to the state given byflag.- Parameters:
flag- iftrueenable, otherwise disable.
-
setYProbePos
public void setYProbePos(int _yProbe) Set probe y coordinate.- Parameters:
_yProbe- probe y position
-
setYSlicePos
private void setYSlicePos(int _ySlice) Set the current y slider move position.- Parameters:
_ySlice- y slider position
-
setYSliderEnabled
public void setYSliderEnabled(boolean flag) Sets the y slider and the labels beside and beneath it to the state given byflag.- Parameters:
flag- iftrueenable, otherwise disable.
-
setZProbePos
public void setZProbePos(int _zProbe) Set probe z coordinate.- Parameters:
_zProbe- probe z position
-
setZSlicePos
private void setZSlicePos(int _zSlice) Set the current z slider move position.- Parameters:
_zSlice- z slider position
-
setZSliderEnabled
public void setZSliderEnabled(boolean flag) Sets the z slider and the labels beside and beneath it to the state given byflag.- Parameters:
flag- iftrueenable, otherwise disable.
-
stateChanged
Sets how the image plane should be displayed depending on value of slider.- Specified by:
stateChangedin interfaceChangeListener- Parameters:
e- Event that triggered this function.
-
setBoxColor
Calls the appropriate method in the parent frame.- Parameters:
button- DOCUMENT ME!color- Color to set box frame to.
-
addControlPanel
Helper method that adds components to the control panel for the grid bag layout.- Parameters:
c- Component added to the control panel.gbc- GridBagConstraints of added component.x- Gridx locationy- Gridy locationw- Gridwidthh- Gridheight
-
addOpacityControlPanel
private void addOpacityControlPanel(Component c, GridBagConstraints gbc, int x, int y, int w, int h) Helper method that adds components to the control panel for the grid bag layout.- Parameters:
c- Component added to the control panel.gbc- GridBagConstraints of added component.x- Gridx locationy- Gridy locationw- Gridwidthh- Gridheight
-
buildBoundingBox
private void buildBoundingBox()Build the boudning box for X, Y, Z slices. -
buildTimeSlider
private void buildTimeSlider()Builds the time (4D) slider. No check box, because there is no plane to turn off. -
createLabel
Creates a label in the proper font and color.- Parameters:
title- The title of the label.- Returns:
- The new label.
-