public class MainInterfaceGui extends java.lang.Object implements MainInterface
Constructor and Description |
---|
MainInterfaceGui()
Take care that MainInterface constructor do not call the
Icy.getMainInterface() method. |
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.
|
void |
addFocusedViewerListener(FocusedViewerListener listener)
Deprecated.
|
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.
|
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.
|
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.
|
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.
|
Viewer |
getFirstViewerContaining(ROI roi)
Returns first viewer for the sequence containing specified ROI
|
IcyBufferedImage |
getFocusedImage()
Deprecated.
|
Sequence |
getFocusedSequence()
Deprecated.
|
Viewer |
getFocusedViewer()
Deprecated.
|
MainFrame |
getFrame()
Deprecated.
|
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.
|
XMLPreferences |
getPreferences() |
ROI |
getROI(Overlay overlay)
Returns the ROI containing the specified overlay (if any)
|
ROI |
getROI(Painter painter)
Deprecated.
|
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.
|
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.
|
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()
|
void |
internalRemoveCanExitListener(icy.gui.main.MainInterfaceGui.WeakAcceptListener listener) |
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.
|
void |
removeFocusedViewerListener(FocusedViewerListener listener)
Deprecated.
|
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.
|
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.
|
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) |
public MainInterfaceGui()
Icy.getMainInterface()
method.init()
for that purpose.public void init()
MainInterface
init
in interface MainInterface
public boolean isHeadLess()
MainInterface
isHeadLess
in interface MainInterface
public void addSequence(Sequence sequence)
MainInterface
addSequence
in interface MainInterface
public java.util.ArrayList<javax.swing.JFrame> getExternalFrames()
MainInterface
getExternalFrames
in interface MainInterface
public java.util.ArrayList<javax.swing.JInternalFrame> getInternalFrames()
MainInterface
getInternalFrames
in interface MainInterface
public XMLPreferences getPreferences()
getPreferences
in interface MainInterface
public InspectorPanel getInspector()
MainInterface
getInspector
in interface MainInterface
public RoisPanel getRoisPanel()
MainInterface
getRoisPanel
in interface MainInterface
public LayersPanel getLayersPanel()
MainInterface
getLayersPanel
in interface MainInterface
public java.util.ArrayList<Plugin> getActivePlugins()
MainInterface
getActivePlugins
in interface MainInterface
public LUT getActiveLUT()
MainInterface
null
if there is no sequence opened.getActiveLUT
in interface MainInterface
public Viewer getActiveViewer()
MainInterface
null
if there is no sequence opened.getActiveViewer
in interface MainInterface
public Sequence getActiveSequence()
MainInterface
null
if there is no sequence opened.getActiveSequence
in interface MainInterface
public IcyBufferedImage getActiveImage()
MainInterface
null
if the active viewer is null
or
if it uses 3D display so prefer MainInterface.getActiveSequence()
instead.getActiveImage
in interface MainInterface
@Deprecated public Viewer getFocusedViewer()
getFocusedViewer
in interface MainInterface
@Deprecated public Sequence getFocusedSequence()
getFocusedSequence
in interface MainInterface
@Deprecated public IcyBufferedImage getFocusedImage()
getFocusedImage
in interface MainInterface
public IcyUndoManager getUndoManager()
MainInterface
UndoManager
(UndoManager from active sequence).
It returns null
if the active sequence is null
.getUndoManager
in interface MainInterface
Sequence.getUndoManager()
public boolean undo()
MainInterface
UndoManager
undo
in interface MainInterface
true
if the operation succeedSequence.undo()
public boolean redo()
MainInterface
UndoManager
redo
in interface MainInterface
true
if the operation succeedSequence.redo()
public java.util.ArrayList<Viewer> getViewers()
MainInterface
getViewers
in interface MainInterface
public void setActiveViewer(Viewer viewer)
MainInterface
setActiveViewer
in interface MainInterface
viewer
- viewer which received activation@Deprecated public void setFocusedViewer(Viewer viewer)
setFocusedViewer
in interface MainInterface
public void addToDesktopPane(javax.swing.JInternalFrame internalFrame)
MainInterface
addToDesktopPane
in interface MainInterface
public IcyDesktopPane getDesktopPane()
getDesktopPane
in interface MainInterface
public ApplicationMenu getApplicationMenu()
getApplicationMenu
in interface MainInterface
public TaskFrameManager getTaskWindowManager()
getTaskWindowManager
in interface MainInterface
@Deprecated public void registerExternalFrame(javax.swing.JFrame frame)
registerExternalFrame
in interface MainInterface
@Deprecated public void unRegisterExternalFrame(javax.swing.JFrame frame)
unRegisterExternalFrame
in interface MainInterface
public void registerPlugin(Plugin plugin)
registerPlugin
in interface MainInterface
public void unRegisterPlugin(Plugin plugin)
unRegisterPlugin
in interface MainInterface
public void registerViewer(Viewer viewer)
registerViewer
in interface MainInterface
public void unRegisterViewer(Viewer viewer)
unRegisterViewer
in interface MainInterface
@Deprecated public MainFrame getFrame()
getFrame
in interface MainInterface
public MainFrame getMainFrame()
MainInterface
getMainFrame
in interface MainInterface
public SearchEngine getSearchEngine()
MainInterface
getSearchEngine
in interface MainInterface
public void closeSequence(Sequence sequence)
MainInterface
closeSequence
in interface MainInterface
@Deprecated public void closeViewersOfSequence(Sequence sequence)
closeViewersOfSequence
in interface MainInterface
public void closeAllViewers()
MainInterface
closeAllViewers
in interface MainInterface
public Viewer getFirstViewerContaining(ROI roi)
MainInterface
getFirstViewerContaining
in interface MainInterface
@Deprecated public Viewer getFirstViewerContaining(Painter painter)
MainInterface
getFirstViewerContaining
in interface MainInterface
public Viewer getFirstViewerContaining(Overlay overlay)
MainInterface
getFirstViewerContaining
in interface MainInterface
public Viewer getFirstViewer(Sequence sequence)
MainInterface
getFirstViewer
in interface MainInterface
public java.util.ArrayList<Viewer> getViewers(Sequence sequence)
MainInterface
getViewers
in interface MainInterface
public boolean isUniqueViewer(Viewer viewer)
MainInterface
isUniqueViewer
in interface MainInterface
public java.util.ArrayList<Sequence> getSequences()
MainInterface
getSequences
in interface MainInterface
public java.util.ArrayList<Sequence> getSequences(java.lang.String name)
MainInterface
getSequences
in interface MainInterface
public boolean isOpened(Sequence sequence)
MainInterface
isOpened
in interface MainInterface
@Deprecated public Sequence getFirstSequencesContaining(ROI roi)
MainInterface
MainInterface.getFirstSequenceContaining(ROI)
insteadgetFirstSequencesContaining
in interface MainInterface
public Sequence getFirstSequenceContaining(ROI roi)
MainInterface
getFirstSequenceContaining
in interface MainInterface
@Deprecated public Sequence getFirstSequencesContaining(Painter painter)
MainInterface
getFirstSequencesContaining
in interface MainInterface
@Deprecated public Sequence getFirstSequenceContaining(Painter painter)
MainInterface
getFirstSequenceContaining
in interface MainInterface
public Sequence getFirstSequenceContaining(Overlay overlay)
MainInterface
getFirstSequenceContaining
in interface MainInterface
public java.util.ArrayList<Sequence> getSequencesContaining(ROI roi)
MainInterface
getSequencesContaining
in interface MainInterface
@Deprecated public java.util.ArrayList<Sequence> getSequencesContaining(Painter painter)
MainInterface
getSequencesContaining
in interface MainInterface
public java.util.List<Sequence> getSequencesContaining(Overlay overlay)
MainInterface
getSequencesContaining
in interface MainInterface
public java.util.ArrayList<ROI> getROIs()
MainInterface
getROIs
in interface MainInterface
@Deprecated public ROI getROI(Painter painter)
MainInterface
getROI
in interface MainInterface
public ROI getROI(Overlay overlay)
MainInterface
getROI
in interface MainInterface
@Deprecated public java.util.ArrayList<Painter> getPainters()
MainInterface
getPainters
in interface MainInterface
public java.util.List<Overlay> getOverlays()
MainInterface
getOverlays
in interface MainInterface
public SwimmingPool getSwimmingPool()
MainInterface
getSwimmingPool
in interface MainInterface
public ImageJWrapper getImageJ()
MainInterface
getImageJ
in interface MainInterface
public java.lang.String getSelectedTool()
MainInterface
getSelectedTool
in interface MainInterface
public void setSelectedTool(java.lang.String command)
MainInterface
setSelectedTool
in interface MainInterface
public ROITask getROIRibbonTask()
MainInterface
getROIRibbonTask
in interface MainInterface
@Deprecated public ToolRibbonTask getToolRibbon()
getToolRibbon
in interface MainInterface
public boolean isAlwaysOnTop()
MainInterface
isAlwaysOnTop
in interface MainInterface
public void setAlwaysOnTop(boolean value)
MainInterface
setAlwaysOnTop
in interface MainInterface
public boolean isDetachedMode()
MainInterface
isDetachedMode
in interface MainInterface
public void setDetachedMode(boolean value)
MainInterface
setDetachedMode
in interface MainInterface
@Deprecated public void addListener(MainListener listener)
addListener
in interface MainInterface
@Deprecated public void removeListener(MainListener listener)
removeListener
in interface MainInterface
public void addGlobalViewerListener(GlobalViewerListener listener)
MainInterface
addGlobalViewerListener
in interface MainInterface
public void removeGlobalViewerListener(GlobalViewerListener listener)
MainInterface
removeGlobalViewerListener
in interface MainInterface
public void addGlobalSequenceListener(GlobalSequenceListener listener)
MainInterface
addGlobalSequenceListener
in interface MainInterface
public void removeGlobalSequenceListener(GlobalSequenceListener listener)
MainInterface
removeGlobalSequenceListener
in interface MainInterface
public void addGlobalROIListener(GlobalROIListener listener)
MainInterface
addGlobalROIListener
in interface MainInterface
public void removeGlobalROIListener(GlobalROIListener listener)
MainInterface
removeGlobalROIListener
in interface MainInterface
public void addGlobalOverlayListener(GlobalOverlayListener listener)
MainInterface
addGlobalOverlayListener
in interface MainInterface
public void removeGlobalOverlayListener(GlobalOverlayListener listener)
MainInterface
removeGlobalOverlayListener
in interface MainInterface
public void addGlobalPluginListener(GlobalPluginListener listener)
MainInterface
addGlobalPluginListener
in interface MainInterface
public void removeGlobalPluginListener(GlobalPluginListener listener)
MainInterface
removeGlobalPluginListener
in interface MainInterface
public void addCanExitListener(AcceptListener listener)
MainInterface
addCanExitListener
in interface MainInterface
public void removeCanExitListener(AcceptListener listener)
MainInterface
removeCanExitListener
in interface MainInterface
public void internalRemoveCanExitListener(icy.gui.main.MainInterfaceGui.WeakAcceptListener listener)
@Deprecated public void addFocusedViewerListener(FocusedViewerListener listener)
addFocusedViewerListener
in interface MainInterface
@Deprecated public void removeFocusedViewerListener(FocusedViewerListener listener)
removeFocusedViewerListener
in interface MainInterface
@Deprecated public void addFocusedSequenceListener(FocusedSequenceListener listener)
addFocusedSequenceListener
in interface MainInterface
@Deprecated public void removeFocusedSequenceListener(FocusedSequenceListener listener)
removeFocusedSequenceListener
in interface MainInterface
public void addActiveViewerListener(ActiveViewerListener listener)
MainInterface
addActiveViewerListener
in interface MainInterface
public void removeActiveViewerListener(ActiveViewerListener listener)
MainInterface
removeActiveViewerListener
in interface MainInterface
public void addActiveSequenceListener(ActiveSequenceListener listener)
MainInterface
addActiveSequenceListener
in interface MainInterface
public void removeActiveSequenceListener(ActiveSequenceListener listener)
MainInterface
removeActiveSequenceListener
in interface MainInterface
public boolean canExitExternal()
MainInterface
canExitExternal
in interface MainInterface
@Deprecated public void beginUpdate()
beginUpdate
in interface MainInterface
@Deprecated public void endUpdate()
endUpdate
in interface MainInterface
@Deprecated public boolean isUpdating()
isUpdating
in interface MainInterface
public void setGlobalViewSyncId(int id)
MainInterface
setGlobalViewSyncId
in interface MainInterface
public boolean isVirtualMode()
MainInterface
isVirtualMode
in interface MainInterface
IcyBufferedImage.setVolatile(boolean)
public void setVirtualMode(boolean value)
MainInterface
setVirtualMode
in interface MainInterface
IcyBufferedImage.setVolatile(boolean)