public abstract class ColoredBase extends StackProvider
Modifier and Type | Field and Description |
---|---|
protected static ColorScheme |
DEFAULT_COLOR_SET_GENERATOR |
Constructor and Description |
---|
ColoredBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract ColoredObjectCollection |
coloredObjectsToDraw(Dimensions backgroundDimensions)
Creates colored-objects to be drawn.
|
Stack |
get()
Gets or creates an object of type
T . |
ProviderAsStack |
getBackground()
The background.
|
StackDisplayer |
getDisplayer()
How to convert an image to be displayed to the user.
|
int |
getOutlineWidth()
The width of the outline (only relevant if
outline==true . |
boolean |
isFlatten()
If true, objects and the background are flattened in the z dimension (via maximum intensity
projection), so that a 2D image is produced.
|
boolean |
isOutline()
If true, an outline is drawn around the entries.
|
boolean |
isSuppressOutlineZ()
if true, the outline is suppressed in the z-dimension i.e.
|
void |
setBackground(ProviderAsStack background)
The background.
|
void |
setDisplayer(StackDisplayer displayer)
How to convert an image to be displayed to the user.
|
void |
setFlatten(boolean flatten)
If true, objects and the background are flattened in the z dimension (via maximum intensity
projection), so that a 2D image is produced.
|
void |
setOutline(boolean outline)
If true, an outline is drawn around the entries.
|
void |
setOutlineWidth(int outlineWidth)
The width of the outline (only relevant if
outline==true . |
void |
setSuppressOutlineZ(boolean suppressOutlineZ)
if true, the outline is suppressed in the z-dimension i.e.
|
getAsStack
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
protected static final ColorScheme DEFAULT_COLOR_SET_GENERATOR
public Stack get() throws ProvisionFailedException
Provider
T
.ProvisionFailedException
- if the object cannot be returned.protected abstract ColoredObjectCollection coloredObjectsToDraw(Dimensions backgroundDimensions) throws CreateException
backgroundDimensions
- dimensions of the background on which objects are drawn.CreateException
public boolean isFlatten()
public void setFlatten(boolean flatten)
public boolean isOutline()
public void setOutline(boolean outline)
public int getOutlineWidth()
outline==true
.public void setOutlineWidth(int outlineWidth)
outline==true
.public boolean isSuppressOutlineZ()
outline==true
.public void setSuppressOutlineZ(boolean suppressOutlineZ)
outline==true
.public ProviderAsStack getBackground()
stackBackground
or this should be defined but not both.public void setBackground(ProviderAsStack background)
stackBackground
or this should be defined but not both.public StackDisplayer getDisplayer()
public void setDisplayer(StackDisplayer displayer)
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.