Class ViewJFrameAnimate
- 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.ViewJFrameAnimate
 
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- ViewImageUpdateInterface,- java.awt.event.ActionListener,- java.awt.event.ComponentListener,- java.awt.event.WindowListener,- java.awt.image.ImageObserver,- java.awt.MenuContainer,- java.io.Serializable,- java.util.EventListener,- javax.accessibility.Accessible,- javax.swing.event.ChangeListener,- javax.swing.RootPaneContainer,- javax.swing.WindowConstants
 
 public class ViewJFrameAnimate extends ViewJFrameBase implements javax.swing.event.ChangeListener This class produces a frame surrounding an image whose slices are animated. Tool bar buttons are present for continuous reverse, reverse, continuous forward, forward, pause, stop, magnify, unmagnify, for generating a dialog to set brightness and contrast, and for deleting the current slice from the animation. In continuous forward the images are continuously displayed from start to end over and over again until pause or stop are hit. If pause is hit, the display may be resumed by repushing the continuous forward button. In forward each image is only displayed once from start to finish unless pause or stop are hit. If pause is hit, the display may be resumed by repushing the forward button. Continuous reverse and reverse work the same way as continuous forward and forward except for a reversal in direction. Users can instantly jump from one mode to another without hitting stop ro pause - from continuous forward to continuous reverse for example. Magnify will double the present magnification and Unmagnify will half the present magnification. Magnifications are only powers of 2. However, the scale function can be set to any value in the dialog box called up by JDialogAnimate. This scale function will do a slice by slice bilinear of bspline interpolation to create the initial slices on which the power of 2 magnification may be changed.The dialog box for brightness and contrast has brightness and contrast sliders, an Apply button, and a Cancel button. The brightness will add an offset ranging from -255 to 255 to every scaled red, green, and blue in the image. Contrast will multiply every original red, green, and blue value by a floating point number ranging from 0.1 to 10.0. Before apply is pressed, slider changes are only temporarily made to the currently displayed slice. If apply is pressed, these changes are permanently made to all slices. Pressing cancel keeps all slices in their original state. Images may also be viewed in a steady state mode. The slider is used to control the number of the slice shown when animation is not occurring. A text field for the desired frames per second is present. The initial default value is 30 per second. This is followed by a text field for the actual frames per second. The file menu only has 2 simple functions - a save as function and a close animate structure function. The options menu has a view z slice numbers for use for 4D images. ViewJFrameAnimate is called in ViewJFrameImage. An animation of a blended image A and image B can be performed. However, all the blending parameters must be set before the animation structure is created. One parameter is alphaBlend for all images. For color only are also the parameters: RaOn, GaOn, BaOn, RbOn, GbOn, BbOn, RGBTA, and RGBTB. Changes in these parmeters that are made after the animation structure is created will not be propagated into the animation structure. If 4D images are animated, the animation is performed on the fourth time dimension with all the z slices for a given time present in a given frame. The number of rows or columns for the z slices, whether or not a border frame is present around z slices, and the border frame color are all selected in JDialogAnimate before ViewJFrameAnimate is invoked. Note that JDialogAnimate converts all 4D images to 3D images so ViewJFrameAnimate actually is always passed 3D images. - Version:
- 1.0
- See Also:
- Serialized Form
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description (package private) classViewJFrameAnimate.CBackForwardcontinuous backward and forward - continuously cycles from first to last slice unless a pause suspends the loop in 5 millisecond sleep functions or a stop causes the loop to exit.(package private) classViewJFrameAnimate.cbfStopContinuous back and forth has been selected.(package private) classViewJFrameAnimate.CForwardcontinuous forward continuously cycles from first to last slice unless a pause suspends the loop in 5 millisecond sleep functions or a stop causes the loop to exit.(package private) classViewJFrameAnimate.cfStopThreads are used because they are required by the sleep function. cf , fStop, crStop, and rStop set stop to true and keep sleeping for 5 millisecond intervals until the other 3 animation modes have ended.(package private) classViewJFrameAnimate.CReversecontinuous reverse continuously cycles from last to frist slice unless a pause suspends the loop in 5 millisecond sleep functions or a stop causes the loop to exit.(package private) classViewJFrameAnimate.crStopContinuous reverse has been selected.(package private) classViewJFrameAnimate.Forwardforward cycles a single time from first to last slice unless a pause suspends the loop in 5 millisecond sleep functions or a stop causes the loop to exit.(package private) classViewJFrameAnimate.fStopForward has been selected.(package private) classViewJFrameAnimate.Reversereverse cycles a single time from last to first slice unless a pause suspends the loop in 5 millisecond sleep functions or a stop causes the loop to exit.(package private) classViewJFrameAnimate.rStopReverse has been selected.- 
Nested classes/interfaces inherited from class javax.swing.JFramejavax.swing.JFrame.AccessibleJFrame
 - 
