|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.scijava.AbstractContextual
org.scijava.plugin.AbstractRichPlugin
org.scijava.ui.AbstractUserInterface
public abstract class AbstractUserInterface
Abstract superclass for UserInterface implementations.
| Constructor Summary | |
|---|---|
AbstractUserInterface()
|
|
| Method Summary | |
|---|---|
protected void |
createUI()
Subclasses override to control UI creation. |
ApplicationFrame |
getApplicationFrame()
Gets the main SciJava application frame, or null if not applicable. |
ConsolePane |
getConsolePane()
Gets the main SciJava console pane, or null if not applicable. |
Desktop |
getDesktop()
Gets the desktop, for use with multi-document interfaces (MDI). |
StatusBar |
getStatusBar()
Gets the main SciJava status bar, or null if not applicable. |
ToolBar |
getToolBar()
Gets the main SciJava toolbar, or null if not applicable. |
boolean |
isVisible()
Whether this UI is visible onscreen. |
void |
restoreLocation()
Restores the application frame's current location. |
void |
saveLocation()
Persists the application frame's current location. |
void |
show()
Shows the UI. |
void |
show(Display<?> display)
Shows the display onscreen using an appropriate UI widget. |
void |
show(Object o)
Shows the object onscreen using an appropriate UI widget. |
void |
show(String name,
Object o)
Shows the object onscreen using an appropriate UI widget. |
| Methods inherited from class org.scijava.plugin.AbstractRichPlugin |
|---|
compareTo, getInfo, getPriority, setInfo, setPriority, toString |
| Methods inherited from class org.scijava.AbstractContextual |
|---|
context, getContext, setContext |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.scijava.ui.UserInterface |
|---|
chooseFile, createDisplayWindow, dialogPrompt, getSystemClipboard, requiresEDT, showContextMenu |
| Methods inherited from interface org.scijava.Contextual |
|---|
context, getContext, setContext |
| Methods inherited from interface org.scijava.Prioritized |
|---|
getPriority, setPriority |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.scijava.plugin.HasPluginInfo |
|---|
getInfo, setInfo |
| Methods inherited from interface org.scijava.Disposable |
|---|
dispose |
| Constructor Detail |
|---|
public AbstractUserInterface()
| Method Detail |
|---|
public void show()
UserInterfaceNote that the actual UI components are created lazily when this method is called, rather then upon the UI's initial construction.
show in interface UserInterfacepublic boolean isVisible()
UserInterface
isVisible in interface UserInterfacepublic void show(Object o)
UserInterface
show in interface UserInterface
public void show(String name,
Object o)
UserInterface
show in interface UserInterfacename - The name to use when displaying the object.o - The object to be displayed.public void show(Display<?> display)
UserInterface
show in interface UserInterfacepublic Desktop getDesktop()
UserInterface
getDesktop in interface UserInterfacepublic ApplicationFrame getApplicationFrame()
UserInterface
getApplicationFrame in interface UserInterfacepublic ToolBar getToolBar()
UserInterface
getToolBar in interface UserInterfacepublic StatusBar getStatusBar()
UserInterface
getStatusBar in interface UserInterfacepublic ConsolePane getConsolePane()
UserInterface
getConsolePane in interface UserInterfacepublic void saveLocation()
UserInterface
saveLocation in interface UserInterfacepublic void restoreLocation()
UserInterface
restoreLocation in interface UserInterfaceprotected void createUI()
ApplicationFrame but before
showing it (assuming the UI has an ApplicationFrame).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||