Package org.scijava
Class AbstractGateway
- java.lang.Object
-
- org.scijava.AbstractContextual
-
- org.scijava.plugin.AbstractRichPlugin
-
- org.scijava.AbstractGateway
-
- All Implemented Interfaces:
Comparable<Prioritized>,Contextual,Disposable,Gateway,Identifiable,Locatable,Logged,HasPluginInfo,RichPlugin,SciJavaPlugin,Prioritized,Versioned
- Direct Known Subclasses:
SciJava
public abstract class AbstractGateway extends AbstractRichPlugin implements Gateway
Abstract superclass forGatewayimplementations.- Author:
- Mark Hiner, Curtis Rueden
-
-
Constructor Summary
Constructors Constructor Description AbstractGateway()AbstractGateway(String appName, Context context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppServiceapp()Gets this application context'sAppService.AppEventServiceappEvent()Gets this application context'sAppEventService.CommandServicecommand()Gets this application context'sCommandService.ConsoleServiceconsole()Gets this application context'sConsoleService.ConvertServiceconvert()DisplayServicedisplay()Gets this application context'sDisplayService.EventServiceevent()Gets this application context'sEventService.EventHistoryeventHistory()Gets this application context'sEventHistory.<S extends Service>
Sget(Class<S> serviceClass)Serviceget(String serviceClassName)AppgetApp()StringgetInfo(boolean mem)StringgetShortName()Gets a very succinct name for use referring to this gateway, e.g. as a variable name for scripting.StringgetTitle()StringgetVersion()Gets the version of the object.IconServiceicon()Gets this application context'sIconService.InputServiceinput()Gets this application context'sInputService.IOServiceio()Gets this application context'sIOService.voidlaunch(String... args)Perform launch operations associated with this gateway.LocationServicelocation()Gets this application context'sLocationService.LogServicelog()Gets this application context'sLogService.MainServicemain()Gets this application context'sMainService.MenuServicemenu()Gets this application context'sMenuService.ModuleServicemodule()Gets this application context'sModuleService.ObjectServiceobject()Gets this application context'sObjectService.OptionsServiceoptions()Gets this application context'sOptionsService.PlatformServiceplatform()Gets this application context'sPlatformService.PluginServiceplugin()Gets this application context'sPluginService.PrefServiceprefs()RecentFileServicerecentFile()Gets this application context'sRecentFileService.ScriptServicescript()Gets this application context'sScriptService.StartupServicestartup()Gets this application context'sStartupService.StatusServicestatus()Gets this application context'sStatusService.TextServicetext()Gets this application context'sTextService.ThreadServicethread()Gets this application context'sThreadService.ToolServicetool()Gets this application context'sToolService.UIServiceui()Gets this application context'sUIService.WidgetServicewidget()Gets this application context'sWidgetService.-
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.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
-
-
-
-
Method Detail
-
launch
public void launch(String... args)
Description copied from interface:GatewayPerform launch operations associated with this gateway.Typical operations might include:
- Handle the given command line arguments using the
ConsoleService. - Execute registered main classes of the
MainService. - Display the default user interface using the
UIService. - In some circumstances (e.g., when running headless), dispose the context after launch operations are complete.
- Handle the given command line arguments using the
-
getShortName
public String getShortName()
Description copied from interface:GatewayGets a very succinct name for use referring to this gateway, e.g. as a variable name for scripting.- Specified by:
getShortNamein interfaceGateway
-
get
public <S extends Service> S get(Class<S> serviceClass)
Description copied from interface:Gateway
-
appEvent
public AppEventService appEvent()
Description copied from interface:GatewayGets this application context'sAppEventService.- Specified by:
appEventin interfaceGateway- Returns:
- The
AppEventServiceof this application context.
-
app
public AppService app()
Description copied from interface:GatewayGets this application context'sAppService.- Specified by:
appin interfaceGateway- Returns:
- The
AppServiceof this application context.
-
command
public CommandService command()
Description copied from interface:GatewayGets this application context'sCommandService.- Specified by:
commandin interfaceGateway- Returns:
- The
CommandServiceof this application context.
-
console
public ConsoleService console()
Description copied from interface:GatewayGets this application context'sConsoleService.- Specified by:
consolein interfaceGateway- Returns:
- The
ConsoleServiceof this application context.
-
convert
public ConvertService convert()
-
display
public DisplayService display()
Description copied from interface:GatewayGets this application context'sDisplayService.- Specified by:
displayin interfaceGateway- Returns:
- The
DisplayServiceof this application context.
-
eventHistory
public EventHistory eventHistory()
Description copied from interface:GatewayGets this application context'sEventHistory.- Specified by:
eventHistoryin interfaceGateway- Returns:
- The
EventHistoryof this application context.
-
event
public EventService event()
Description copied from interface:GatewayGets this application context'sEventService.- Specified by:
eventin interfaceGateway- Returns:
- The
EventServiceof this application context.
-
icon
public IconService icon()
Description copied from interface:GatewayGets this application context'sIconService.- Specified by:
iconin interfaceGateway- Returns:
- The
IconServiceof this application context.
-
input
public InputService input()
Description copied from interface:GatewayGets this application context'sInputService.- Specified by:
inputin interfaceGateway- Returns:
- The
InputServiceof this application context.
-
io
public IOService io()
Description copied from interface:GatewayGets this application context'sIOService.
-
location
public LocationService location()
Description copied from interface:GatewayGets this application context'sLocationService.- Specified by:
locationin interfaceGateway- Returns:
- The
LocationServiceof this application context.
-
log
public LogService log()
Description copied from interface:GatewayGets this application context'sLogService.- Specified by:
login interfaceGateway- Specified by:
login interfaceLogged- Specified by:
login interfaceRichPlugin- Returns:
- The
LogServiceof this application context.
-
main
public MainService main()
Description copied from interface:GatewayGets this application context'sMainService.- Specified by:
mainin interfaceGateway- Returns:
- The
MainServiceof this application context.
-
menu
public MenuService menu()
Description copied from interface:GatewayGets this application context'sMenuService.- Specified by:
menuin interfaceGateway- Returns:
- The
MenuServiceof this application context.
-
module
public ModuleService module()
Description copied from interface:GatewayGets this application context'sModuleService.- Specified by:
modulein interfaceGateway- Returns:
- The
ModuleServiceof this application context.
-
object
public ObjectService object()
Description copied from interface:GatewayGets this application context'sObjectService.- Specified by:
objectin interfaceGateway- Returns:
- The
ObjectServiceof this application context.
-
options
public OptionsService options()
Description copied from interface:GatewayGets this application context'sOptionsService.- Specified by:
optionsin interfaceGateway- Returns:
- The
OptionsServiceof this application context.
-
platform
public PlatformService platform()
Description copied from interface:GatewayGets this application context'sPlatformService.- Specified by:
platformin interfaceGateway- Returns:
- The
PlatformServiceof this application context.
-
plugin
public PluginService plugin()
Description copied from interface:GatewayGets this application context'sPluginService.- Specified by:
pluginin interfaceGateway- Returns:
- The
PluginServiceof this application context.
-
prefs
public PrefService prefs()
-
recentFile
public RecentFileService recentFile()
Description copied from interface:GatewayGets this application context'sRecentFileService.- Specified by:
recentFilein interfaceGateway- Returns:
- The
RecentFileServiceof this application context.
-
script
public ScriptService script()
Description copied from interface:GatewayGets this application context'sScriptService.- Specified by:
scriptin interfaceGateway- Returns:
- The
ScriptServiceof this application context.
-
startup
public StartupService startup()
Description copied from interface:GatewayGets this application context'sStartupService.- Specified by:
startupin interfaceGateway- Returns:
- The
StartupServiceof this application context.
-
status
public StatusService status()
Description copied from interface:GatewayGets this application context'sStatusService.- Specified by:
statusin interfaceGateway- Returns:
- The
StatusServiceof this application context.
-
text
public TextService text()
Description copied from interface:GatewayGets this application context'sTextService.- Specified by:
textin interfaceGateway- Returns:
- The
TextServiceof this application context.
-
thread
public ThreadService thread()
Description copied from interface:GatewayGets this application context'sThreadService.- Specified by:
threadin interfaceGateway- Returns:
- The
ThreadServiceof this application context.
-
tool
public ToolService tool()
Description copied from interface:GatewayGets this application context'sToolService.- Specified by:
toolin interfaceGateway- Returns:
- The
ToolServiceof this application context.
-
ui
public UIService ui()
Description copied from interface:GatewayGets this application context'sUIService.
-
widget
public WidgetService widget()
Description copied from interface:GatewayGets this application context'sWidgetService.- Specified by:
widgetin interfaceGateway- Returns:
- The
WidgetServiceof this application context.
-
getApp
public App getApp()
- Specified by:
getAppin interfaceGateway- See Also:
AppService
-
getTitle
public String getTitle()
- Specified by:
getTitlein interfaceGateway- See Also:
App.getTitle()
-
getInfo
public String getInfo(boolean mem)
- Specified by:
getInfoin interfaceGateway- See Also:
App.getInfo(boolean)
-
getVersion
public String getVersion()
Description copied from interface:VersionedGets the version of the object.- Specified by:
getVersionin interfaceVersioned
-
-