Nested classes/interfaces inherited from class java.awt.Windowjava.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
 
- 
 - 
Field SummaryFields Modifier and Type Field Description private floatactualPerSecondDOCUMENT ME!private floatalphaBlendDOCUMENT ME!private java.lang.Stringapsset to give 2 digits to the right of the decimal.private javax.swing.JToggleButtonbackForthButtonDOCUMENT ME!private booleanbfRunDOCUMENT ME!private java.awt.ColorborderColz slice.private javax.swing.JButton[]buttonArrayDOCUMENT ME!private javax.swing.JToggleButtoncForwardButtonDOCUMENT ME!private booleancfRunDOCUMENT ME!private ViewJComponentAnimatecomponentImagewith complex images.private intcomponentYDOCUMENT ME!private ViewJFrameBasecontrolFrameDOCUMENT ME!private javax.swing.JPanelcontrolPanelDOCUMENT ME!private ViewControlsImagecontrolsDOCUMENT ME!private java.awt.GridBagConstraintscpGBCDOCUMENT ME!private java.awt.GridBagLayoutcpGBLDOCUMENT ME!private javax.swing.JToggleButtoncReverseButtonDOCUMENT ME!private booleancrRunDOCUMENT ME!private longcycleTimeDOCUMENT ME!private javax.swing.JButtondeleteButtonDOCUMENT ME!private booleandisposeImageDOCUMENT ME!private javax.swing.border.BorderetchedBorderDOCUMENT ME!private int[]extentsDOCUMENT ME!private javax.swing.JToggleButtonforwardButtonDOCUMENT ME!private javax.swing.JSliderfpsSliderDOCUMENT ME!private floatframesPerSecondDOCUMENT ME!private booleanfRunDOCUMENT ME!private java.awt.GridBagConstraintsgbcTPDOCUMENT ME!private ModelImageimageADOCUMENT ME!private ModelImageimageBDOCUMENT ME!private float[]imageBufferADOCUMENT ME!private float[]imageBufferBDOCUMENT ME!private javax.swing.JPanelinnerPanelDOCUMENT ME!private javax.swing.JLabellabelAnimationFrameDOCUMENT ME!private javax.swing.JLabellabelFramesPerSecondDOCUMENT ME!private java.util.Hashtable<java.lang.Integer,javax.swing.JLabel>labelTableDOCUMENT ME!private longlocalTimenewmsWait = msWait - msElapsed is passed to the sleep function.private longlocalTime2DOCUMENT ME!private booleanlogMagDisplayDOCUMENT ME!private ModelLUTLUTaDOCUMENT ME!private ModelLUTLUTbDOCUMENT ME!private ViewMenuBuildermenuObjDOCUMENT ME!private intminimumHeightDOCUMENT ME!private intminimumToolBarWidthDOCUMENT ME!private floatmjpegQualityDOCUMENT ME!private longmsElapsedDOCUMENT ME!private longmsWaitDOCUMENT ME!private intnColumnDOCUMENT ME!private longnewmsWaitDOCUMENT ME!private java.text.NumberFormatnfDOCUMENT ME!private intnImageDOCUMENT ME!private intnRowDOCUMENT ME!private javax.swing.JMenuBaropeningMenuBarDOCUMENT ME!private intorigBrightnessDOCUMENT ME!private floatorigContrastred, green, and blue origBrightness remains constant until applyButton is pressed, restores brightness if cancelButton is pressed.private intoriginalZDimfor 4D originalXDim and originalYDim are xDim and yDim before 4D to 3D conversion.private int[]paintBufferDOCUMENT ME!private booleanpauseDOCUMENT ME!private javax.swing.JToggleButtonpauseButtonDOCUMENT ME!private int[]pixBufferDOCUMENT ME!private javax.swing.border.BorderpressedBorderDOCUMENT ME!(package private) ViewJProgressBarprogressBarcurrently running.private javax.swing.JButtonrecordButtonDOCUMENT ME!private javax.swing.JToggleButtonreverseButtonDOCUMENT ME!private ModelRGBRGBTADOCUMENT ME!private ModelRGBRGBTBDOCUMENT ME!private booleanrRuncurrently running.private javax.swing.JScrollPanescrollPaneDOCUMENT ME!private intscrollPaneSizeDOCUMENT ME!private static longserialVersionUIDUse serialVersionUID for interoperability.private booleanshowFrameBorderDOCUMENT ME!private booleanshowNumbersequals zDim of original 4D before 4D to 3D conversion.private int[]sliceOldNumberred, green, and blue origContrast remains constant until applyButton is pressed, restores contrast if cancelButton is pressed.private javax.swing.JSlidersliderDOCUMENT ME!private longstartTime= localTime2 - localTime.private booleanstopcontaining only 5 msec. sleep commands.private javax.swing.JToggleButtonstopButtonDOCUMENT ME!private longstopTime= localTime2 - localTime.private intstructureYDOCUMENT ME!private javax.swing.JTextFieldtextActualPerSecondDOCUMENT ME!private javax.swing.JTextFieldtextAnimationFrameNote that an attempt to have DocumentListener for textAnimationFrame set the slider value was unsuccessful.private javax.swing.JTextFieldtextFramesPerSecondDOCUMENT ME!javax.swing.JToggleButton[]toggleArrayDOCUMENT ME!private javax.swing.JToolBartoolBarDOCUMENT ME!private javax.swing.JPaneltopPaneland innerPanel placed in scrollPane.private intxScreenDOCUMENT ME!private intyScreenDOCUMENT ME!private floatzoomDOCUMENT ME!private intzShowDOCUMENT ME!private intzSliceDOCUMENT ME!- 
Fields inherited from class gov.nih.mipav.view.ViewJFrameBaseabsoluteGoToButton, absoluteGoToPanel, absoluteLabel, absoluteLabelVals, absolutePanel, absoluteXLabel, absoluteXTextField, absoluteYLabel, absoluteYTextField, absoluteZLabel, absoluteZTextField, defaultLUTa, defaultLUTb, displayMode, IMAGE_A, IMAGE_A_B, IMAGE_B, isClosing, linkedScrolling, linkFrame, linkTriFrame, 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, tabbedPane, talGoToButton, talGoToPanel, talXLabel, talXTextField, talYLabel, talYTextField, talZLabel, talZTextField, userInterface, zoomMode
 - 
