Class WriteText
- All Implemented Interfaces:
Provider<Stack>
,ProviderAsStack
Creates an image that contains text only.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget()
Gets or creates an object of typeT
.Repeats the generated (2D) string in z, so it's the same z-size asintensityProvider
getSize()
Explicit size of the image the string is draw on.getStyle()
getText()
Text to draw on an image.boolean
When true,text
is drawn across all z-slices in the stack. when false, it appears on only one z-slice.void
setCreateShort
(boolean createShort) When true,text
is drawn across all z-slices in the stack. when false, it appears on only one z-slice.void
setRepeatZProvider
(Provider<Stack> repeatZProvider) Repeats the generated (2D) string in z, so it's the same z-size asintensityProvider
void
Explicit size of the image the string is draw on.void
void
Text to draw on an image.Methods inherited from class org.anchoranalysis.image.bean.provider.stack.StackProvider
getAsStack
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
WriteText
Creates the bean to write particular text, otherwise using default settings.- Parameters:
text
- the text to write.
-
WriteText
public WriteText()
-
-
Method Details
-
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.
-
getText
Text to draw on an image. -
setText
Text to draw on an image. -
getStyle
-
setStyle
-
getSize
Explicit size of the image the string is draw on. -
setSize
Explicit size of the image the string is draw on. -
isCreateShort
public boolean isCreateShort()When true,text
is drawn across all z-slices in the stack. when false, it appears on only one z-slice. -
setCreateShort
public void setCreateShort(boolean createShort) When true,text
is drawn across all z-slices in the stack. when false, it appears on only one z-slice. -
getRepeatZProvider
Repeats the generated (2D) string in z, so it's the same z-size asintensityProvider
-
setRepeatZProvider
Repeats the generated (2D) string in z, so it's the same z-size asintensityProvider
-