public class Hyperstack_Macro extends Hyperstack_Maker
The GUI provides a batch mode option, in which case hyperstacks are not shown, only opened in memory.
The currently hidden image can be shown by calling setBatchMode("show")
in the macro code.
Note : setBatchMode("exit and display")
should work too, but in practice not the case.
The GUI also provides a directory input field, for a "default" directory.
This directory will be returned by the macro-command getDirectory("default"), and will be created if not existing already.
If no directory is provided, a default directory macro_output in the dataset directory will be set as default.
This way saving images in the macro-code is a bit simpler such as :
save("tiff", getDirectory("default") + filename)
Hyperstack_Maker.DisplayMode
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
channelsLuts, displayMagnification, groupedImageInfos, metadataParser, METHODS, proj, projDir, projectStack, projMethod, saturation, saveProjection, saveStack, showProjection, showProjectionTickbox, showStack, stack, stackDir, startSlice, stopSlice, useCustomRange, useVirtual
filenameFilter, headless, imageDirectory, labelChannels, labelSubposition, labelTimepoint, labelZ, listChannels, listSubPositions, listTimepoints, listWells, listZslices, nColumns, nGroupCheckboxes, nRows, plate, rowSelectionCheckboxes
checkbox, choice, defaultChoiceIndexes, defaultStrings, defaultText, defaultValues, numberField, radioButtonGroups, slider, stringField, textArea1, textArea2, theLabel
Constructor and Description |
---|
Hyperstack_Macro(String title,
acquifer.core.im.FilenameFilter filenameFilter) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Handle all clicks especially for this class, clicks on the "load macro" button.
|
protected void |
composeGUI()
Compose the right panel of the plugin GUI.
|
boolean |
executedOnce()
Method called once in the
Hyperstack_Maker.run() method before Hyperstack_Maker.loopBody(ImageSeries) is called for each stack. |
boolean |
loopBody(acquifer.core.ImageSeries imageSeries)
Define what is executed for each list of images representing a hyperstack.
|
void |
readGuiInputs()
Read the GUI inputs, in a macro-recordable way : storing them as fields of the class.
|
createImageWindow, getChannelsLuts, getLutNameForChannel, getLuts, groupAsHyperStacks, isMultiDimensional, isOneDimensional, makeHyperStack, makeHyperStack, makeHyperStack, makeHyperStack, makeVirtualStack, renameProjectedSlices, resetDisplayRange, run, setChannelLut, setContrastSaturation, setDefaultChannelsLut, setDefaultDisplayMagnification, setDefaultSliderPositions, setHyperStackDisplayMode, setLUTs, showHyperStacks, updateDisplayMagnification, validateCustomRange, validateInputs
addDefaultDirectoryInput, addMessageBold, convertToIntegerSet, createAndSetDefaultDirectory, escapePressed, getBoldFont, getChannels, getCheckboxesForColumn, getCheckboxGroup, getCurrentImageDirectory, getDefaultInputs, getFont, getHeaderCheckboxes, getImageDirectory, getMatchingDataset, getMatchingDataset, getMatchingDataset, getNextStringAsIntegers, getSavedWellCheckboxState, getSubpositions, getTimepoints, getWellCheckboxes, getWells, getZslice, itemStateChanged, readMacroContent, saveDefaultParameters, saveWellCheckboxState, setOKLabel, showDialog, textValueChanged
addButton, addComponent, addComponent, addDirectoryField, addDirectoryField, addDirectoryOrFileField, addDirectoryOrFileField, addFileField, addFileField, addImage, addImage, addImage, addImageChoice, addStringField, createImageIcon, getConstraints, getNextImage, keyPressed, keyReleased, keyTyped
addCheckbox, addCheckboxGroup, addCheckboxGroup, addChoice, addDialogListener, addEnumChoice, addHelp, addImage, addMessage, addMessage, addMessage, addNumericField, addNumericField, addNumericField, addPanel, addPanel, addPreviewCheckbox, addPreviewCheckbox, addRadioButtonGroup, addSlider, addSlider, addStringField, addTextAreas, addToSameRow, adjustmentValueChanged, centerDialog, dispose, enableYesNoCancel, enableYesNoCancel, focusGained, focusLost, getButtons, getCheckboxes, getChoices, getErrorMessage, getInsets, getInstance, getLabel, getMessage, getNextBoolean, getNextChoice, getNextChoiceIndex, getNextEnumChoice, getNextNumber, getNextRadioButton, getNextString, getNextText, getNumericFields, getPreviewCheckbox, getRadioButtonGroups, getSliders, getStringFields, getTextArea1, getTextArea2, getValue, hideCancelButton, invalidNumber, isMacro, isPreviewActive, paint, parseDouble, previewRunning, repaint, setCancelLabel, setDefaultString, setEchoChar, setFont, setHelpLabel, setInsets, setLocation, setSmartRecording, setup, wasCanceled, wasOKed, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowIconified, windowOpened
addNotify, getAccessibleContext, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, paramString, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, setVisible, show, toBack
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, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, postEvent, processEvent, processWindowEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
add, add, add, add, add, addContainerListener, addImpl, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, update, validate, validateTree
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, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, 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, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public Hyperstack_Macro(String title, acquifer.core.im.FilenameFilter filenameFilter)
protected void composeGUI()
Hyperstack_Maker
composeGUI
in class Hyperstack_Maker
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class BatchDialog
public void readGuiInputs()
Hyperstack_Maker
readGuiInputs
in class Hyperstack_Maker
public boolean executedOnce()
Hyperstack_Maker
Hyperstack_Maker.run()
method before Hyperstack_Maker.loopBody(ImageSeries)
is called for each stack. executedOnce
in class Hyperstack_Maker
public boolean loopBody(acquifer.core.ImageSeries imageSeries)
Hyperstack_Maker
Hyperstack_Maker.saveStack
, Hyperstack_Maker.showStack
..loopBody
in class Hyperstack_Maker
imageSeries
- list of images infos, for a specific well and sub-Position