Fields inherited from class java.awt.FrameCROSSHAIR_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.ComponentBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
- 
 - 
Constructor SummaryConstructors Constructor Description ViewJFrameAnimate(ModelImage _imageA, ModelLUT _LUTa, ModelImage _imageB, ModelLUT _LUTb, ModelRGB _RGBTA, ModelRGB _RGBTB, ViewJFrameBase controlFrame, int nRow, int nColumn, int originalZDim, boolean showFrameBorder, java.awt.Color borderCol, boolean disposeImage)Makes a frame of the animated image.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent event)Calls various methods depending on the action.private voidaddControlPanel(java.awt.Component c, java.awt.GridBagConstraints gbc, int x, int y, int w, int h)Method that adds components to the control paenl.private javax.swing.JToolBarbuildAnimateToolBar(java.awt.event.ActionListener al)Method to build the toolbar for the Animate frame.private voidbuildControlPanel()Panel that sets the at rest frame number and the desired frames per second and reports the actual frames per second.private voidbuildMenu()This method builds a menu which contains the options Save image as and Close Animate.private voidbuildScrollPane()Make a scroll frame and puts an image component into it.voidcancelBrightness()Resets current slice's brightness and contrast to original.voidcomponentResized(java.awt.event.ComponentEvent event)Resizes frame and all components.private javax.swing.JLabelcreateLabel(java.lang.String title)Helper method to create a label with the proper font and font color.voiddispose()Disposes of components and frame.ViewControlsImagegetControls()Get control widgets for frame.ModelImagegetImageA()Accessor that returns the reference to imageA.ModelImagegetImageB()Accessor that returns the reference to imageB.private javax.swing.JButtonmakeSeparator()Makes a separator for the use in the toolbars.voidremoveControls()Does nothing.voidsetActiveImage(int active)Does nothing.voidsetAlphaBlend(int value)Does nothing.voidsetBrightness(int brightness, float contrast)Sets the brightness and contrast of the component image.voidsetControls()Does nothing.voidsetDisposeImages(boolean doDispose)DOCUMENT ME!voidsetEnabled(boolean flag)Does nothing.voidsetFramesPerSecond(int fps)Sets the slider value (for invoking save image from dialog).voidsetImageB(ModelImage _imageB)Does nothing.voidsetPaintBitmapSwitch(boolean paintBitmapSwitch)Does nothing.voidsetRGBTA(ModelRGB RGBT)Sets the RGB LUT table for ARGB image A.voidsetRGBTB(ModelRGB RGBT)Sets the RGB LUT table for ARGB image B.voidsetSlice(int slice)Sets the slice to be displayed and updates title frame.voidsetTimeSlice(int slice)Does nothing.voidsetTitle()Set the title of the frame with the image name and magnification.voidstateChanged(javax.swing.event.ChangeEvent e)Sets values based on knob along slider.protected booleantestParameter(java.lang.String str, double minValue, double maxValue)Tests that the entered parameter is in range.voidupdateFrame(float sX, float sY)Does nothing.booleanupdateImageExtents()Does nothing.booleanupdateImages()Does nothing.booleanupdateImages(boolean forceShow)This methods calls the componentImage's update method to redraw the screen.booleanupdateImages(ModelLUT LUTa, ModelLUT LUTb, boolean forceShow, int interpMode)Does nothing.voidwindowActivated(java.awt.event.WindowEvent event)Does nothing.voidwindowClosed(java.awt.event.WindowEvent event)Does nothing.voidwindowClosing(java.awt.event.WindowEvent event)Stops thread, calls close.voidwindowDeactivated(java.awt.event.WindowEvent event)Does nothing.voidwindowDeiconified(java.awt.event.WindowEvent event)Does nothing.voidwindowIconified(java.awt.event.WindowEvent event)Does nothing.voidwindowOpened(java.awt.event.WindowEvent event)Does nothing.- 
Methods inherited from class gov.nih.mipav.view.ViewJFrameBaseabout, buildLabelPanel, canCloseImageBAfterLoad, close, close, closeImageB, componentHidden, componentMoved, 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, setScannerPosition
 - 
