Class WriteText
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,ImageInitialization>
org.anchoranalysis.image.bean.ImageBean<T>
org.anchoranalysis.image.bean.provider.BeanProviderAsStackBase<StackProvider,Stack>
org.anchoranalysis.image.bean.provider.stack.StackProvider
org.anchoranalysis.image.io.bean.stack.combine.WriteText
- All Implemented Interfaces:
Provider<Stack>,ProviderAsStack
public class WriteText extends StackProvider
Creates an image that contains text only.
- Author:
- Owen Feehan
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Stackget()Provider<Stack>getRepeatZProvider()Repeats the generated (2D) string in z, so it's the same z-size asintensityProviderSizeXYgetSize()Explicit size of the image the string is draw on.TextStylegetStyle()StringgetText()Text to draw on an image.booleanisCreateShort()When true,textis drawn across all z-slices in the stack.voidsetCreateShort(boolean createShort)When true,textis drawn across all z-slices in the stack.voidsetRepeatZProvider(Provider<Stack> repeatZProvider)Repeats the generated (2D) string in z, so it's the same z-size asintensityProvidervoidsetSize(SizeXY size)Explicit size of the image the string is draw on.voidsetStyle(TextStyle style)voidsetText(String text)Text to draw on an image.Methods 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
-
Method Details
-
get
- Throws:
ProvisionFailedException
-
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
-