Class NumberImageJViewer
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
fr.esrf.tangoatk.widget.attribute.NumberImageJViewer
- All Implemented Interfaces:
fr.esrf.tangoatk.core.IAttributeStateListener,fr.esrf.tangoatk.core.IErrorListener,fr.esrf.tangoatk.core.IImageListener,JDrawable,ActionListener,KeyListener,MouseListener,MouseMotionListener,MouseWheelListener,ImageObserver,MenuContainer,Serializable,EventListener,Accessible
public class NumberImageJViewer
extends JPanel
implements fr.esrf.tangoatk.core.IImageListener, MouseMotionListener, MouseListener, MouseWheelListener, ActionListener, KeyListener, JDrawable
A high level class to display a TANGO image and handle several image manipulation
function.
- Author:
- E.S.R.F
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected LabelViewerprotected booleanprotected JCheckBoxprotected doubleprotected doubleprotected booleanprotected JLabelprotected JButtonprotected JButtonprotected JDialogprotected JCheckBoxprotected JCheckBoxMenuItemprotected doubleprotected doubleprotected doubleprotected doubleprotected JPanelprotected JScrollPaneprotected JButtonprotected JPanelprotected doubleprotected doubleprotected JCheckBoxMenuItemprotected double[][]protected JButtonprotected JMenuItemprotected booleanprotected Gradientprotected int[]protected JButtonprotected JGradientViewerprotected JLabelprotected JGradientEditorprotected JButtonprotected JMenuItemprotected JImageJprotected JComboBoxprotected JLabelprotected JPopupMenuprotected JMenuItemprotected JMenuItemprotected booleanprotected booleanprotected intprotected Stringprotected FileFilterprotected Stringprotected JMenuItemprotected LineProfilerViewerprotected EventListenerListprotected JButtonprotected JMenuItemprotected booleanprotected JLabelprotected JTextFieldprotected JLabelprotected JTextFieldprotected fr.esrf.tangoatk.core.INumberImageprotected JCheckBoxprotected JCheckBoxMenuItemprotected Insetsprotected JButtonprotected Rectangleprotected JMenuItemprotected Fontprotected JButtonprotected JMenuItemprotected JButtonprotected intprotected JButtonprotected JLabelprotected JMenuItemprotected JButtonprotected JPopupMenuprotected JButtonprotected JMenuItemprotected JMenuItemprotected JButtonprotected JMenuItemprotected JMenuItemprotected JMenuItemprotected JMenuItemprotected JMenuItemprotected JMenuItemprotected JButtonprotected JLabelprotected JTextFieldprotected JButtonprotected JDialogprotected JMenuItemprotected JPanelprotected JCheckBoxMenuItemprotected booleanprotected booleanprotected JCheckBoxprotected intprotected JLabelprotected JCheckBoxMenuItemprotected JButtonprotected JFrameprotected JMenuItemprotected JTableRowprotected JTabbedPaneprotected JCheckBoxMenuItemprotected booleanprotected intprotected AxisPanelprotected AxisPanelprotected JButtonprotected JPanelprotected JComboBoxprotected JFrameprotected intprotected JImageprotected JMenuItemprotected JPanelprotected JLabelprotected JScrollPaneprotected intprotected intFields inherited from class javax.swing.JComponent
TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected voidprotected voidprotected Stringprotected intbestFit(double v) protected double[]protected double[]protected booleanprotected booleanprotected voidprotected voidprotected voidprotected voidprotected voidprotected voidvoidRemoves all listener belonging to the viewer.protected voidprotected double[][]computeLog(double[][] values) protected voidprotected voidprotected voidprotected voidprotected voidprotected voidvoiderrorChange(fr.esrf.tangoatk.core.ErrorEvent errorEvent) voidprotected voidprotected BufferedImagebooleanDetermines wheter this image viewer has auto zoom enabled.doubleReturns current best fit max value (user value)doubleReturns current best fit min value (user value)Returns the current image sizedouble[][]getData(ij.gui.Roi roi) double[][]getData(ij.gui.Roi roi, double[][] imageData, boolean innerRoi) getDescription(String name) Get a description of this extensions.getExtendedParam(String name) Returns the specified parameter value.String[]Returns current colormapReturns image margin.intgetImageXCoord(int x) Converts the component horizontal coordinate to the image coordinate.intgetImageYCoord(int y) Converts the component vertical coordinate to the image coordinate.protected Stringfr.esrf.tangoatk.core.INumberImagegetModel()Return current floating rectangle selectiongetXAxis()getYAxis()intgetZoom()voidimageChange(fr.esrf.tangoatk.core.NumberImageEvent evt) protected voidvoidCall after a component of a JDSwingObject is created, this give a default look and feel for editing.protected voidprotected voidprotected voidprotected voidbooleanReturns true when automatic best fit is enabledbooleanReturns true when best fit is onbooleanbooleanbooleanReturns true only if negative image is displayedbooleanReturns true is the image viewer menu is displayed when clicking on the right mouse button.booleanReturns true when the status line is visible.booleanReturns true when the toolbar is visible.voidvoidvoidprotected voidvoidLoad an image (gif,jpg or png) into the viewer.loadSetting(String filename) Load NumberImageViewer settings.static voidvoidvoidvoidvoidvoidvoidvoidvoidprotected voidvoidPrints out this image.protected voidprotected voidprotected voidprotected voidvoidprotected voidprotected voidprotected voidsaveFile()voidsaveSetting(String filename) Save settings.protected voidvoidsetAutoBestFit(boolean b) Sets the auto Best fit mode.voidsetAutoZoom(boolean auto) Enables or disables the auto zoom.voidsetBestFit(boolean b) Displays the image using the whole color range.voidsetBestFitMinMax(double min, double max) Sets the value of best fit min and max when automatic best fit is off.voidsetData(double[][] v) Sets data to display.booleansetExtendedParam(String name, String value, boolean popupErr) Sets the specified param.voidSets the colormapvoidsetGradientVisible(boolean b) Displays or hides the gradient (right panel).voidSets the image margin.voidsetLogValues(boolean logValues) voidsetModel(fr.esrf.tangoatk.core.INumberImage v) setModelSet the model.voidsetNegative(boolean b) Displays negative image when enabledvoidSets the floating selection.voidsetShowingMenu(boolean b) True to enable menu displayed when clicking on right mouse button.voidsetStatusLineVisible(boolean b) Displays or hides the status line (bottom panel).voidsetToolbarVisible(boolean b) Displays or hides the toolbar.voidsetVerticalExtent(int ratio) Extend verticaly the image.voidsetZoom(int zoomIndex) Sets the image zoom factor (does not affect the zoom dialog).protected voidprotected voidprotected voidshowJdrawError(boolean popup, String paramName, String message) protected voidprotected voidprotected voidprotected voidshowZoom()voidstateChange(fr.esrf.tangoatk.core.AttributeStateEvent evt) Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
model
protected fr.esrf.tangoatk.core.INumberImage model -
doubleValues
protected double[][] doubleValues -
oldSelection
-
profileMode
protected int profileMode -
showingMenu
protected boolean showingMenu -
sigHistogram
protected boolean sigHistogram -
isNegative
protected boolean isNegative -
startHisto
protected int startHisto -
gColor
-
gColormap
protected int[] gColormap -
iSz
protected int iSz -
listenerList
-
noMargin
-
autoZoom
protected boolean autoZoom -
firstRefresh
protected boolean firstRefresh -
userZoom
protected boolean userZoom -
verticalExtent
protected int verticalExtent -
lastConfig
-
isBestFit
protected boolean isBestFit -
autoBestFit
protected boolean autoBestFit -
bfMin
protected double bfMin -
bfMax
protected double bfMax -
autoBfMin
protected double autoBfMin -
autoBfMax
protected double autoBfMax -
bfa0
protected double bfa0 -
bfa1
protected double bfa1 -
curSelMin
protected double curSelMin -
curSelMax
protected double curSelMax -
imagePanel
-
buttonPanel
-
selectButton
-
selectMaxButton
-
roiColorsButton
-
roiColorsMenu
-
roiColorMenuItem
-
selectedRoiColorMenuItem
-
innerRoiColorMenuItem
-
selectedInnerRoiColorMenuItem
-
outerRoiColorMenuItem
-
selectedOuterRoiColorMenuItem
-
fileButton
-
zoomButton
-
tableButton
-
profileButton
-
histoButton
-
settingsButton
-
axisButton
-
loadButton
-
saveButton
-
printButton
-
buttonView
-
panelFont
-
cfgPanel
-
statusLabel
-
rangeLabel
-
avgLabel
-
selLabel
-
selText
-
imgMenu
-
infoMenuItem
-
bestFitMenuItem
-
negativeMenuItem
-
toolbarMenuItem
-
statusLineMenuItem
-
showGradMenuItem
-
selectionMenuItem
-
selectionMaxMenuItem
-
selectionColorMenuItem
-
fileMenuItem
-
zoomMenuItem
-
tableMenuItem
-
lineProfileMenuItem
-
histogramMenuItem
-
settingsMenuItem
-
loadMenuItem
-
saveMenuItem
-
saveDataFileMenuItem
-
printMenuItem
-
displayLogMenuItem
-
gradientTool
-
lineProfiler
-
zoomDialog
-
zoomPanel
-
zoomView
-
zoomImage
-
zoomCfgPanel
-
zoomCombo
-
zoomFactor
protected int zoomFactor -
zoomXOrg
protected int zoomXOrg -
zoomYOrg
protected int zoomYOrg -
zoomText
-
settingsDialog
-
settingsPanel
-
attNameLabel
-
propButton
-
sigHistogramCheck
-
bestFitCheck
-
autoBestFitCheck
-
minBestFitLabel
-
minBestFitText
-
maxBestFitLabel
-
maxBestFitText
-
negativeCheck
-
imageSizeCombo
-
imageSizeLabel
-
gradViewer
-
gradButton
-
gradLabel
-
okButton
-
cancelButton
-
axisDialog
-
tabPane
-
xAxisPanel
-
yAxisPanel
-
axisCloseButton
-
tableDialog
-
tablePanel
-
lastSnapshotLocation
-
lastFileFilter
-
logValues
protected boolean logValues
-
-
Constructor Details
-
NumberImageJViewer
public NumberImageJViewer()Create a new NumberImageViewer
-
-
Method Details
-
initImagePanel
protected void initImagePanel() -
initButtonPanel
protected void initButtonPanel() -
initGradient
protected void initGradient() -
initStatusLine
protected void initStatusLine() -
initPopupMenu
protected void initPopupMenu() -
initForEditing
public void initForEditing()Description copied from interface:JDrawableCall after a component of a JDSwingObject is created, this give a default look and feel for editing.- Specified by:
initForEditingin interfaceJDrawable
-
getComponent
- Specified by:
getComponentin interfaceJDrawable- Returns:
- the JComponent that implements this interface.
-
getDescription
Description copied from interface:JDrawableGet a description of this extensions.- Specified by:
getDescriptionin interfaceJDrawable- Parameters:
name- Extension name- Returns:
- Empty string for no description.
-
getExtensionList
- Specified by:
getExtensionListin interfaceJDrawable- Returns:
- list of extension name for this objects (Empty array for none).
-
setExtendedParam
Description copied from interface:JDrawableSets the specified param.- Specified by:
setExtendedParamin interfaceJDrawable- Parameters:
name- Parameter name (Case unsensitive).value- Parameter value.popupErr- true when the JDrawable should display a popup if the parameter value is incorrect, false otherwise. Note that the JDrawable must not display an error message if the parameter does not exists even if popupAllowed is true.- Returns:
- true if parameters has been succesfully applied, false otherwise.
-
getExtendedParam
Description copied from interface:JDrawableReturns the specified parameter value.- Specified by:
getExtendedParamin interfaceJDrawable- Parameters:
name- Param name (Case unsensitive).- Returns:
- Empty string if not exists, the value otherwise.
-
showJdrawError
-
addRoiListener
-
removeRoiListener
-
fireRoiChange
public void fireRoiChange() -
setBestFit
public void setBestFit(boolean b) Displays the image using the whole color range.- Parameters:
b- Best fit toggle
-
isBestFit
public boolean isBestFit()Returns true when best fit is on- Returns:
- Best fit state
-
setAutoBestFit
public void setAutoBestFit(boolean b) Sets the auto Best fit mode. Computes maximum and minimum value of the image when enabled else uses the min and max best fit user values.- Parameters:
b- True to enable auto best fit
-
isAutoBestFit
public boolean isAutoBestFit()Returns true when automatic best fit is enabled- Returns:
- Auto best fit state
-
setBestFitMinMax
public void setBestFitMinMax(double min, double max) Sets the value of best fit min and max when automatic best fit is off.- Parameters:
min- Minimum valuemax- Maximum value
-
getBestFitMin
public double getBestFitMin()Returns current best fit min value (user value)- Returns:
- Minimum value
-
getBestFitMax
public double getBestFitMax()Returns current best fit max value (user value)- Returns:
- Maximum value
-
setGradient
Sets the colormap- Parameters:
g- New gradient colormap
-
getGradient
Returns current colormap- Returns:
- Gradient object
-
setNegative
public void setNegative(boolean b) Displays negative image when enabled- Parameters:
b- True for negtive image
-
isNegative
public boolean isNegative()Returns true only if negative image is displayed- Returns:
- True when negative
-
setToolbarVisible
public void setToolbarVisible(boolean b) Displays or hides the toolbar.- Parameters:
b- True if toolbar is displayed
-
isToolbarVisible
public boolean isToolbarVisible()Returns true when the toolbar is visible.- Returns:
- Toolbar visible state
-
setStatusLineVisible
public void setStatusLineVisible(boolean b) Displays or hides the status line (bottom panel).- Parameters:
b- True if status line is displayed
-
isStatusLineVisible
public boolean isStatusLineVisible()Returns true when the status line is visible.- Returns:
- Status line visible state
-
setGradientVisible
public void setGradientVisible(boolean b) Displays or hides the gradient (right panel).- Parameters:
b- True if status line is displayed
-
isGradientVisible
public boolean isGradientVisible()- Returns:
- true when the gradient is visible.
-
setShowingMenu
public void setShowingMenu(boolean b) True to enable menu displayed when clicking on right mouse button.- Parameters:
b- True to enable the menu
-
setZoom
public void setZoom(int zoomIndex) Sets the image zoom factor (does not affect the zoom dialog). If you want to start you viewer with a fixed zoom factor, you have to call setZoom() before setModel().Possible zoomIndex values are: 0 : 800% 1 : 400% 2 : 200% 3 : 100% 4 : 50% 5 : 25% 6 : 12.5%
- Parameters:
zoomIndex- ZoomFactor index (see description).
-
getZoom
public int getZoom()- Returns:
- the current zoom factor index.
- See Also:
-
setAutoZoom
public void setAutoZoom(boolean auto) Enables or disables the auto zoom. When enabled, the image size (zoom) is automatically adjusted according to the component size. The calcul of the size is triggered by a call to setData() or imageChange().- Parameters:
auto- AutoZoom flag
-
getAutoZoom
public boolean getAutoZoom()Determines wheter this image viewer has auto zoom enabled.- Returns:
- Autozoom flag
- See Also:
-
isShowingMenu
public boolean isShowingMenu()Returns true is the image viewer menu is displayed when clicking on the right mouse button.- Returns:
- True is menu is enabled
-
getImageMargin
Returns image margin.- Returns:
- Mergin
-
setImageMargin
Sets the image margin.- Parameters:
i- Image margin
-
getCurrentImageSize
Returns the current image size- Returns:
- Current image size
-
setSelection
Sets the floating selection.- Parameters:
r- Rectangle to select
-
getSelection
Return current floating rectangle selection- Returns:
- Selection rectangle, Null is returned when nothing is selected.
-
setData
public void setData(double[][] v) Sets data to display.- Parameters:
v- Handle to data
-
loadImage
Load an image (gif,jpg or png) into the viewer. For color image the green field is taken.- Parameters:
fileName- File to be loaded- Throws:
IOException- Exception thrown in case of failure
-
getImagePanel
- Returns:
- the imagePanel
-
getXAxis
- Returns:
- a handle to the x axis.
-
getYAxis
- Returns:
- a handle to the Y axis.
-
getGradientAxis
- Returns:
- handle to the Gradient axis.
-
getImageXCoord
public int getImageXCoord(int x) Converts the component horizontal coordinate to the image coordinate.- Parameters:
x- Component horizontal coordinate- Returns:
- Converted coordinate
-
getImageYCoord
public int getImageYCoord(int y) Converts the component vertical coordinate to the image coordinate.- Parameters:
y- Component vertical coordinate- Returns:
- Converted coordinate
-
setVerticalExtent
public void setVerticalExtent(int ratio) Extend verticaly the image.- Parameters:
ratio- Vertical extent ration
-
adjustToolbarSize
protected void adjustToolbarSize() -
freePopup
protected void freePopup() -
buildProfileData
protected double[] buildProfileData() -
buildHistogramData
protected double[] buildHistogramData() -
refreshLineProfile
protected void refreshLineProfile() -
refreshSelectionMinMax
protected void refreshSelectionMinMax() -
refreshComponents
protected void refreshComponents() -
selectionChanged
protected void selectionChanged() -
refreshStatusLine
protected void refreshStatusLine() -
showZoom
protected void showZoom() -
applySettings
protected void applySettings() -
saveSetting
Save settings.- Parameters:
filename- file to be saved.
-
getSettings
- Returns:
- the configuration as string.
- See Also:
-
loadSetting
Load NumberImageViewer settings.- Parameters:
filename- file to be read- Returns:
- An error string or An empty string when succes
-
applySettings
-
saveButtonActionPerformed
protected void saveButtonActionPerformed() -
loadButtonActionPerformed
protected void loadButtonActionPerformed() -
showAxisDialog
protected void showAxisDialog() -
showSettings
protected void showSettings() -
getData
public double[][] getData(ij.gui.Roi roi) -
getData
public double[][] getData(ij.gui.Roi roi, double[][] imageData, boolean innerRoi) -
buildTable
protected boolean buildTable() -
showTable
protected void showTable() -
showPropertyFrame
protected void showPropertyFrame() -
showGradientEditor
protected void showGradientEditor() -
constructLineProfiler
protected void constructLineProfiler() -
constructTablePanel
protected void constructTablePanel() -
constructZoomPanel
protected void constructZoomPanel() -
constructSettingsPanel
protected void constructSettingsPanel() -
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
mouseClicked
- Specified by:
mouseClickedin interfaceMouseListener
-
mouseReleased
- Specified by:
mouseReleasedin interfaceMouseListener
-
mousePressed
- Specified by:
mousePressedin interfaceMouseListener
-
mouseWheelMoved
- Specified by:
mouseWheelMovedin interfaceMouseWheelListener
-
keyPressed
- Specified by:
keyPressedin interfaceKeyListener
-
keyTyped
- Specified by:
keyTypedin interfaceKeyListener
-
keyReleased
- Specified by:
keyReleasedin interfaceKeyListener
-
errorChange
public void errorChange(fr.esrf.tangoatk.core.ErrorEvent errorEvent) - Specified by:
errorChangein interfacefr.esrf.tangoatk.core.IErrorListener
-
stateChange
public void stateChange(fr.esrf.tangoatk.core.AttributeStateEvent evt) - Specified by:
stateChangein interfacefr.esrf.tangoatk.core.IAttributeStateListener
-
imageChange
public void imageChange(fr.esrf.tangoatk.core.NumberImageEvent evt) - Specified by:
imageChangein interfacefr.esrf.tangoatk.core.IImageListener
-
setModel
public void setModel(fr.esrf.tangoatk.core.INumberImage v) setModelSet the model.- Parameters:
v- Value to assign to model. This image must have a height equals to 2.
-
getModel
public fr.esrf.tangoatk.core.INumberImage getModel() -
clearModel
public void clearModel()Removes all listener belonging to the viewer. -
saveEdf
-
getLabelInfoString
-
computeVerticalExtent
protected void computeVerticalExtent() -
computeAutoZoom
protected void computeAutoZoom() -
preComputeBestFit
protected void preComputeBestFit() -
bestFit
protected int bestFit(double v) -
buildZoom
protected boolean buildZoom() -
saveFile
protected void saveFile() -
get8BitImage
-
convertImage
protected void convertImage() -
printImage
public void printImage()Prints out this image. -
isLogValues
public boolean isLogValues()- Returns:
- the logValues
-
setLogValues
public void setLogValues(boolean logValues) - Parameters:
logValues- the logValues to set
-
computeLog
protected double[][] computeLog(double[][] values) -
changeROIColor
protected void changeROIColor() -
changeROISelectionColor
protected void changeROISelectionColor() -
changeInteriorROIColor
protected void changeInteriorROIColor() -
changeInteriorROISelectionColor
protected void changeInteriorROISelectionColor() -
changeExteriorROIColor
protected void changeExteriorROIColor() -
changeExteriorROISelectionColor
protected void changeExteriorROISelectionColor() -
main
-