public class WriteText extends StackProvider
Constructor and Description |
---|
WriteText() |
WriteText(String text)
Creates the bean to write particular text, otherwise using default settings.
|
Modifier and Type | Method and Description |
---|---|
Stack |
get()
Gets or creates an object of type
T . |
Provider<Stack> |
getRepeatZProvider()
Repeats the generated (2D) string in z, so it's the same z-size as
intensityProvider |
SizeXY |
getSize()
Explicit size of the image the string is draw on.
|
TextStyle |
getStyle() |
String |
getText()
Text to draw on an image.
|
boolean |
isCreateShort()
When true,
text is drawn across all z-slices in the stack. |
void |
setCreateShort(boolean createShort)
When true,
text is drawn across all z-slices in the stack. |
void |
setRepeatZProvider(Provider<Stack> repeatZProvider)
Repeats the generated (2D) string in z, so it's the same z-size as
intensityProvider |
void |
setSize(SizeXY size)
Explicit size of the image the string is draw on.
|
void |
setStyle(TextStyle style) |
void |
setText(String text)
Text to draw on an image.
|
getAsStack
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public WriteText(String text)
text
- the text to write.public WriteText()
public Stack get() throws ProvisionFailedException
Provider
T
.ProvisionFailedException
- if the object cannot be returned.public String getText()
public void setText(String text)
public TextStyle getStyle()
public void setStyle(TextStyle style)
public SizeXY getSize()
public void setSize(SizeXY size)
public boolean isCreateShort()
text
is drawn across all z-slices in the stack. when false, it appears on
only one z-slice.public void setCreateShort(boolean createShort)
text
is drawn across all z-slices in the stack. when false, it appears on
only one z-slice.public Provider<Stack> getRepeatZProvider()
intensityProvider
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.