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 asintensityProvidergetSize()Explicit size of the image the string is draw on.getStyle()getText()Text to draw on an image.booleanWhen true,textis drawn across all z-slices in the stack. when false, it appears on only one z-slice.voidsetCreateShort(boolean createShort) When true,textis drawn across all z-slices in the stack. when false, it appears on only one z-slice.voidsetRepeatZProvider(Provider<Stack> repeatZProvider) Repeats the generated (2D) string in z, so it's the same z-size asintensityProvidervoidExplicit size of the image the string is draw on.voidvoidText to draw on an image.Methods inherited from class org.anchoranalysis.image.bean.provider.stack.StackProvider
getAsStackMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods 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:ProviderGets 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,textis 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,textis 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
-