Methods inherited from class javax.swing.JFrameaddImpl, 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, update
 - 
Methods inherited from class java.awt.FrameaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
 - 
Methods inherited from class java.awt.WindowaddPropertyChangeListener, 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, toFront
 - 
Methods inherited from class java.awt.Containeradd, 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.Componentaction, 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, transferFocusUpCycle
 
- 
 
- 
- 
- 
Field Detail- 
serialVersionUIDprivate static final long serialVersionUID Use serialVersionUID for interoperability.- See Also:
- Constant Field Values
 
 - 
toggleArraypublic javax.swing.JToggleButton[] toggleArray DOCUMENT ME!
 - 
progressBarViewJProgressBar progressBar currently running.
 - 
actualPerSecondprivate float actualPerSecond DOCUMENT ME!
 - 
alphaBlendprivate float alphaBlend DOCUMENT ME!
 - 
apsprivate java.lang.String aps set to give 2 digits to the right of the decimal.
 - 
backForthButtonprivate javax.swing.JToggleButton backForthButton DOCUMENT ME!
 - 
bfRunprivate boolean bfRun DOCUMENT ME!
 - 
borderColprivate java.awt.Color borderCol z slice.
 - 
buttonArrayprivate javax.swing.JButton[] buttonArray DOCUMENT ME!
 - 
cForwardButtonprivate javax.swing.JToggleButton cForwardButton DOCUMENT ME!
 - 
cfRunprivate boolean cfRun DOCUMENT ME!
 - 
componentImageprivate ViewJComponentAnimate componentImage with complex images.
 - 
componentYprivate int componentY DOCUMENT ME!
 - 
controlFrameprivate ViewJFrameBase controlFrame DOCUMENT ME!
 - 
controlPanelprivate javax.swing.JPanel controlPanel DOCUMENT ME!
 - 
controlsprivate ViewControlsImage controls DOCUMENT ME!
 - 
cpGBCprivate java.awt.GridBagConstraints cpGBC DOCUMENT ME!
 - 
cpGBLprivate java.awt.GridBagLayout cpGBL DOCUMENT ME!
 - 
cReverseButtonprivate javax.swing.JToggleButton cReverseButton DOCUMENT ME!
 - 
crRunprivate boolean crRun DOCUMENT ME!
 - 
