public class SwingSDIUI extends AbstractSwingUI
Constructor and Description |
---|
SwingSDIUI() |
Modifier and Type | Method and Description |
---|---|
SwingDisplayWindow |
createDisplayWindow(Display<?> display)
Creates a new display window housing the given display, or null if not
applicable.
|
static SwingDisplayWindow |
createDisplayWindow(Display<?> display,
EventService eventService)
Utility method for creating
SwingDisplayWindow s. |
DialogPrompt |
dialogPrompt(String message,
String title,
DialogPrompt.MessageType msg,
DialogPrompt.OptionType option)
Creates a dialog prompter.
|
protected void |
setupAppFrame()
Configures the application frame for subclass-specific settings (e.g., SDI
or MDI).
|
protected void |
setupConsole()
Configures the console for subclass-specific settings (e.g., SDI or MDI).
|
chooseFile, chooseFiles, createConsoleMenu, createMenus, createUI, dispose, getApplicationFrame, getConsolePane, getStatusBar, getSystemClipboard, getToolBar, requiresEDT, showContextMenu
isVisible, restoreLocation, saveLocation, show, show, show
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
chooseFile, chooseFiles, getDesktop, show
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public SwingDisplayWindow createDisplayWindow(Display<?> display)
UserInterface
public DialogPrompt dialogPrompt(String message, String title, DialogPrompt.MessageType msg, DialogPrompt.OptionType option)
UserInterface
message
- The message in the dialog itself.title
- The title of the dialog.msg
- The type of message. This typically is rendered as an
icon next to the message. For example,
DialogPrompt.MessageType.WARNING_MESSAGE
typically appears
as an exclamation point.option
- The choices available when dismissing the dialog. These
choices are typically rendered as buttons for the user to click.public static SwingDisplayWindow createDisplayWindow(Display<?> display, EventService eventService)
SwingDisplayWindow
s.protected void setupAppFrame()
AbstractSwingUI
setupAppFrame
in class AbstractSwingUI
protected void setupConsole()
AbstractSwingUI
setupConsole
in class AbstractSwingUI
Copyright © 2015–2022 SciJava. All rights reserved.