Package org.scijava
Interface Contextual
-
- All Known Subinterfaces:
App,AppEventService,AppService,ButtonWidget<U>,CacheService,ChoiceWidget<U>,CodeRunner,ColorWidget<U>,CommandService,ConsoleArgument,ConsoleService,Converter<I,O>,ConvertService,DataHandle<L>,DataHandleService,DateWidget<U>,Display<T>,DisplayService,DisplayViewer<T>,DownloadService,DragAndDropHandler<D>,DragAndDropService,EventHistory,EventService,FileListWidget<U>,FileWidget<U>,Gateway,HandlerPlugin<D>,HandlerService<DT,PT>,IconService,InputService,InputWidget<T,W>,IOPlugin<D>,IOService,LocationResolver,LocationService,LogService,MainService,MenuService,MessageWidget<U>,ModuleService,NIOService,NumberWidget<U>,ObjectService,ObjectWidget<U>,OptionsService,ParseService,PlatformService,PluginService,PostprocessorPlugin,PrefService,PreprocessorPlugin,PTService<PT>,RecentFileService,ResettableStreamHandle<L>,RichPlugin,RunService,SciJavaService,ScriptHeader,ScriptHeaderService,ScriptLanguage,ScriptProcessorService,ScriptService,SeekableStreamHandle<L>,Service,SingletonService<PT>,StartupService,StatusService,StreamHandle<L>,TaskService,TextDisplay,TextDisplayViewer,TextFormat,TextIOService,TextService,TextWidget<U>,ThreadService,ToggleWidget<U>,Tool,ToolService,TypedIOService<D>,TypedPlugin<D>,TypedService<DT,PT>,UIService,UserInterface,WelcomeService,WidgetModel,WidgetService,WrapperPlugin<D>,WrapperService<DT,PT>
- All Known Implementing Classes:
AbstractApp,AbstractCodeRunner,AbstractConsoleArgument,AbstractContextual,AbstractConverter,AbstractConvertService,AbstractDataHandle,AbstractDelegateConverter,AbstractDisplay,AbstractDisplayViewer,AbstractDragAndDropData,AbstractDragAndDropHandler,AbstractGateway,AbstractHandlerPlugin,AbstractHandlerService,AbstractHigherOrderHandle,AbstractInputHarvester,AbstractInputHarvesterPlugin,AbstractInputWidget,AbstractIOPlugin,AbstractLocationResolver,AbstractLogService,AbstractPostprocessorPlugin,AbstractPrefService,AbstractPreprocessorPlugin,AbstractPTService,AbstractRichPlugin,AbstractScriptHeader,AbstractScriptLanguage,AbstractSeekableStreamHandle,AbstractService,AbstractSingleInputPreprocessor,AbstractSingletonService,AbstractStreamHandle,AbstractTextDisplayViewer,AbstractTextFormat,AbstractTool,AbstractTypedIOService,AbstractTypedPlugin,AbstractTypedService,AbstractUIInputWidget,AbstractUserInterface,AbstractWrapperPlugin,AbstractWrapperService,ActiveDisplayPreprocessor,AdaptedScriptLanguage,AppAboutEvent,AppFocusEvent,ApplicationEvent,AppMenusCreatedEvent,AppOpenFilesEvent,AppPreferencesEvent,AppPrintEvent,AppQuitEvent,AppReOpenEvent,AppScreenSleepEvent,AppSleepEvent,AppSystemSleepEvent,AppUserSessionEvent,AppVisibleEvent,ArrayConverters.BoolArrayUnwrapper,ArrayConverters.BoolArrayWrapper,ArrayConverters.ByteArrayUnwrapper,ArrayConverters.ByteArrayWrapper,ArrayConverters.CharArrayUnwrapper,ArrayConverters.CharArrayWrapper,ArrayConverters.DoubleArrayUnwrapper,ArrayConverters.DoubleArrayWrapper,ArrayConverters.FloatArrayUnwrapper,ArrayConverters.FloatArrayWrapper,ArrayConverters.IntArrayUnwrapper,ArrayConverters.IntArrayWrapper,ArrayConverters.LongArrayUnwrapper,ArrayConverters.LongArrayWrapper,ArrayConverters.ShortArrayUnwrapper,ArrayConverters.ShortArrayWrapper,ArrayToStringConverter,BytesHandle,CastingConverter,CheckInputsPreprocessor,CommandCodeRunner,CommandModule,ContextCommand,ContextCreatedEvent,ContextDisposingEvent,DataOpenedEvent,DataSavedEvent,DebugPostprocessor,DebugPreprocessor,DefaultAppEventService,DefaultAppService,DefaultCacheService,DefaultCommandService,DefaultConsoleService,DefaultConverter,DefaultConvertService,DefaultDataHandleService,DefaultDisplay,DefaultDisplayService,DefaultDownloadService,DefaultDragAndDropData,DefaultDragAndDropService,DefaultEventHistory,DefaultEventService,DefaultInputService,DefaultIOService,DefaultLocationService,DefaultMainService,DefaultMenuService,DefaultModuleService,DefaultNIOService,DefaultObjectService,DefaultOptionsService,DefaultParseService,DefaultPlatformService,DefaultPluginService,DefaultPrefService,DefaultRecentFileService,DefaultRunService,DefaultScriptHeaderService,DefaultScriptProcessorService,DefaultScriptService,DefaultStartupService,DefaultStatusService,DefaultTaskService,DefaultTextDisplay,DefaultTextIOService,DefaultTextService,DefaultThreadService,DefaultToolService,DefaultUIService,DefaultValuePreprocessor,DefaultWelcomeService,DefaultWidgetModel,DefaultWidgetService,DisplayActivatedEvent,DisplayCreatedEvent,DisplayDeletedEvent,DisplayEvent,DisplayPostprocessor,DisplayUpdatedEvent,DragAndDropEvent,DragEnterEvent,DragExitEvent,DragOverEvent,DropEvent,DummyHandle,DummyTool,DynamicCommand,FileDragAndDropHandler,FileHandle,FileListConverters.FileArrayToStringConverter,FileListConverters.FileToStringConverter,FileListConverters.StringToFileArrayConverter,FileListConverters.StringToFileConverter,FileListPreprocessor,FileLocationResolver,FilePreprocessor,FileToPathConverter,GatewayPreprocessor,HeadlessArgument,HeadlessDisplayViewer,HeadlessUI,HeadlessUI,InitPreprocessor,InputEvent,Inputs,InteractiveCommand,IOEvent,KyEvent,KyPressedEvent,KyReleasedEvent,KyTypedEvent,ListDragAndDropHandler,ListEvent,LoadInputsPreprocessor,LoggerPreprocessor,MainArgument,MainCodeRunner,MenuEvent,MenusAddedEvent,MenusRemovedEvent,MenusUpdatedEvent,ModuleCanceledEvent,ModuleCodeRunner,ModuleCommand,ModuleErroredEvent,ModuleEvent,ModuleExecutedEvent,ModuleExecutingEvent,ModuleExecutionEvent,ModuleFinishedEvent,ModulePostprocessEvent,ModulePreprocessEvent,ModuleProcessEvent,ModuleRunner,ModulesAddedEvent,ModulesListEvent,ModulesRemovedEvent,ModuleStartedEvent,ModulesUpdatedEvent,MsButtonEvent,MsClickedEvent,MsDraggedEvent,MsEnteredEvent,MsEvent,MsExitedEvent,MsMovedEvent,MsPressedEvent,MsReleasedEvent,MsWheelEvent,MultiWriteHandle,NullConverter,NumberConverters.BigIntegerToBigDecimalConverter,NumberConverters.ByteToBigDecimalConverter,NumberConverters.ByteToBigIntegerConverter,NumberConverters.ByteToDoubleConverter,NumberConverters.ByteToFloatConverter,NumberConverters.ByteToIntegerConverter,NumberConverters.ByteToLongConverter,NumberConverters.ByteToShortConverter,NumberConverters.DoubleToBigDecimalConverter,NumberConverters.FloatToBigDecimalConverter,NumberConverters.FloatToDoubleConverter,NumberConverters.IntegerToBigDecimalConverter,NumberConverters.IntegerToBigIntegerConverter,NumberConverters.IntegerToDoubleConverter,NumberConverters.IntegerToLongConverter,NumberConverters.LongToBigDecimalConverter,NumberConverters.LongToBigIntegerConverter,NumberConverters.ShortToBigDecimalConverter,NumberConverters.ShortToBigIntegerConverter,NumberConverters.ShortToDoubleConverter,NumberConverters.ShortToFloatConverter,NumberConverters.ShortToIntegerConverter,NumberConverters.ShortToLongConverter,NumberToBigDecimalConverter,NumberToBigIntegerConverter,NumberToDoubleConverter,NumberToFloatConverter,NumberToIntegerConverter,NumberToLongConverter,NumberToNumberConverter,NumberToShortConverter,ObjectCreatedEvent,ObjectDeletedEvent,ObjectEvent,ObjectModifiedEvent,ObjectsAddedEvent,ObjectsListEvent,ObjectsRemovedEvent,OpenArgument,OptionsEvent,OptionsPlugin,OutputEvent,PathToFileConverter,PluginsAddedEvent,PluginsListEvent,PluginsRemovedEvent,PrimitiveArrayUnwrapper,PrimitiveArrayWrapper,ReadBufferDataHandle,RunArgument,RunArgument,RunScriptArgument,SaveInputsPreprocessor,SciJava,SciJavaApp,SciJavaEvent,ScriptCodeRunner,ScriptFileDragAndDropHandler,ScriptFinder,ScriptInfo,ScriptIOPlugin,ScriptModule,ServiceHelper,ServicePreprocessor,ServicesLoadedEvent,ShadowMenu,ShowUIArgument,SortablePlugin,StatusEvent,StderrLogService,StringToArrayConverter,StringToNumberConverter,SystemPropertyArgument,TaskEvent,TextIOPlugin,ToolActivatedEvent,ToolDeactivatedEvent,ToolEvent,UIArgument,UIEvent,UIPreprocessor,UIShownEvent,UnimplementedCommand,ValidityPreprocessor,WelcomeEvent,WinActivatedEvent,WinClosedEvent,WinClosingEvent,WinDeactivatedEvent,WinDeiconifiedEvent,WinEvent,WinIconifiedEvent,WinOpenedEvent,WriteBufferDataHandle
public interface ContextualAn object that belongs to a SciJava application context.- Author:
- Lee Kamentsky, Curtis Rueden
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Contextcontext()Gets the application context to which the object belongs.ContextgetContext()Gets the application context to which the object belongs, or null ifsetContext(Context)has not yet been called on this object.default voidsetContext(Context context)Sets the application context to which the object belongs.
-
-
-
Method Detail
-
context
Context context()
Gets the application context to which the object belongs.- Throws:
NullContextException- if the context has not yet been set viasetContext(Context).- See Also:
getContext()
-
getContext
Context getContext()
Gets the application context to which the object belongs, or null ifsetContext(Context)has not yet been called on this object.- See Also:
context()
-
setContext
default void setContext(Context context)
Sets the application context to which the object belongs.Typically this method simply delegates to
Context.inject(Object), and should be called only once to populate the context. Most contextual objects do not support later alteration of the context, and will throwIllegalStateExceptionif this method is invoked again.- Throws:
IllegalStateException- If the object already has a context.IllegalArgumentException- If the object has a requiredServiceparameter (seeParameter.required()) which is not available from the context.- See Also:
Context.inject(Object)
-
-