cycleTimeprivate long cycleTime DOCUMENT ME!
 - 
deleteButtonprivate javax.swing.JButton deleteButton DOCUMENT ME!
 - 
disposeImageprivate boolean disposeImage DOCUMENT ME!
 - 
etchedBorderprivate javax.swing.border.Border etchedBorder DOCUMENT ME!
 - 
extentsprivate int[] extents DOCUMENT ME!
 - 
forwardButtonprivate javax.swing.JToggleButton forwardButton DOCUMENT ME!
 - 
fpsSliderprivate javax.swing.JSlider fpsSlider DOCUMENT ME!
 - 
framesPerSecondprivate float framesPerSecond DOCUMENT ME!
 - 
fRunprivate boolean fRun DOCUMENT ME!
 - 
gbcTPprivate java.awt.GridBagConstraints gbcTP DOCUMENT ME!
 - 
imageAprivate ModelImage imageA DOCUMENT ME!
 - 
imageBprivate ModelImage imageB DOCUMENT ME!
 - 
imageBufferAprivate float[] imageBufferA DOCUMENT ME!
 - 
imageBufferBprivate float[] imageBufferB DOCUMENT ME!
 - 
innerPanelprivate javax.swing.JPanel innerPanel DOCUMENT ME!
 - 
labelAnimationFrameprivate javax.swing.JLabel labelAnimationFrame DOCUMENT ME!
 - 
labelFramesPerSecondprivate javax.swing.JLabel labelFramesPerSecond DOCUMENT ME!
 - 
labelTableprivate java.util.Hashtable<java.lang.Integer,javax.swing.JLabel> labelTable DOCUMENT ME!
 - 
localTimeprivate long localTime newmsWait = msWait - msElapsed is passed to the sleep function.
 - 
localTime2private long localTime2 DOCUMENT ME!
 - 
logMagDisplayprivate boolean logMagDisplay DOCUMENT ME!
 - 
LUTaprivate ModelLUT LUTa DOCUMENT ME!
 - 
LUTbprivate ModelLUT LUTb DOCUMENT ME!
 - 
menuObjprivate ViewMenuBuilder menuObj DOCUMENT ME!
 - 
minimumHeightprivate int minimumHeight DOCUMENT ME!
 - 
minimumToolBarWidthprivate int minimumToolBarWidth DOCUMENT ME!
 - 
mjpegQualityprivate float mjpegQuality DOCUMENT ME!
 - 
msElapsedprivate long msElapsed DOCUMENT ME!
 - 
msWaitprivate long msWait DOCUMENT ME!
 - 
nColumnprivate int nColumn DOCUMENT ME!
 - 
newmsWaitprivate long newmsWait DOCUMENT ME!
 - 
nfprivate java.text.NumberFormat nf DOCUMENT ME!
 - 
nImageprivate int nImage DOCUMENT ME!
 - 
nRowprivate int nRow DOCUMENT ME!
 - 
openingMenuBarprivate javax.swing.JMenuBar openingMenuBar DOCUMENT ME!
 - 
origBrightnessprivate int origBrightness DOCUMENT ME!
 - 
origContrastprivate float origContrast red, green, and blue origBrightness remains constant until applyButton is pressed, restores brightness if cancelButton is pressed.
 - 
originalZDimprivate int originalZDim for 4D originalXDim and originalYDim are xDim and yDim before 4D to 3D conversion.
 - 
paintBufferprivate int[] paintBuffer DOCUMENT ME!
 - 
pauseprivate boolean pause DOCUMENT ME!
 - 
pauseButtonprivate javax.swing.JToggleButton pauseButton DOCUMENT ME!
 - 
pixBufferprivate int[] pixBuffer DOCUMENT ME!
 - 
pressedBorderprivate javax.swing.border.Border pressedBorder DOCUMENT ME!
 - 
recordButtonprivate javax.swing.JButton recordButton DOCUMENT ME!
 - 
reverseButtonprivate javax.swing.JToggleButton reverseButton DOCUMENT ME!
 - 
RGBTAprivate ModelRGB RGBTA DOCUMENT ME!
 - 
RGBTBprivate ModelRGB RGBTB DOCUMENT ME!
 - 
rRunprivate boolean rRun currently running.
 - 
scrollPaneprivate javax.swing.JScrollPane scrollPane DOCUMENT ME!
 - 
scrollPaneSizeprivate int scrollPaneSize DOCUMENT ME!
 - 
