Package gov.nih.mipav.view
Class ViewJFrameHistoRGB
java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
gov.nih.mipav.view.ViewJFrameBase
gov.nih.mipav.view.ViewJFrameHistoRGB
- All Implemented Interfaces:
HistoLUTParent,ViewImageUpdateInterface,ActionListener,ComponentListener,ItemListener,KeyListener,MouseListener,MouseMotionListener,WindowListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible,ChangeListener,RootPaneContainer,WindowConstants
public class ViewJFrameHistoRGB
extends ViewJFrameBase
implements ItemListener, ActionListener, KeyListener, WindowListener, ChangeListener, ViewImageUpdateInterface, MouseMotionListener, MouseListener, HistoLUTParent
Deprecated.
This class produces a frame where the histogram of the image data is displayed using the color mapping. All frames
using the color map are dynamically updated with the new color map.
- Version:
- 1.0
- Author:
- Matthew J. McAuliffe, Ph.D. (primary), Harman Singh
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrameNested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrameNested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow, Window.TypeNested 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 JToggleButtonDeprecated.DOCUMENT ME!private JCheckBoxDeprecated.DOCUMENT ME!private JCheckBoxDeprecated.DOCUMENT ME!private JToggleButtonDeprecated.DOCUMENT ME!private booleanDeprecated.DOCUMENT ME!private booleanDeprecated.DOCUMENT ME!private float[]Deprecated.DOCUMENT ME!private float[]Deprecated.DOCUMENT ME!private JCheckBoxDeprecated.DOCUMENT ME!private JCheckBoxDeprecated.DOCUMENT ME!private JToggleButtonDeprecated.DOCUMENT ME!private ModelHistogramDeprecated.DOCUMENT ME!private ModelHistogramDeprecated.DOCUMENT ME!private ModelHistogramDeprecated.DOCUMENT ME!private ModelHistogramDeprecated.DOCUMENT ME!private ModelHistogramDeprecated.DOCUMENT ME!private ModelHistogramDeprecated.DOCUMENT ME!private ViewJPanelHistoLUTDeprecated.DOCUMENT ME!private ViewJPanelHistoLUTDeprecated.DOCUMENT ME!private JCheckBoxDeprecated.DOCUMENT ME!private JCheckBoxDeprecated.DOCUMENT ME!private JCheckBoxDeprecated.DOCUMENT MEprivate ViewMenuBuilderDeprecated.DOCUMENT ME!private JPanelDeprecated.DOCUMENT ME!private JPanelDeprecated.DOCUMENT ME!private JCheckBoxDeprecated.DOCUMENT ME!private JCheckBoxDeprecated.DOCUMENT ME!private JToggleButtonDeprecated.DOCUMENT ME!private ViewJComponentRegistrationDeprecated.DOCUMENT ME!private int[]Deprecated.DOCUMENT ME!private ModelRGBDeprecated.DOCUMENT ME!private ModelRGBDeprecated.DOCUMENT ME!private static final longDeprecated.Use serialVersionUID for interoperability.private JTabbedPaneDeprecated.DOCUMENT ME!private JTextFieldDeprecated.DOCUMENT ME!private JTextFieldDeprecated.threshold related.private JTextFieldDeprecated.DOCUMENT ME!private JTextFieldDeprecated.threshold related.private JTextFieldDeprecated.DOCUMENT ME!private JTextFieldDeprecated.threshold related.private JToolBarDeprecated.DOCUMENT ME!private ViewToolBarBuilderDeprecated.Object which generates the toolbar.private JCheckBoxDeprecated.DOCUMENT ME!private JCheckBoxDeprecated.DOCUMENT ME!private boolean[]Deprecated.DOCUMENT ME!private boolean[]Deprecated.DOCUMENT ME!private JLabelDeprecated.DOCUMENT ME!private JLabelDeprecated.DOCUMENT ME!Fields inherited from class gov.nih.mipav.view.ViewJFrameBase
absoluteGoToButton, absoluteGoToPanel, absoluteLabel, absoluteLabelVals, absolutePanel, absoluteXLabel, absoluteXTextField, absoluteYLabel, absoluteYTextField, absoluteZLabel, absoluteZTextField, alphaBlend, defaultLUTa, defaultLUTb, displayMode, IMAGE_A, IMAGE_A_B, IMAGE_B, imageA, imageB, isClosing, linkedScrolling, linkFrame, linkTriFrame, LUTa, LUTb, progressBar, scannerLPS_APLabel, scannerLPS_APTextField, scannerLPS_GoToButton, scannerLPS_GoToPanel, scannerLPS_ISLabel, scannerLPS_ISTextField, scannerLPS_RLLabel, scannerLPS_RLTextField, scannerLPSLabel, scannerLPSLabelVals, scannerLPSPanel, scannerRAS_APLabel, scannerRAS_APTextField, scannerRAS_GoToButton, scannerRAS_GoToPanel, scannerRAS_ISLabel, scannerRAS_ISTextField, scannerRAS_RLLabel, scannerRAS_RLTextField, scannerRASLabel, scannerRASLabelVals, scannerRASPanel, scannerTabbedPane, talGoToButton, talGoToPanel, talXLabel, talXTextField, talYLabel, talYTextField, talZLabel, talZTextField, userInterface, zoomModeFields inherited from class javax.swing.JFrame
accessibleContext, rootPane, rootPaneCheckingEnabledFields 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_CURSORFields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE -
Constructor Summary
ConstructorsConstructorDescriptionViewJFrameHistoRGB(ModelImage _imageA, ModelImage _imageB, ModelRGB _RGBTA, ModelRGB _RGBTB, boolean _entireFlag) Deprecated.ViewJFrameHistoRGB(ViewJComponentRegistration _regComponent, ModelImage _imageA, ModelImage _imageB, ModelRGB _RGBTA, ModelRGB _RGBTB, boolean _entireFlag) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent event) Deprecated.Calls various methods depending on the action.private voidDeprecated.This method builds a menu which contains the options for opening/saving a LUT or set of transfer functions, closing the LUT, and utilities such as CT presets.private voidbuildPanelA(ModelImage image, boolean entireFlag) Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private voidbuildPanelB(ModelImage image, boolean entireFlag) Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT.private voidcalcHistogram(int imageAorB, boolean entireFlag, boolean progressFlag) Deprecated.Calculates histogram for the image(s).private floatcalcThresholdVolume(float lower, float upper) Deprecated.DOCUMENT ME!private voidDeprecated.Clears (blanks out) the threshold voxel information (when RGB mode or not thresholding).voiddispose()Deprecated.Disposes of components and frame.voiddragPoint(MouseEvent mouseEvent) Deprecated.Placeholder.Deprecated.Gets the control widgets for the frame.final ViewJComponentHistoRGBDeprecated.Get the histogram component for imageA.final ViewJComponentHistoRGBDeprecated.Get the histogram component for imageB.Deprecated.Accessor that returns the imageA.Deprecated.Accessor that returns the imageB.booleanDeprecated.Returns whether the imageA LUT panel is the one being worked on.booleanDeprecated.Returns whether the imageB LUT panel is the one being worked on.booleanDeprecated.Indicates if real-time update of the image should take place.voiditemStateChanged(ItemEvent event) Deprecated.Sets the flags for the checkboxes.voidDeprecated.Unchanged.voidDeprecated.Unchanged.voidDeprecated.If the ENTER key is hit while in threshold boxes, update the LUT's threshold (for dual threshold).voidmouseClicked(MouseEvent mouseEvent) Deprecated.Unchanged.voidmouseDragged(MouseEvent mouseEvent) Deprecated.Unchanged.voidmouseEntered(MouseEvent mouseEvent) Deprecated.Unchanged.voidmouseExited(MouseEvent mouseEvent) Deprecated.Unchanged.voidmouseMoved(MouseEvent mouseEvent) Deprecated.Unchanged.voidmousePressed(MouseEvent event) Deprecated.Unchanged.voidmouseReleased(MouseEvent mouseEvent) Deprecated.Unchanged.voidnotifyOfUpdate(ModelLUT LUT, int imageAorB) Deprecated.Enable button to indicate image has changed and the histogram should be recalculated.voidDeprecated.Removes the menu and controls of the main frame so that a new frame can load the main frame with the proper controls.Abstract and must be extended.voidDeprecated.Removes the tabbed pane for the histogram of image B.private voidDeprecated.resets boolean for threshold channels.voidsetActiveImage(int active) Deprecated.Sets the active image for drawing VOIs.voidDeprecated.Accessor to disable the all RGB color channels button if one of the lines has moved.voidsetAlphaBlend(int value) Deprecated.Sets the alpha blending of parameter for two image displaying.voidDeprecated.Sets the menu and controls (i.e. toolbars) of the main frame!voidsetEnabled(boolean flag) Deprecated.Controls whether or not the images/VOIs of the frame can be modified.voidsetImageB(ModelImage image) Deprecated.Accessor that sets the imageB.voidDeprecated.Placeholder.voidsetPaintBitmapSwitch(boolean flag) Deprecated.DOCUMENT ME!voidsetRangeText(float x, float y, int _index) Deprecated.Placeholder.voidDeprecated.The following 2 functions set the RGB tables for images A and B.voidDeprecated.DOCUMENT ME!voidsetSlice(int slice) Deprecated.Does nothing in this class.voidsetTimeSlice(int tSlice) Deprecated.Does nothing in this class.voidsetTitle()Deprecated.setTitle.voidDeprecated.Resets the buttons depending on which tab was selected.protected booleantestParameter(String str, double minValue, double maxValue) Deprecated.Tests that the entered parameter is in range.voidupdate()Deprecated.Redisplay histoLUT.voidDeprecated.Placeholder.voidupdateFrames(boolean flag) Deprecated.Update all of the image frames that display the image this histo lut is for.voidupdateHistoRGB(ModelImage _imageA, ModelImage _imageB, boolean progressFlag) Deprecated.This method is called to update the histogram(s) displayed in each tabbed pane of the frame.booleanDeprecated.This methods calls the componentImage's REPAINT method to redraw the screen.booleanDeprecated.This methods calls the componentImage's REPAINT method to redraw the screen.booleanupdateImages(boolean flag) Deprecated.This methods calls the componentImage's update method to redraw the screen.booleanupdateImages(ModelLUT LUTa, ModelLUT LUTb, boolean flag, int interpMode) Deprecated.This methods calls the componentImage's update method to redraw the screen.voidDeprecated.Placeholder.voidupdateThresholdFields(float lower, float upper) Deprecated.Method to update the threshold text fields when the lower or upper threshold changes.voidwindowActivated(WindowEvent event) Deprecated.Unchanged.voidwindowClosed(WindowEvent event) Deprecated.Unchanged.voidwindowClosing(WindowEvent event) Deprecated.Calls close.voidwindowDeactivated(WindowEvent event) Deprecated.Unchanged.voidwindowDeiconified(WindowEvent event) Deprecated.Unchanged.voidwindowIconified(WindowEvent event) Deprecated.Unchanged.voidwindowOpened(WindowEvent event) Deprecated.Unchanged.Methods inherited from class gov.nih.mipav.view.ViewJFrameBase
about, buildLabelPanel, canCloseImageBAfterLoad, close, close, closeImageB, componentHidden, componentMoved, componentResized, componentShown, finalize, getAlphaBlend, getDefaultLUTa, getDefaultLUTb, getDisplayMode, getImageNameA, getImageNameB, getLastState, getLUTa, getLUTb, getRGBTA, getRGBTB, getTriImg, getUserInterface, handleMaskPopupMenu, handlePaintToMaskPopupMenu, handleZoomPopupMenu, initExtents, initImageBuffer, initLUT, initNumSlices, initPixelBuffer, initResFactor, initResolutions, initRGB, initSlicePositions, initUnits, initZoom, loadAllVOIs, loadAllVOIsFrom, loadImage, loadLUT, loadLUTandTransferFunctionFrom, loadLUTandTransferFunctionFrom, makeString, newFrameBeenCreated, openVOI, openVOI, pickImageFile, save, save, save, saveAllVOIs, saveAllVOIsTo, saveLabels, saveLUT, saveLUTandTransferFunction, saveLUTandTransferFunction, saveLUTAs, saveLUTAs, saveVOI, saveVOIAs, saveVOIAs, saveVOIIntensities, saveVOIIntensitiesTo, setAbsPositionLabels, setEnableCloseImageBAfterLoad, setImageA, setLastState, setLinkedFrame, setLinkedTriFrame, setLUTa, setLUTb, setLUTs, setMessageText, setOpacityInfo, setpaintBitmap, setScannerPositionMethods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, updateMethods inherited from class java.awt.Frame
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedMethods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFrontMethods 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, validateTreeMethods 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, 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, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, 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.MenuContainer
getFont, postEvent
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDDeprecated.Use serialVersionUID for interoperability.- See Also:
-
blueCheckBoxA
Deprecated.DOCUMENT ME! -
blueCheckBoxB
Deprecated.DOCUMENT ME! -
calcThresholdVolume
private boolean calcThresholdVolumeDeprecated.DOCUMENT ME! -
entireFlag
private boolean entireFlagDeprecated.DOCUMENT ME! -
fillValuesA
private float[] fillValuesADeprecated.DOCUMENT ME! -
fillValuesB
private float[] fillValuesBDeprecated.DOCUMENT ME! -
greenCheckBoxA
Deprecated.DOCUMENT ME! -
greenCheckBoxB
Deprecated.DOCUMENT ME! -
histogramABlue
Deprecated.DOCUMENT ME! -
histogramAGreen
Deprecated.DOCUMENT ME! -
histogramARed
Deprecated.DOCUMENT ME! -
histogramBBlue
Deprecated.DOCUMENT ME! -
histogramBGreen
Deprecated.DOCUMENT ME! -
histogramBRed
Deprecated.DOCUMENT ME! -
histoPanelA
Deprecated.DOCUMENT ME! -
histoPanelB
Deprecated.DOCUMENT ME! -
logCheckBoxA
Deprecated.DOCUMENT ME! -
logCheckBoxB
Deprecated.DOCUMENT ME! -
panelA
Deprecated.DOCUMENT ME! -
panelB
Deprecated.DOCUMENT ME! -
redCheckBoxA
Deprecated.DOCUMENT ME! -
redCheckBoxB
Deprecated.DOCUMENT ME! -
redRGBButton
Deprecated.DOCUMENT ME! -
blueRGBButton
Deprecated.DOCUMENT ME! -
greenRGBButton
Deprecated.DOCUMENT ME! -
allRGBButton
Deprecated.DOCUMENT ME! -
regComponent
Deprecated.DOCUMENT ME! -
RGBExtents
private int[] RGBExtentsDeprecated.DOCUMENT ME! -
RGBTA
Deprecated.DOCUMENT ME! -
RGBTB
Deprecated.DOCUMENT ME! -
tabbedPane
Deprecated.DOCUMENT ME! -
threshLowerBF
Deprecated.DOCUMENT ME! -
threshUpperBF
Deprecated.DOCUMENT ME! -
threshFillBF
Deprecated.DOCUMENT ME! -
threshLowerF
Deprecated.threshold related. -
threshUpperF
Deprecated.threshold related. -
threshFillF
Deprecated.threshold related. -
toolBar
Deprecated.DOCUMENT ME! -
toolBarObj
Deprecated.Object which generates the toolbar. -
updateCheckBoxA
Deprecated.DOCUMENT ME! -
updateCheckBoxB
Deprecated.DOCUMENT ME! -
useThresholdChannelA
private boolean[] useThresholdChannelADeprecated.DOCUMENT ME! -
useThresholdChannelB
private boolean[] useThresholdChannelBDeprecated.DOCUMENT ME! -
voxelVolumeLabel
Deprecated.DOCUMENT ME! -
voxelVolumeLabelB
Deprecated.DOCUMENT ME! -
lutAdjustCheckboxB
Deprecated.DOCUMENT ME
-
-
Constructor Details
-
ViewJFrameHistoRGB
public ViewJFrameHistoRGB(ModelImage _imageA, ModelImage _imageB, ModelRGB _RGBTA, ModelRGB _RGBTB, boolean _entireFlag) Deprecated.Makes a frame of the histogram.- Parameters:
_imageA- Model of imageA_imageB- Model of imageB_RGBTA- Model RGB_RGBTB- Model RGB_entireFlag- Flag indicating if histogram should be done on all of image.
-
ViewJFrameHistoRGB
public ViewJFrameHistoRGB(ViewJComponentRegistration _regComponent, ModelImage _imageA, ModelImage _imageB, ModelRGB _RGBTA, ModelRGB _RGBTB, boolean _entireFlag) Deprecated.Makes a frame of the histogram.- Parameters:
_regComponent- component to pass parameters to in manual registration_imageA- Model of imageA_imageB- Model of imageB_RGBTA- Model RGB_RGBTB- Model RGB_entireFlag- DOCUMENT ME!
-
-
Method Details
-
actionPerformed
Deprecated.Calls various methods depending on the action.- Specified by:
actionPerformedin interfaceActionListener- Specified by:
actionPerformedin classViewJFrameBase- Parameters:
event- event that triggered function
-
dispose
public void dispose()Deprecated.Disposes of components and frame. -
dragPoint
Deprecated.Placeholder.- Specified by:
dragPointin interfaceHistoLUTParent- Parameters:
mouseEvent- drag event
-
getControls
Deprecated.Gets the control widgets for the frame.- Specified by:
getControlsin classViewJFrameBase- Returns:
- DOCUMENT ME!
-
getHistoLUTComponentA
Deprecated.Get the histogram component for imageA.- Returns:
- the imageA histogram component
-
getHistoLUTComponentB
Deprecated.Get the histogram component for imageB.- Returns:
- the imageB histogram component
-
getImageA
Deprecated.Accessor that returns the imageA.- Specified by:
getImageAin classViewJFrameBase- Returns:
- image
-
getImageB
Deprecated.Accessor that returns the imageB.- Specified by:
getImageBin classViewJFrameBase- Returns:
- imageB
-
isImageASelected
public boolean isImageASelected()Deprecated.Returns whether the imageA LUT panel is the one being worked on.- Returns:
- whether the imageA LUT panel is the one being worked on
-
isImageBSelected
public boolean isImageBSelected()Deprecated.Returns whether the imageB LUT panel is the one being worked on.- Returns:
- whether the imageB LUT panel is the one being worked on
-
isImageUpdate
public boolean isImageUpdate()Deprecated.Indicates if real-time update of the image should take place.- Specified by:
isImageUpdatein interfaceHistoLUTParent- Returns:
trueif real time update should take place
-
itemStateChanged
Deprecated.Sets the flags for the checkboxes.- Specified by:
itemStateChangedin interfaceItemListener- Parameters:
event- event that triggered this function
-
keyPressed
Deprecated.Unchanged.- Specified by:
keyPressedin interfaceKeyListener- Parameters:
e- DOCUMENT ME!
-
keyReleased
Deprecated.Unchanged.- Specified by:
keyReleasedin interfaceKeyListener- Parameters:
e- DOCUMENT ME!
-
keyTyped
Deprecated.If the ENTER key is hit while in threshold boxes, update the LUT's threshold (for dual threshold).- Specified by:
keyTypedin interfaceKeyListener- Parameters:
e- KeyEvent
-
mouseClicked
Deprecated.Unchanged.- Specified by:
mouseClickedin interfaceMouseListener- Parameters:
mouseEvent- DOCUMENT ME!
-
mouseDragged
Deprecated.Unchanged.- Specified by:
mouseDraggedin interfaceMouseMotionListener- Parameters:
mouseEvent- DOCUMENT ME!
-
mouseEntered
Deprecated.Unchanged.- Specified by:
mouseEnteredin interfaceMouseListener- Parameters:
mouseEvent- DOCUMENT ME!
-
mouseExited
Deprecated.Unchanged.- Specified by:
mouseExitedin interfaceMouseListener- Parameters:
mouseEvent- DOCUMENT ME!
-
mouseMoved
Deprecated.Unchanged.- Specified by:
mouseMovedin interfaceMouseMotionListener- Parameters:
mouseEvent- DOCUMENT ME!
-
mousePressed
Deprecated.Unchanged.- Specified by:
mousePressedin interfaceMouseListener- Parameters:
event- DOCUMENT ME!
-
mouseReleased
Deprecated.Unchanged.- Specified by:
mouseReleasedin interfaceMouseListener- Parameters:
mouseEvent- DOCUMENT ME!
-
notifyOfUpdate
Deprecated.Enable button to indicate image has changed and the histogram should be recalculated.- Parameters:
LUT- new Lookup tableimageAorB- indicates which histogram needs to be recalculated
-
removeControls
public void removeControls()Deprecated.Removes the menu and controls of the main frame so that a new frame can load the main frame with the proper controls.Abstract and must be extended.- Specified by:
removeControlsin classViewJFrameBase
-
removeHistoRGBb
public void removeHistoRGBb()Deprecated.Removes the tabbed pane for the histogram of image B. -
setActiveImage
public void setActiveImage(int active) Deprecated.Sets the active image for drawing VOIs. VOIs are only drawn in the active image. In addition, algorithms are executed on the active window.- Specified by:
setActiveImagein classViewJFrameBase- Parameters:
active- IMAGE_A or IMAGE_B
-
setAllOff
public void setAllOff()Deprecated.Accessor to disable the all RGB color channels button if one of the lines has moved.- Specified by:
setAllOffin interfaceHistoLUTParent
-
setAlphaBlend
public void setAlphaBlend(int value) Deprecated.Sets the alpha blending of parameter for two image displaying.- Specified by:
setAlphaBlendin classViewJFrameBase- Parameters:
value- amount [0,100] that is the percentage of Image A to be displayed and (1-percentage) of Image B to be displayed
-
setControls
public void setControls()Deprecated.Sets the menu and controls (i.e. toolbars) of the main frame! This puts only the menus and controls needed to controls the operations of this frame. Different image frames have different menu and controls.- Specified by:
setControlsin classViewJFrameBase
-
setEnabled
public void setEnabled(boolean flag) Deprecated.Controls whether or not the images/VOIs of the frame can be modified.- Specified by:
setEnabledin classViewJFrameBase- Parameters:
flag- if true the image/VOIs can be modified; if false image/VOIs can NOT be modified
-
setImageB
Deprecated.Accessor that sets the imageB.- Specified by:
setImageBin classViewJFrameBase- Parameters:
image- image to set frame to
-
setLUT
Deprecated.Placeholder.- Specified by:
setLUTin interfaceHistoLUTParent- Parameters:
newLUT- lut
-
setPaintBitmapSwitch
public void setPaintBitmapSwitch(boolean flag) Deprecated.DOCUMENT ME!- Specified by:
setPaintBitmapSwitchin classViewJFrameBase- Parameters:
flag- DOCUMENT ME!
-
setRangeText
public void setRangeText(float x, float y, int _index) Deprecated.Placeholder.- Specified by:
setRangeTextin interfaceHistoLUTParent- Parameters:
x- xy- y_index- index
-
setRGBTA
Deprecated.The following 2 functions set the RGB tables for images A and B.- Specified by:
setRGBTAin classViewJFrameBase- Parameters:
RGBT- DOCUMENT ME!
-
setRGBTB
Deprecated.DOCUMENT ME!- Specified by:
setRGBTBin classViewJFrameBase- Parameters:
RGBT- DOCUMENT ME!
-
setSlice
public void setSlice(int slice) Deprecated.Does nothing in this class.- Specified by:
setSlicein interfaceViewImageUpdateInterface- Parameters:
slice- DOCUMENT ME!
-
setTimeSlice
public void setTimeSlice(int tSlice) Deprecated.Does nothing in this class.- Specified by:
setTimeSlicein interfaceViewImageUpdateInterface- Parameters:
tSlice- DOCUMENT ME!
-
setTitle
public void setTitle()Deprecated.setTitle.- Specified by:
setTitlein classViewJFrameBase
-
stateChanged
Deprecated.Resets the buttons depending on which tab was selected.- Specified by:
stateChangedin interfaceChangeListener- Overrides:
stateChangedin classViewJFrameBase- Parameters:
e- Event that triggered this function.
-
update
public void update()Deprecated.Redisplay histoLUT. -
updateComponentLUT
public void updateComponentLUT()Deprecated.Placeholder.- Specified by:
updateComponentLUTin interfaceHistoLUTParent
-
updateFrames
public void updateFrames(boolean flag) Deprecated.Update all of the image frames that display the image this histo lut is for.- Specified by:
updateFramesin interfaceHistoLUTParent- Parameters:
flag- this boolean indicates if the frame that displays the image should re-export the image and apply new LUT- See Also:
-
updateHistoRGB
Deprecated.This method is called to update the histogram(s) displayed in each tabbed pane of the frame.- Parameters:
_imageA- image A_imageB- image BprogressFlag- passed to calculateHistogram algorithm. If false progress bar is not displayed.
-
updateImageExtents
public boolean updateImageExtents()Deprecated.This methods calls the componentImage's REPAINT method to redraw the screen. The extents on this image have changed, so the extents need to be read in again and menus, panes and slide bars adjusted accordingly.- Specified by:
updateImageExtentsin interfaceViewImageUpdateInterface- Specified by:
updateImageExtentsin classViewJFrameBase- Returns:
- DOCUMENT ME!
- See Also:
-
updateImages
public boolean updateImages()Deprecated.This methods calls the componentImage's REPAINT method to redraw the screen. Without LUT changes or image changes- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Returns:
- DOCUMENT ME!
-
updateImages
public boolean updateImages(boolean flag) Deprecated.This methods calls the componentImage's update method to redraw the screen. Without LUT changes. Does nothing in this class.- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Parameters:
flag- forces show to re import image and calc. java image- Returns:
- boolean confirming successful update
-
updateImages
Deprecated.This methods calls the componentImage's update method to redraw the screen. Does nothing in this class.- Specified by:
updateImagesin interfaceViewImageUpdateInterface- Parameters:
LUTa- LUT used to update imageALUTb- LUT used to update imageBflag- forces show to re import image and calc. java imageinterpMode- image interpolation method (Nearest or Smooth)- Returns:
- boolean confirming a successful update
-
updateLUTPositionString
Deprecated.Placeholder.- Specified by:
updateLUTPositionStringin interfaceHistoLUTParent- Parameters:
str- string
-
updateThresholdFields
public void updateThresholdFields(float lower, float upper) Deprecated.Method to update the threshold text fields when the lower or upper threshold changes.- Specified by:
updateThresholdFieldsin interfaceHistoLUTParent- Parameters:
lower- the lower threshold valueupper- the upper threshold value
-
windowActivated
Deprecated.Unchanged.- Specified by:
windowActivatedin interfaceWindowListener- Overrides:
windowActivatedin classViewJFrameBase- Parameters:
event- DOCUMENT ME!
-
windowClosed
Deprecated.Unchanged.- Specified by:
windowClosedin interfaceWindowListener- Overrides:
windowClosedin classViewJFrameBase- Parameters:
event- DOCUMENT ME!
-
windowClosing
Deprecated.Calls close.- Specified by:
windowClosingin interfaceWindowListener- Overrides:
windowClosingin classViewJFrameBase- Parameters:
event- event that triggered function
-
windowDeactivated
Deprecated.Unchanged.- Specified by:
windowDeactivatedin interfaceWindowListener- Overrides:
windowDeactivatedin classViewJFrameBase- Parameters:
event- DOCUMENT ME!
-
windowDeiconified
Deprecated.Unchanged.- Specified by:
windowDeiconifiedin interfaceWindowListener- Overrides:
windowDeiconifiedin classViewJFrameBase- Parameters:
event- DOCUMENT ME!
-
windowIconified
Deprecated.Unchanged.- Specified by:
windowIconifiedin interfaceWindowListener- Overrides:
windowIconifiedin classViewJFrameBase- Parameters:
event- DOCUMENT ME!
-
windowOpened
Deprecated.Unchanged.- Specified by:
windowOpenedin interfaceWindowListener- Overrides:
windowOpenedin classViewJFrameBase- Parameters:
event- DOCUMENT ME!
-
testParameter
Deprecated.Tests that the entered parameter is in range.- Parameters:
str- the value entered by the userminValue- the minimum value this variable may be set tomaxValue- the maximum value this variable may be set to- Returns:
- boolean result of test
-
buildMenu
private void buildMenu()Deprecated.This method builds a menu which contains the options for opening/saving a LUT or set of transfer functions, closing the LUT, and utilities such as CT presets. -
buildPanelA
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT. Panel for image A.- Parameters:
image- Model of imageentireFlag- Flag indicating if histogram should be made of entire image.
-
buildPanelB
Deprecated.Method that displays the histogram and LUT and other controls to manipulate the LUT. Panel for image B.- Parameters:
image- Model of imageentireFlag- Flag indicating if histogram should be made of entire image.
-
calcHistogram
private void calcHistogram(int imageAorB, boolean entireFlag, boolean progressFlag) Deprecated.Calculates histogram for the image(s).- Parameters:
imageAorB- flag to indicate if histogram is to be calculated for imageA or imageB.entireFlag- if true calculate histogram for the entire image. if false uses areas defined by VOI regions.progressFlag- passed to calculateHistogram algorithm. If false progress bar is not displayed.
-
calcThresholdVolume
private float calcThresholdVolume(float lower, float upper) Deprecated.DOCUMENT ME!- Parameters:
lower- DOCUMENT ME!upper- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
clearVoxelLabel
private void clearVoxelLabel()Deprecated.Clears (blanks out) the threshold voxel information (when RGB mode or not thresholding). -
resetThresholdChannels
private void resetThresholdChannels()Deprecated.resets boolean for threshold channels.
-