public class FromChannel extends DimensionsProvider
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 and Description |
---|
FromChannel() |
Modifier and Type | Method and Description |
---|---|
Dimensions |
get()
Gets or creates an object of type
T . |
ChannelProvider |
getChannel()
The
ChannelProvider to use for dimensions. |
String |
getId()
An shared-objects identifier for a
ChannelProvider to use for dimensions. |
void |
onInitialization(ImageInitialization initialization)
Called after initialization.
|
void |
setChannel(ChannelProvider channel)
The
ChannelProvider to use for dimensions. |
void |
setId(String id)
An shared-objects identifier for a
ChannelProvider to use for dimensions. |
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public void onInitialization(ImageInitialization initialization) throws InitializeException
InitializableBean
onInitialization
in class InitializableBean<DimensionsProvider,ImageInitialization>
initialization
- parameters used for initialization.InitializeException
- if initialization does not successfully complete.public Dimensions get() throws ProvisionFailedException
Provider
T
.ProvisionFailedException
- if the object cannot be returned.public String getId()
ChannelProvider
to use for dimensions.public void setId(String id)
ChannelProvider
to use for dimensions.public ChannelProvider getChannel()
ChannelProvider
to use for dimensions.public void setChannel(ChannelProvider channel)
ChannelProvider
to use for dimensions.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.