showFrameBorderprivate boolean showFrameBorder DOCUMENT ME!
 - 
showNumbersprivate boolean showNumbers equals zDim of original 4D before 4D to 3D conversion.
 - 
sliceOldNumberprivate int[] sliceOldNumber red, green, and blue origContrast remains constant until applyButton is pressed, restores contrast if cancelButton is pressed.
 - 
sliderprivate javax.swing.JSlider slider DOCUMENT ME!
 - 
startTimeprivate long startTime = localTime2 - localTime.
 - 
stopTimeprivate long stopTime = localTime2 - localTime.
 - 
stopprivate boolean stop containing only 5 msec. sleep commands.
 - 
stopButtonprivate javax.swing.JToggleButton stopButton DOCUMENT ME!
 - 
structureYprivate int structureY DOCUMENT ME!
 - 
textActualPerSecondprivate javax.swing.JTextField textActualPerSecond DOCUMENT ME!
 - 
textAnimationFrameprivate javax.swing.JTextField textAnimationFrame Note that an attempt to have DocumentListener for textAnimationFrame set the slider value was unsuccessful.
 - 
textFramesPerSecondprivate javax.swing.JTextField textFramesPerSecond DOCUMENT ME!
 - 
toolBarprivate javax.swing.JToolBar toolBar DOCUMENT ME!
 - 
topPanelprivate javax.swing.JPanel topPanel and innerPanel placed in scrollPane.
 - 
xScreenprivate int xScreen DOCUMENT ME!
 - 
yScreenprivate int yScreen DOCUMENT ME!
 - 
zoomprivate float zoom DOCUMENT ME!
 - 
zShowprivate int zShow DOCUMENT ME!
 - 
zSliceprivate int zSlice DOCUMENT ME!
 
- 
 - 
Constructor Detail- 
ViewJFrameAnimatepublic ViewJFrameAnimate(ModelImage _imageA, ModelLUT _LUTa, ModelImage _imageB, ModelLUT _LUTb, ModelRGB _RGBTA, ModelRGB _RGBTB, ViewJFrameBase controlFrame, int nRow, int nColumn, int originalZDim, boolean showFrameBorder, java.awt.Color borderCol, boolean disposeImage) Makes a frame of the animated image.- Parameters:
- _imageA- Model of imageA
- _LUTa- Model of LUT for image A
- _imageB- Model of imageB
- _LUTb- Model of LUT for image B
- _RGBTA- Model RGB LUT for color image (A) else null
- _RGBTB- Model RGB LUT for color image (B) else null
- controlFrame- ViewJFrameBase passed to ViewJComponentAnimate
- nRow- rows of z images in 4D images
- nColumn- columns of z images in 4D images
- originalZDim- for 4D images equals zDim before 4D to 3D conversion
- showFrameBorder- puts colored borders around z images in 4D images
- borderCol- color of the z image borders
- disposeImage- dispose of imageA and imageB on frame close
 
 
- 
 - 
Method Detail- 
actionPerformedpublic void actionPerformed(java.awt.event.ActionEvent event) Calls various methods depending on the action.- Specified by:
- actionPerformedin interface- java.awt.event.ActionListener
- Specified by:
- actionPerformedin class- ViewJFrameBase
- Parameters:
- event- event that triggered function
 
 - 
cancelBrightnesspublic void cancelBrightness() Resets current slice's brightness and contrast to original.
 - 
componentResizedpublic void componentResized(java.awt.event.ComponentEvent event) Resizes frame and all components.- Specified by:
- componentResizedin interface- java.awt.event.ComponentListener
- Overrides:
- componentResizedin class- ViewJFrameBase
- Parameters:
- event- event that triggered function
 
 - 
disposepublic void dispose() Disposes of components and frame.- Overrides:
- disposein class- java.awt.Window
 
 - 
getControlspublic ViewControlsImage getControls() Get control widgets for frame.- Specified by:
- getControlsin class- ViewJFrameBase
- Returns:
- controls
 
 - 
getImageApublic ModelImage getImageA() Accessor that returns the reference to imageA.- Specified by:
- getImageAin class- ViewJFrameBase
- Returns:
- image
 
 - 
getImageBpublic ModelImage getImageB() Accessor that returns the reference to imageB.- Specified by:
- getImageBin class- ViewJFrameBase
- Returns:
- imageB
 
 - 
