Class FromChannel
- All Implemented Interfaces:
Provider<Dimensions>
Creates image-dimensions by referencing them from a
ChannelProvider.
One of either channel or id must be set, but not both.
It will look, in order of preference, for respectively a Channel and then a Stack.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()Gets or creates an object of typeT.TheChannelProviderto use for dimensions.getId()An shared-objects identifier for aChannelProviderto use for dimensions.voidonInitialization(ImageInitialization initialization) Called after initialization.voidsetChannel(ChannelProvider channel) TheChannelProviderto use for dimensions.voidAn shared-objects identifier for aChannelProviderto use for dimensions.Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
FromChannel
public FromChannel()
-
-
Method Details
-
onInitialization
Description copied from class:InitializableBeanCalled after initialization. An empty implementation is provided, to be overridden as needed in the sub-classes.- Overrides:
onInitializationin classInitializableBean<DimensionsProvider,ImageInitialization> - Parameters:
initialization- parameters used for initialization.- Throws:
InitializeException- if initialization does not successfully complete.
-
get
Description copied from interface:ProviderGets or creates an object of typeT.- Returns:
- the object returned by the provider.
- Throws:
ProvisionFailedException- if the object cannot be returned.
-
getId
An shared-objects identifier for aChannelProviderto use for dimensions. -
setId
An shared-objects identifier for aChannelProviderto use for dimensions. -
getChannel
TheChannelProviderto use for dimensions. -
setChannel
TheChannelProviderto use for dimensions.
-