Package org.scijava.ui
Class AbstractUserInterface
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.plugin.AbstractRichPlugin
-
- org.scijava.ui.AbstractUserInterface
-
- All Implemented Interfaces:
Comparable<Prioritized>,Contextual,Disposable,Identifiable,Locatable,Logged,HasPluginInfo,RichPlugin,SciJavaPlugin,Prioritized,UserInterface,Versioned
public abstract class AbstractUserInterface extends AbstractRichPlugin implements UserInterface
Abstract superclass forUserInterfaceimplementations.- Author:
- Curtis Rueden
-
-
Constructor Summary
Constructors Constructor Description AbstractUserInterface()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcreateUI()Subclasses override to control UI creation.booleanisVisible()Whether this UI is visible onscreen.voidrestoreLocation()Restores the application frame's current location.voidsaveLocation()Persists the application frame's current location.voidshow()Shows the UI.voidshow(String name, Object o)Shows the object onscreen using an appropriate UI widget.voidshow(Display<?> display)Shows the display onscreen using an appropriate UI widget.-
Methods inherited from class org.scijava.plugin.AbstractRichPlugin
getInfo, getPriority, setInfo, setPriority, toString
-
Methods inherited from class org.scijava.AbstractContextual
context, getContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.Contextual
context, getContext, setContext
-
Methods inherited from interface org.scijava.Disposable
dispose
-
Methods inherited from interface org.scijava.plugin.HasPluginInfo
getInfo, setInfo
-
Methods inherited from interface org.scijava.Locatable
getLocation
-
Methods inherited from interface org.scijava.Prioritized
compareTo, getPriority, setPriority
-
Methods inherited from interface org.scijava.plugin.RichPlugin
getIdentifier, log
-
Methods inherited from interface org.scijava.ui.UserInterface
chooseFile, chooseFile, chooseFiles, chooseFiles, createDisplayWindow, dialogPrompt, getApplicationFrame, getConsolePane, getDesktop, getStatusBar, getSystemClipboard, getToolBar, requiresEDT, show, showContextMenu
-
Methods inherited from interface org.scijava.Versioned
getVersion
-
-
-
-
Method Detail
-
show
public void show()
Description copied from interface:UserInterfaceShows the UI.Note that the actual UI components are created lazily when this method is called, rather then upon the UI's initial construction.
- Specified by:
showin interfaceUserInterface
-
isVisible
public boolean isVisible()
Description copied from interface:UserInterfaceWhether this UI is visible onscreen.- Specified by:
isVisiblein interfaceUserInterface
-
show
public void show(String name, Object o)
Description copied from interface:UserInterfaceShows the object onscreen using an appropriate UI widget.- Specified by:
showin interfaceUserInterface- Parameters:
name- The name to use when displaying the object.o- The object to be displayed.
-
show
public void show(Display<?> display)
Description copied from interface:UserInterfaceShows the display onscreen using an appropriate UI widget.- Specified by:
showin interfaceUserInterface
-
saveLocation
public void saveLocation()
Description copied from interface:UserInterfacePersists the application frame's current location.- Specified by:
saveLocationin interfaceUserInterface
-
restoreLocation
public void restoreLocation()
Description copied from interface:UserInterfaceRestores the application frame's current location.- Specified by:
restoreLocationin interfaceUserInterface
-
createUI
protected void createUI()
Subclasses override to control UI creation. They must also call super.createUI() after creating theApplicationFramebut before showing it (assuming the UI has anApplicationFrame).
-
-