public interface MainInterface
MainInterfaceGui
Modifier and Type | Method and Description |
---|---|
void |
addActiveSequenceListener(ActiveSequenceListener listener)
Add active sequence listener.
|
void |
addActiveViewerListener(ActiveViewerListener listener)
Add active viewer listener.
|
void |
addCanExitListener(AcceptListener listener)
Add "can exit" listener.
|
void |
addFocusedSequenceListener(FocusedSequenceListener listener)
Deprecated.
Use
addActiveSequenceListener(ActiveSequenceListener) instead. |
void |
addFocusedViewerListener(FocusedViewerListener listener)
Deprecated.
Use
addActiveViewerListener(ActiveViewerListener) instead. |
void |
addGlobalOverlayListener(GlobalOverlayListener listener)
Add global Overlay listener
|
void |
addGlobalPluginListener(GlobalPluginListener listener)
Add global Plugin listener
|
void |
addGlobalROIListener(GlobalROIListener listener)
Add global ROI listener
|
void |
addGlobalSequenceListener(GlobalSequenceListener listener)
Add global Sequence listener
|
void |
addGlobalViewerListener(GlobalViewerListener listener)
Add global Viewer listener
|
void |
addListener(MainListener listener)
Deprecated.
Use addGlobalXXXListener instead.
|
void |
addSequence(Sequence sequence)
Open a viewer for the specified sequence.
|
void |
addToDesktopPane(javax.swing.JInternalFrame internalFrame)
Add the frame to the Desktop pane and change its layer value to make it over the other
internal frames.
|
void |
beginUpdate()
Deprecated.
|
boolean |
canExitExternal()
Check if exit is allowed from registered listeners
|
void |
closeAllViewers()
Close all viewers
|
void |
closeSequence(Sequence sequence)
Close all viewers displaying the specified sequence.
|
void |
closeViewersOfSequence(Sequence sequence)
Deprecated.
Use
closeSequence(Sequence) instead. |
void |
endUpdate()
Deprecated.
|
IcyBufferedImage |
getActiveImage()
Returns the current active image.
|
LUT |
getActiveLUT()
Returns the LUT from the active viewer window.
|
java.util.ArrayList<Plugin> |
getActivePlugins()
Returns the currently active plugins
|
Sequence |
getActiveSequence()
Returns the current active sequence.
|
Viewer |
getActiveViewer()
Returns the active viewer window.
|
ApplicationMenu |
getApplicationMenu() |
IcyDesktopPane |
getDesktopPane() |
java.util.ArrayList<javax.swing.JFrame> |
getExternalFrames()
Returns all external frames
|
Sequence |
getFirstSequenceContaining(Overlay overlay)
Returns the first active sequence containing the specified Overlay
|
Sequence |
getFirstSequenceContaining(Painter painter)
Deprecated.
Use
getFirstSequenceContaining(Overlay) instead. |
Sequence |
getFirstSequenceContaining(ROI roi)
Returns the first active sequence containing the specified ROI
|
Sequence |
getFirstSequencesContaining(Painter painter)
Deprecated.
|
Sequence |
getFirstSequencesContaining(ROI roi)
Deprecated.
|
Viewer |
getFirstViewer(Sequence sequence)
Returns first viewer attached to specified sequence
|
Viewer |
getFirstViewerContaining(Overlay overlay)
Returns first viewer for the sequence containing specified Overlay
|
Viewer |
getFirstViewerContaining(Painter painter)
Deprecated.
use
getFirstViewerContaining(Overlay) instead. |
Viewer |
getFirstViewerContaining(ROI roi)
Returns first viewer for the sequence containing specified ROI
|
IcyBufferedImage |
getFocusedImage()
Deprecated.
Use
getActiveImage() instead. |
Sequence |
getFocusedSequence()
Deprecated.
Use
getActiveSequence() instead. |
Viewer |
getFocusedViewer()
Deprecated.
Use
getActiveViewer() instead. |
MainFrame |
getFrame()
Deprecated.
Use
getMainFrame() instead |
ImageJWrapper |
getImageJ()
Returns the ImageJ object instance
|
InspectorPanel |
getInspector()
Returns the inspector object (right informations panel)
|
java.util.ArrayList<javax.swing.JInternalFrame> |
getInternalFrames()
Returns all internal frames
|
LayersPanel |
getLayersPanel()
Returns the Layer manager panel
|
MainFrame |
getMainFrame()
Get Icy main frame
|
java.util.List<Overlay> |
getOverlays()
Returns all active Overlay.
|
java.util.ArrayList<Painter> |
getPainters()
Deprecated.
Use
getOverlays() instead. |
XMLPreferences |
getPreferences() |
ROI |
getROI(Overlay overlay)
Returns the ROI containing the specified overlay (if any)
|
ROI |
getROI(Painter painter)
Deprecated.
Use
getROI(Overlay) instead. |
ROITask |
getROIRibbonTask()
Returns the ROI task of the Ribbon menu.
|
java.util.ArrayList<ROI> |
getROIs()
Returns all active ROI
|
RoisPanel |
getRoisPanel()
Returns the ROI manager panel
|
SearchEngine |
getSearchEngine()
Get Icy main searh engine.
|
java.lang.String |
getSelectedTool()
Returns current selected tool (ROI / Selection)
|
java.util.ArrayList<Sequence> |
getSequences()
Returns the list of opened sequence (sequence actually displayed in a viewer)
|
java.util.ArrayList<Sequence> |
getSequences(java.lang.String name)
Returns the list of opened sequence (sequence actually displayed in a viewer) matching the specified name.
|
java.util.List<Sequence> |
getSequencesContaining(Overlay overlay)
Returns all active sequence containing the specified Overlay
|
java.util.ArrayList<Sequence> |
getSequencesContaining(Painter painter)
Deprecated.
Use
getSequencesContaining(Overlay) instead. |
java.util.ArrayList<Sequence> |
getSequencesContaining(ROI roi)
Returns all active sequence containing the specified ROI
|
SwimmingPool |
getSwimmingPool()
Returns the SwimmingPool object
|
TaskFrameManager |
getTaskWindowManager() |
ToolRibbonTask |
getToolRibbon()
Deprecated.
Use
getROIRibbonTask() instead |
IcyUndoManager |
getUndoManager()
Returns the current active
UndoManager (UndoManager from active sequence). |
java.util.ArrayList<Viewer> |
getViewers()
Returns all active viewers
|
java.util.ArrayList<Viewer> |
getViewers(Sequence sequence)
Returns viewers attached to specified sequence
|
void |
init()
Creates the windows in the Icy.getMainInterface()
|
boolean |
isAlwaysOnTop()
Returns true if the main frame is set as "always on top"
|
boolean |
isDetachedMode()
Returns true if the application is in "detached" mode
|
boolean |
isHeadLess()
Return true is the application is running in headless mode (no screen device).
|
boolean |
isOpened(Sequence sequence)
Returns true if specified sequence is currently opened (displayed in a viewer)
|
boolean |
isUniqueViewer(Viewer viewer)
Returns true if specified viewer is the unique viewer for its attached sequence
|
boolean |
isUpdating()
Deprecated.
|
boolean |
isVirtualMode()
Return true is the virtual mode is enabled.
|
boolean |
redo()
Redo the next Undoable change set in the active Sequence
UndoManager |
void |
registerExternalFrame(javax.swing.JFrame frame)
Deprecated.
|
void |
registerPlugin(Plugin plugin) |
void |
registerViewer(Viewer viewer) |
void |
removeActiveSequenceListener(ActiveSequenceListener listener)
Remove focused sequence listener.
|
void |
removeActiveViewerListener(ActiveViewerListener listener)
Remove active viewer listener.
|
void |
removeCanExitListener(AcceptListener listener)
Remove "can exit" listener
|
void |
removeFocusedSequenceListener(FocusedSequenceListener listener)
Deprecated.
Use
removeActiveSequenceListener(ActiveSequenceListener) instead. |
void |
removeFocusedViewerListener(FocusedViewerListener listener)
Deprecated.
Use
removeActiveViewerListener(ActiveViewerListener) instead. |
void |
removeGlobalOverlayListener(GlobalOverlayListener listener)
Remove global Overlay listener
|
void |
removeGlobalPluginListener(GlobalPluginListener listener)
Remove global Plugin listener
|
void |
removeGlobalROIListener(GlobalROIListener listener)
Remove global ROI listener
|
void |
removeGlobalSequenceListener(GlobalSequenceListener listener)
Remove global Sequence listener
|
void |
removeGlobalViewerListener(GlobalViewerListener listener)
Remove global Viewer listener
|
void |
removeListener(MainListener listener)
Deprecated.
Use removeGlobalXXXListener instead.
|
void |
setActiveViewer(Viewer viewer)
Set the current active viewer.
|
void |
setAlwaysOnTop(boolean value)
Set the main frame as "always on top"
|
void |
setDetachedMode(boolean value)
Set the the application is in "detached" mode
|
void |
setFocusedViewer(Viewer viewer)
Deprecated.
Use
setActiveViewer(Viewer) instead. |
void |
setGlobalViewSyncId(int id)
Set all active viewers to specified synchronization group id (0 means unsynchronized).
|
void |
setSelectedTool(java.lang.String command)
Set current selected tool (ROI / Selection).
|
void |
setVirtualMode(boolean value)
Sets the virtual mode.
|
boolean |
undo()
Undo to the last Undoable change set in the active Sequence
UndoManager |
void |
unRegisterExternalFrame(javax.swing.JFrame frame)
Deprecated.
|
void |
unRegisterPlugin(Plugin plugin) |
void |
unRegisterViewer(Viewer viewer) |
void init()
boolean canExitExternal()
boolean isHeadLess()
boolean isVirtualMode()
void setVirtualMode(boolean value)
void addSequence(Sequence sequence)
java.util.ArrayList<javax.swing.JInternalFrame> getInternalFrames()
java.util.ArrayList<javax.swing.JFrame> getExternalFrames()
XMLPreferences getPreferences()
InspectorPanel getInspector()
RoisPanel getRoisPanel()
LayersPanel getLayersPanel()
java.util.ArrayList<Plugin> getActivePlugins()
Viewer getActiveViewer()
null
if there is no sequence opened.LUT getActiveLUT()
null
if there is no sequence opened.Sequence getActiveSequence()
null
if there is no sequence opened.IcyBufferedImage getActiveImage()
null
if the active viewer is null
or
if it uses 3D display so prefer getActiveSequence()
instead.@Deprecated Viewer getFocusedViewer()
getActiveViewer()
instead.@Deprecated Sequence getFocusedSequence()
getActiveSequence()
instead.@Deprecated IcyBufferedImage getFocusedImage()
getActiveImage()
instead.IcyUndoManager getUndoManager()
UndoManager
(UndoManager from active sequence).
It returns null
if the active sequence is null
.Sequence.getUndoManager()
boolean undo()
UndoManager
true
if the operation succeedSequence.undo()
boolean redo()
UndoManager
true
if the operation succeedSequence.redo()
java.util.ArrayList<Viewer> getViewers()
void setActiveViewer(Viewer viewer)
viewer
- viewer which received activation@Deprecated void setFocusedViewer(Viewer viewer)
setActiveViewer(Viewer)
instead.void setGlobalViewSyncId(int id)
void addToDesktopPane(javax.swing.JInternalFrame internalFrame)
internalFrame
- IcyDesktopPane getDesktopPane()
ApplicationMenu getApplicationMenu()
TaskFrameManager getTaskWindowManager()
@Deprecated void registerExternalFrame(javax.swing.JFrame frame)
@Deprecated void unRegisterExternalFrame(javax.swing.JFrame frame)
void registerPlugin(Plugin plugin)
void unRegisterPlugin(Plugin plugin)
void registerViewer(Viewer viewer)
void unRegisterViewer(Viewer viewer)
@Deprecated MainFrame getFrame()
getMainFrame()
insteadMainFrame getMainFrame()
SearchEngine getSearchEngine()
void closeSequence(Sequence sequence)
@Deprecated void closeViewersOfSequence(Sequence sequence)
closeSequence(Sequence)
instead.void closeAllViewers()
Viewer getFirstViewerContaining(ROI roi)
@Deprecated Viewer getFirstViewerContaining(Painter painter)
getFirstViewerContaining(Overlay)
instead.Viewer getFirstViewerContaining(Overlay overlay)
Viewer getFirstViewer(Sequence sequence)
java.util.ArrayList<Viewer> getViewers(Sequence sequence)
boolean isUniqueViewer(Viewer viewer)
java.util.ArrayList<Sequence> getSequences()
java.util.ArrayList<Sequence> getSequences(java.lang.String name)
boolean isOpened(Sequence sequence)
@Deprecated Sequence getFirstSequencesContaining(ROI roi)
getFirstSequenceContaining(ROI)
instead@Deprecated Sequence getFirstSequencesContaining(Painter painter)
getFirstSequenceContaining(Overlay)
insteadSequence getFirstSequenceContaining(ROI roi)
@Deprecated Sequence getFirstSequenceContaining(Painter painter)
getFirstSequenceContaining(Overlay)
instead.Sequence getFirstSequenceContaining(Overlay overlay)
java.util.ArrayList<Sequence> getSequencesContaining(ROI roi)
@Deprecated java.util.ArrayList<Sequence> getSequencesContaining(Painter painter)
getSequencesContaining(Overlay)
instead.java.util.List<Sequence> getSequencesContaining(Overlay overlay)
@Deprecated ROI getROI(Painter painter)
getROI(Overlay)
instead.@Deprecated java.util.ArrayList<Painter> getPainters()
getOverlays()
instead.java.util.List<Overlay> getOverlays()
SwimmingPool getSwimmingPool()
ImageJWrapper getImageJ()
java.lang.String getSelectedTool()
void setSelectedTool(java.lang.String command)
ROITask getROIRibbonTask()
@Deprecated ToolRibbonTask getToolRibbon()
getROIRibbonTask()
insteadboolean isAlwaysOnTop()
void setAlwaysOnTop(boolean value)
boolean isDetachedMode()
void setDetachedMode(boolean value)
@Deprecated void addListener(MainListener listener)
@Deprecated void removeListener(MainListener listener)
void addGlobalViewerListener(GlobalViewerListener listener)
void removeGlobalViewerListener(GlobalViewerListener listener)
void addGlobalSequenceListener(GlobalSequenceListener listener)
void removeGlobalSequenceListener(GlobalSequenceListener listener)
void addGlobalROIListener(GlobalROIListener listener)
void removeGlobalROIListener(GlobalROIListener listener)
void addGlobalOverlayListener(GlobalOverlayListener listener)
void removeGlobalOverlayListener(GlobalOverlayListener listener)
void addGlobalPluginListener(GlobalPluginListener listener)
void removeGlobalPluginListener(GlobalPluginListener listener)
@Deprecated void addFocusedViewerListener(FocusedViewerListener listener)
addActiveViewerListener(ActiveViewerListener)
instead.@Deprecated void removeFocusedViewerListener(FocusedViewerListener listener)
removeActiveViewerListener(ActiveViewerListener)
instead.void addActiveViewerListener(ActiveViewerListener listener)
void removeActiveViewerListener(ActiveViewerListener listener)
@Deprecated void addFocusedSequenceListener(FocusedSequenceListener listener)
addActiveSequenceListener(ActiveSequenceListener)
instead.@Deprecated void removeFocusedSequenceListener(FocusedSequenceListener listener)
removeActiveSequenceListener(ActiveSequenceListener)
instead.void addActiveSequenceListener(ActiveSequenceListener listener)
void removeActiveSequenceListener(ActiveSequenceListener listener)
void addCanExitListener(AcceptListener listener)
void removeCanExitListener(AcceptListener listener)
@Deprecated void beginUpdate()
@Deprecated void endUpdate()
@Deprecated boolean isUpdating()