removeControlspublic void removeControls() Does nothing.- Specified by:
- removeControlsin class- ViewJFrameBase
 
 - 
setActiveImagepublic void setActiveImage(int active) Does nothing.- Specified by:
- setActiveImagein class- ViewJFrameBase
- Parameters:
- active- DOCUMENT ME!
 
 - 
setAlphaBlendpublic void setAlphaBlend(int value) Does nothing.- Specified by:
- setAlphaBlendin class- ViewJFrameBase
- Parameters:
- value- DOCUMENT ME!
 
 - 
setBrightnesspublic void setBrightness(int brightness, float contrast)Sets the brightness and contrast of the component image. Set all slices to have the new brightness and contrast. Results in createImage producing an Image img[slice] for every slice.- Parameters:
- brightness- Brightness to set.
- contrast- Contrast to set.
 
 - 
setControlspublic void setControls() Does nothing.- Specified by:
- setControlsin class- ViewJFrameBase
 
 - 
setDisposeImagespublic void setDisposeImages(boolean doDispose) DOCUMENT ME!- Parameters:
- doDispose- DOCUMENT ME!
 
 - 
setEnabledpublic void setEnabled(boolean flag) Does nothing.- Specified by:
- setEnabledin class- ViewJFrameBase
- Parameters:
- flag- DOCUMENT ME!
 
 - 
setFramesPerSecondpublic void setFramesPerSecond(int fps) Sets the slider value (for invoking save image from dialog).- Parameters:
- fps- int frames per second
 
 - 
setImageBpublic void setImageB(ModelImage _imageB) Does nothing.- Specified by:
- setImageBin class- ViewJFrameBase
- Parameters:
- _imageB- DOCUMENT ME!
 
 - 
setPaintBitmapSwitchpublic void setPaintBitmapSwitch(boolean paintBitmapSwitch) Does nothing.- Specified by:
- setPaintBitmapSwitchin class- ViewJFrameBase
- Parameters:
- paintBitmapSwitch- DOCUMENT ME!
 
 - 
setRGBTApublic void setRGBTA(ModelRGB RGBT) Sets the RGB LUT table for ARGB image A.- Specified by:
- setRGBTAin class- ViewJFrameBase
- Parameters:
- RGBT- the new RGB LUT to be applied to the image
 
 - 
setRGBTBpublic void setRGBTB(ModelRGB RGBT) Sets the RGB LUT table for ARGB image B.- Specified by:
- setRGBTBin class- ViewJFrameBase
- Parameters:
- RGBT- the new RGB LUT to be applied to the image
 
 - 
setSlicepublic void setSlice(int slice) Sets the slice to be displayed and updates title frame.- Specified by:
- setSlicein interface- ViewImageUpdateInterface
- Parameters:
- slice- indicates image slice to be displayed
 
 - 
setTimeSlicepublic void setTimeSlice(int slice) Does nothing.- Specified by:
- setTimeSlicein interface- ViewImageUpdateInterface
- Parameters:
- slice- DOCUMENT ME!
 
 - 
setTitlepublic void setTitle() Set the title of the frame with the image name and magnification.- Specified by:
- setTitlein class- ViewJFrameBase
 
 - 
stateChangedpublic void stateChanged(javax.swing.event.ChangeEvent e) Sets values based on knob along slider.- Specified by:
- stateChangedin interface- javax.swing.event.ChangeListener
- Overrides:
- stateChangedin class- ViewJFrameBase
- Parameters:
- e- Event that triggered this function
 
 - 
updateFramepublic void updateFrame(float sX, float sY)Does nothing.- Parameters:
- sX- DOCUMENT ME!
- sY- DOCUMENT ME!
 
 - 
updateImageExtentspublic boolean updateImageExtents() Does nothing.- Specified by:
- updateImageExtentsin interface- ViewImageUpdateInterface
- Specified by:
- updateImageExtentsin class- ViewJFrameBase
- Returns:
- DOCUMENT ME!
- See Also:
- ViewImageUpdateInterface
 
 - 
updateImagespublic final boolean updateImages() Does nothing.- Specified by:
- updateImagesin interface- ViewImageUpdateInterface
- Returns:
- DOCUMENT ME!
 
 - 
updateImagespublic final boolean updateImages(boolean forceShow) This methods calls the componentImage's update method to redraw the screen. Without LUT changes.- Specified by:
- updateImagesin interface- ViewImageUpdateInterface
- Parameters:
- forceShow- unused parameter
- Returns:
- boolean confirming successful update
 
 - 
