public abstract class AbstractUserInterface extends AbstractRichPlugin implements UserInterface
UserInterface
implementations.Constructor and Description |
---|
AbstractUserInterface() |
Modifier and Type | Method and Description |
---|---|
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.
|
compareTo, getInfo, getPriority, setInfo, setPriority, toString
context, getContext, setContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
chooseFile, createDisplayWindow, dialogPrompt, getSystemClipboard, requiresEDT, showContextMenu
context, getContext, setContext
getPriority, setPriority
compareTo
getInfo, setInfo
dispose
public void show()
UserInterface
Note that the actual UI components are created lazily when this method is called, rather then upon the UI's initial construction.
show
in interface UserInterface
public boolean isVisible()
UserInterface
isVisible
in interface UserInterface
public void show(Object o)
UserInterface
show
in interface UserInterface
public void show(String name, Object o)
UserInterface
show
in interface UserInterface
name
- The name to use when displaying the object.o
- The object to be displayed.public void show(Display<?> display)
UserInterface
show
in interface UserInterface
public Desktop getDesktop()
UserInterface
getDesktop
in interface UserInterface
public ApplicationFrame getApplicationFrame()
UserInterface
getApplicationFrame
in interface UserInterface
public ToolBar getToolBar()
UserInterface
getToolBar
in interface UserInterface
public StatusBar getStatusBar()
UserInterface
getStatusBar
in interface UserInterface
public ConsolePane<?> getConsolePane()
UserInterface
getConsolePane
in interface UserInterface
public void saveLocation()
UserInterface
saveLocation
in interface UserInterface
public void restoreLocation()
UserInterface
restoreLocation
in interface UserInterface
protected void createUI()
ApplicationFrame
but before
showing it (assuming the UI has an ApplicationFrame
).Copyright © 2009–2015 SciJava. All rights reserved.