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
.TheChannelProvider
to use for dimensions.getId()
An shared-objects identifier for aChannelProvider
to use for dimensions.void
onInitialization
(ImageInitialization initialization) Called after initialization.void
setChannel
(ChannelProvider channel) TheChannelProvider
to use for dimensions.void
An shared-objects identifier for aChannelProvider
to use for dimensions.Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
Methods 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:InitializableBean
Called after initialization. An empty implementation is provided, to be overridden as needed in the sub-classes.- Overrides:
onInitialization
in classInitializableBean<DimensionsProvider,
ImageInitialization> - Parameters:
initialization
- parameters used for initialization.- Throws:
InitializeException
- if initialization does not successfully complete.
-
get
Description copied from interface:Provider
Gets 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 aChannelProvider
to use for dimensions. -
setId
An shared-objects identifier for aChannelProvider
to use for dimensions. -
getChannel
TheChannelProvider
to use for dimensions. -
setChannel
TheChannelProvider
to use for dimensions.
-