updateImagespublic final boolean updateImages(ModelLUT LUTa, ModelLUT LUTb, boolean forceShow, int interpMode) Does nothing.- Specified by:
- updateImagesin interface- ViewImageUpdateInterface
- Parameters:
- LUTa- DOCUMENT ME!
- LUTb- DOCUMENT ME!
- forceShow- DOCUMENT ME!
- interpMode- DOCUMENT ME!
- Returns:
- DOCUMENT ME!
 
 - 
windowActivatedpublic void windowActivated(java.awt.event.WindowEvent event) Does nothing.- Specified by:
- windowActivatedin interface- java.awt.event.WindowListener
- Overrides:
- windowActivatedin class- ViewJFrameBase
- Parameters:
- event- DOCUMENT ME!
 
 - 
windowClosedpublic void windowClosed(java.awt.event.WindowEvent event) Does nothing.- Specified by:
- windowClosedin interface- java.awt.event.WindowListener
- Overrides:
- windowClosedin class- ViewJFrameBase
- Parameters:
- event- DOCUMENT ME!
 
 - 
windowClosingpublic void windowClosing(java.awt.event.WindowEvent event) Stops thread, calls close.- Specified by:
- windowClosingin interface- java.awt.event.WindowListener
- Overrides:
- windowClosingin class- ViewJFrameBase
- Parameters:
- event- event that triggered function
 
 - 
windowDeactivatedpublic void windowDeactivated(java.awt.event.WindowEvent event) Does nothing.- Specified by:
- windowDeactivatedin interface- java.awt.event.WindowListener
- Overrides:
- windowDeactivatedin class- ViewJFrameBase
- Parameters:
- event- DOCUMENT ME!
 
 - 
windowDeiconifiedpublic void windowDeiconified(java.awt.event.WindowEvent event) Does nothing.- Specified by:
- windowDeiconifiedin interface- java.awt.event.WindowListener
- Overrides:
- windowDeiconifiedin class- ViewJFrameBase
- Parameters:
- event- DOCUMENT ME!
 
 - 
windowIconifiedpublic void windowIconified(java.awt.event.WindowEvent event) Does nothing.- Specified by:
- windowIconifiedin interface- java.awt.event.WindowListener
- Overrides:
- windowIconifiedin class- ViewJFrameBase
- Parameters:
- event- DOCUMENT ME!
 
 - 
windowOpenedpublic void windowOpened(java.awt.event.WindowEvent event) Does nothing.- Specified by:
- windowOpenedin interface- java.awt.event.WindowListener
- Overrides:
- windowOpenedin class- ViewJFrameBase
- Parameters:
- event- DOCUMENT ME!
 
 - 
testParameterprotected boolean testParameter(java.lang.String str, double minValue, double maxValue)Tests that the entered parameter is in range.- Parameters:
- str- the value entered by the user
- minValue- the minimum value this variable may be set to
- maxValue- the maximum value this variable may be set to
- Returns:
- boolean result of test
 
 - 
addControlPanelprivate void addControlPanel(java.awt.Component c, java.awt.GridBagConstraints gbc, int x, int y, int w, int h)Method that adds components to the control paenl.- Parameters:
- c- component added to the control panel
- gbc- GridBagConstraints of added component
- x- grdix location
- y- gridy location
- w- gridwidth
- h- gridheight
 
 - 
buildAnimateToolBarprivate javax.swing.JToolBar buildAnimateToolBar(java.awt.event.ActionListener al) Method to build the toolbar for the Animate frame.- Parameters:
- al- Action listener (this frame)
- Returns:
- The animation toolbar
 
 - 
buildControlPanelprivate void buildControlPanel() Panel that sets the at rest frame number and the desired frames per second and reports the actual frames per second.
 - 
buildMenuprivate void buildMenu() This method builds a menu which contains the options Save image as and Close Animate.
 - 
buildScrollPaneprivate void buildScrollPane() Make a scroll frame and puts an image component into it.
 - 
createLabelprivate javax.swing.JLabel createLabel(java.lang.String title) Helper method to create a label with the proper font and font color.- Parameters:
- title- Text of the label.
- Returns:
- New label.
 
 - 
makeSeparatorprivate javax.swing.JButton makeSeparator() Makes a separator for the use in the toolbars.- Returns:
- Separator button.
 
 
- 
 
-