Package gov.nih.mipav.view
Class ViewJComponentPedsAtlasIconImage
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- gov.nih.mipav.view.ViewJComponentBase
-
- gov.nih.mipav.view.ViewJComponentEditImage
-
- gov.nih.mipav.view.ViewJComponentPedsAtlasIconImage
-
- All Implemented Interfaces:
PaintGrowListener
,ScreenCoordinateListener
,java.awt.event.MouseListener
,java.awt.event.MouseMotionListener
,java.awt.event.MouseWheelListener
,java.awt.image.ImageObserver
,java.awt.MenuContainer
,java.io.Serializable
,java.util.EventListener
public class ViewJComponentPedsAtlasIconImage extends ViewJComponentEditImage
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private int
iconHeight
private int
iconWidth
private int
linePosition
private java.lang.String
selectedOrientation
selected orientationprivate java.lang.String
thisOrientation
-
Fields inherited from class gov.nih.mipav.view.ViewJComponentEditImage
ACTIVE_IMAGE_COLOR, allActive, alphaBlend, alphaPrime, checkerDialog, cleanImageBufferA, cleanImageBufferB, crosshairCursor, cursorMode, displayFuzzy, drawVOIs, frame, frameControls, fuzzyThreshold, GEOMETRIC_ZOOM, gridColor, gridLabelingOn, gridLabelOrientation, gridOverlayOn, gridSpacingX, gridSpacingY, growDialog, imageA, imageActive, imageB, imageBufferA, imageBufferActive, imageBufferB, imageExtents, imageStatList, intensityDropper, less, lessB, lessG, lessR, LINEAR_ZOOM, logMagDisplay, LUTa, LUTb, m_kPatientSlice, m_kWinLevel, MAGR_HEIGHT, MAGR_MAG, MAGR_WIDTH, magSettings, maxDistance, maxExtents, modifyFlag, more, moreB, moreG, moreR, mousePressIsShiftDown, MultiFrameEyetrackerMode, nColumnCheckers, nRowCheckers, onTop, orientation, overlayOn, paintBitmap, paintBitmapBU, paintBitmapSwitch, paintBrush, paintBrushDim, paintBrushDimPrevious, paintBrushPrevious, paintBrushSize, paintBuffer, paintImage, paintImagePrevious, pixBuffer, pixBufferB, PluginEyetrackerMode, previousPaintBrush, rgbString, RGBTA, RGBTB, saveValue, saveValueB, saveValueG, saveValueR, saveX, saveY, saveZ, seedPaintBitmap, seedVal, seedValB, seedValG, seedValR, SingleFrameEyetrackerMode, sizeLimit, slice, stringOverride, time, timeSlice, toppedColor, useBComp, useGComp, useRComp, useVOI, variableThresholds, visRect, voiManager, winLevel, winLevelSet, xMod, xPG, xStart, yMod, yPG, yStart, zPG
-
Fields inherited from class gov.nih.mipav.view.ViewJComponentBase
ANNOTATION, BOTH, CENTER_VOI, CUBE_BOUNDS, DEFAULT, DELETE_POINT, DROPPER_PAINT, ELLIPSE, ERASER_PAINT, IMAGE_A, IMAGE_B, imageDim, img, imgB, interpMode, INTERPOLATE_A, INTERPOLATE_B, INTERPOLATE_BOTH, lastMouseX, lastMouseY, LEVELSET, LINE, LIVEWIRE, MAG_REGION, memImageA, memImageB, MOVE, MOVE_INTERSECTION_POINT, MOVE_POINT, MOVE_VOIPOINT, NEAREST_BOTH, NEW_POINT, NEW_VOI, OUT_OF_BOUNDS, PAINT_CAN, PAINT_VASC, PAINT_VOI, POINT_VOI, POLYLINE, POLYLINE_SLICE_VOI, PROBE, PROTRACTOR, QUICK_LUT, RECTANGLE, RECTANGLE3D, resolutionX, resolutionY, RETRACE, ROTATE, SELECT, showSliceNumber, sliceString, SMOOTH, SPLIT_VOI, textColor, TRANSLATE, VOI_3D, WAND, WIN_REGION, ZOOMING_IN, ZOOMING_OUT, zoomX, zoomY
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
-
Constructor Summary
Constructors Constructor Description ViewJComponentPedsAtlasIconImage(ViewJFrameBase _frame, ModelImage _imageA, ModelLUT _LUTa, float[] imgBufferA, int[] pixelBuffer, float zoom, int[] extents, boolean logMagDisplay, int _orientation, java.lang.String thisOrientation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
mouseClicked(java.awt.event.MouseEvent mouseEvent)
mouse clickedvoid
mouseDragged(java.awt.event.MouseEvent mouseEvent)
mouse draggedvoid
mouseEntered(java.awt.event.MouseEvent mouseEvent)
mouse enteredvoid
mouseExited(java.awt.event.MouseEvent mouseEvent)
mouse exitedvoid
mouseMoved(java.awt.event.MouseEvent mouseEvent)
mouse movedvoid
mousePressed(java.awt.event.MouseEvent mouseEvent)
mouse pressedprotected void
mousePressedPaint(java.awt.event.MouseEvent mouseEvent)
mouse pressed paintvoid
mouseReleased(java.awt.event.MouseEvent mouseEvent)
mouse releasedvoid
mouseWheelMoved(java.awt.event.MouseWheelEvent mouseWheelEvent)
mouse wheel movedvoid
paintComponent(java.awt.Graphics g)
Paints the image and calls drawSelf for all VOIs.boolean
show(int tSlice, int zSlice, ModelLUT _LUTa, ModelLUT _LUTb, boolean forceShow, int interpMode)
Shows the image and the VOI(s).boolean
show(int tSlice, int zSlice, ModelLUT _LUTa, ModelLUT _LUTb, boolean forceShow, int linePosition, java.lang.String selectedOrientation)
Shows the image and the VOI(s).-
Methods inherited from class gov.nih.mipav.view.ViewJComponentEditImage
calcPaintedVolume, cine, commitMask, commitMask, commitMask, commitMask, commitPaintToMask, commitPaintToUbyteMask, createImg, createImg, ctMode, dispose, disposeLocal, downSlice, draw3DVOIs, drawGradicules, drawStringBW, eraseAllPaint, fileToScreen, fileToScreenVOI, finalize, getActiveImage, getActiveImageBuffer, getActiveImageSliceBuffer, getActiveLUT, getActiveRGB, getAlphaBlend, getBandSpacing, getBrushSize, getCleanImageBufferB, getCursorMode, getFrame, getGridColor, getGridLabeling, getGridLabelOrientation, getGridOverlay, getGridSpacingX, getGridSpacingY, getHBrushSize, getImageA, getImageB, getImageBufferA, getImageBufferB, getIntensityDropper, getLUTa, getLUTb, getMaxExtents, getModifyFlag, getNumPoints, getnVOI, getOpacity, getOrientation, getOverlayOn, getPaintBitmap, getPaintBuffer, getPaintMask, getPixBuffer, getPixBufferB, getRASScannerPositionLabels, getRGBPaintComponents, getRGBTA, getRGBTB, getScannerPositionLabels, getShowMagIntensityEnabled, getSlice, getTimeSlice, getVOIHandler, getVOIManager, getxMod, getxSep, getxStart, getyMod, getySep, getyStart, getZoomMagnitudeX, getZoomMagnitudeY, isCheckerboardAnimate, isCheckerboarded, isHighlight, isMakingCheckerboard, isZeroToOneLUTAdj, loadPaintBrush, loopBandSpacing, loopBandSpacingReverse, openUDLUTandTransferFunct, paintComponentForPrinter, paintMagComponent, patientToScreen, patientToScreenVOI, performPaint, performPaint, processDefaultMouseDrag, quickSwitchBrush, readLUTandTFunctFrom, recordPanning, recordZoom, regionGrow, regionGrow, regionGrow, regionGrow, regionGrow, regionGrowColor, rememberPaintBrushSize, resetLUT, resetLUTs, resetPaintBrushSize, restartCheckerboardAnimateThread, saveLUTandTransferFunction, saveUDLUT, screenToFile, screenToFile, screenToFile, screenToFileVOI, screenToFileVOI, screenToFileVOI, setActiveImage, setAlphaBlend, setBandSpacing, setBuffers, setCenter, setCheckerboard, setCheckerboardAnimate, setCrosshairCursor, setCursorMode, setDisplayFuzzy, setDrawVOIs, setEnabled, setEyetrackerRecordingMode, setEyetrackerRecordMode, setFrameControls, setFullScreenModeLocation, setFuzzyThreshold, setGridColor, setGridLabelingOn, setGridLabelOrientation, setGridOverlay, setGridSpacingX, setGridSpacingY, setGrowDialog, setHasThreshold1, setHasThreshold2, setHighlightColor, setImageA, setImageB, setImageBufferB, setImageColocalize, setImageExtents, setImageSlice, setIntensityDropper, setLess, setLessB, setLessG, setLessR, setLogMagDisplay, setLUTa, setLUTb, setMakingCheckerboard, setMaxDistance, setModifyFlag, setMore, setMoreB, setMoreG, setMoreR, setOverlay, setPaintBitmapSwitch, setPaintBrushSize, setPaintMask, setPixelInformationAtLocation, setRegionGrowVars, setRGBPaintComponents, setRGBTA, setRGBTB, setShowMagIntensity, setShowSliceNum, setSizeLimit, setSlice, setStringOverride, setThresholdColors, setThresholds, setTimeSlice, setUseVOI, setVariableThresholds, setVOIManager, setWindLevel, setxSep, setySep, setZeroToOneLUTAdj, show, show, showBlank, showGridOverlay, showOverlay, showRegionInfo, showRegionInfo, showRegionInfo, showStatisticsCalculator, undoLastPaint, updatePaint, updatePaintBrushCursor, upSlice, useHighlight
-
Methods inherited from class gov.nih.mipav.view.ViewJComponentBase
disposeLocal, getImage, getInterpMode, getLastMouseX, getLastMouseY, getPreferredSize, getResolutionX, getResolutionY, getScaledX, getScaledY, getSelectedPaintColor, getShowMagIntensityEnabled, getSize, getZoomX, getZoomY, importImage, importImageB, LocalToScreen, makePaintBitmapBorder, makePaintImage, paintCursorBoxComponent, paintWindowComponent, paintWindowComponent, ScreenToLocal, setInterpolationMode, setResolutions, setShowSliceNumber, setSliceString, setTextColor, setZoom, setZoomExact, update
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getUI, getUIClassID, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintImmediately, paintImmediately, paramString, 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, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateUI
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gov.nih.mipav.view.renderer.WildMagic.VOI.ScreenCoordinateListener
getHeight, getResolutionX, getResolutionY, getWidth, getZoomX, getZoomY
-
-
-
-
Constructor Detail
-
ViewJComponentPedsAtlasIconImage
public ViewJComponentPedsAtlasIconImage(ViewJFrameBase _frame, ModelImage _imageA, ModelLUT _LUTa, float[] imgBufferA, int[] pixelBuffer, float zoom, int[] extents, boolean logMagDisplay, int _orientation, java.lang.String thisOrientation)
-
-
Method Detail
-
show
public boolean show(int tSlice, int zSlice, ModelLUT _LUTa, ModelLUT _LUTb, boolean forceShow, int linePosition, java.lang.String selectedOrientation)
Shows the image and the VOI(s).- Parameters:
tSlice
- t (time) slice to showzSlice
- z slice to show_LUTa
- LUTa - to change to new LUT for imageA else null_LUTb
- LUTb - to change to new LUT for imageB else nullforceShow
- forces this method to import image and recalculate java imageinterpMode
- image interpolation method (Nearest or Smooth)- Returns:
- boolean to indicate if the show was successful
-
show
public boolean show(int tSlice, int zSlice, ModelLUT _LUTa, ModelLUT _LUTb, boolean forceShow, int interpMode)
Shows the image and the VOI(s).- Overrides:
show
in classViewJComponentEditImage
- Parameters:
tSlice
- t (time) slice to showzSlice
- z slice to show_LUTa
- LUTa - to change to new LUT for imageA else null_LUTb
- LUTb - to change to new LUT for imageB else nullforceShow
- forces this method to import image and recalculate java imageinterpMode
- image interpolation method (Nearest or Smooth)- Returns:
- boolean to indicate if the show was successful
-
paintComponent
public void paintComponent(java.awt.Graphics g)
Description copied from class:ViewJComponentEditImage
Paints the image and calls drawSelf for all VOIs.- Overrides:
paintComponent
in classViewJComponentEditImage
- Parameters:
g
- graphics
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent mouseEvent)
mouse clicked- Specified by:
mouseClicked
in interfacejava.awt.event.MouseListener
- Overrides:
mouseClicked
in classViewJComponentEditImage
- Parameters:
mouseEvent
- event that triggers function; contains click count
-
mouseDragged
public void mouseDragged(java.awt.event.MouseEvent mouseEvent)
mouse dragged- Specified by:
mouseDragged
in interfacejava.awt.event.MouseMotionListener
- Overrides:
mouseDragged
in classViewJComponentEditImage
- Parameters:
mouseEvent
- event that triggered function
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent mouseEvent)
mouse entered- Specified by:
mouseEntered
in interfacejava.awt.event.MouseListener
- Overrides:
mouseEntered
in classViewJComponentEditImage
- Parameters:
mouseEvent
- event
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent mouseEvent)
mouse exited- Specified by:
mouseExited
in interfacejava.awt.event.MouseListener
- Overrides:
mouseExited
in classViewJComponentEditImage
- Parameters:
mouseEvent
- event that triggered function
-
mouseMoved
public void mouseMoved(java.awt.event.MouseEvent mouseEvent)
mouse moved- Specified by:
mouseMoved
in interfacejava.awt.event.MouseMotionListener
- Overrides:
mouseMoved
in classViewJComponentEditImage
- Parameters:
mouseEvent
- event that triggered the function
-
mousePressed
public void mousePressed(java.awt.event.MouseEvent mouseEvent)
mouse pressed- Specified by:
mousePressed
in interfacejava.awt.event.MouseListener
- Overrides:
mousePressed
in classViewJComponentEditImage
- Parameters:
mouseEvent
- event that triggered function
-
mousePressedPaint
protected void mousePressedPaint(java.awt.event.MouseEvent mouseEvent)
mouse pressed paint- Overrides:
mousePressedPaint
in classViewJComponentEditImage
- Parameters:
mouseEvent
- the mouseEvent that triggered this function call.
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent mouseEvent)
mouse released- Specified by:
mouseReleased
in interfacejava.awt.event.MouseListener
- Overrides:
mouseReleased
in classViewJComponentEditImage
- Parameters:
mouseEvent
- event that triggered function
-
mouseWheelMoved
public void mouseWheelMoved(java.awt.event.MouseWheelEvent mouseWheelEvent)
mouse wheel moved- Specified by:
mouseWheelMoved
in interfacejava.awt.event.MouseWheelListener
- Overrides:
mouseWheelMoved
in classViewJComponentEditImage
- Parameters:
mouseWheelEvent
- DOCUMENT ME!
-
-