Class ColoredBaseWithGenerator
Object
AnchorBean<StackProvider>
InitializableBean<StackProvider, ImageInitialization>
ImageBean<StackProvider>
BeanProviderAsStackBase<StackProvider, Stack>
StackProvider
ColoredBase
ColoredBaseWithGenerator
- All Implemented Interfaces:
Provider<Stack>,ProviderAsStack
- Direct Known Subclasses:
ColoredObjects
Like
ColoredBase but uses a generator to determine the colors for the objects.- Author:
- Owen Feehan
-
Field Summary
Fields inherited from class org.anchoranalysis.plugin.image.bean.stack.provider.color.ColoredBase
DEFAULT_COLOR_SET_GENERATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ColoredObjectCollectioncoloredObjectsToDraw(Dimensions backgroundDimensions) Creates colored-objects to be drawn.ColorSchemeColors to use for drawing objects.protected abstract ObjectCollectionobjectsToDraw(Dimensions backgroundDimensions) The objects to draw (without any colors) on the background.voidsetColors(ColorScheme colors) Colors to use for drawing objects.Methods inherited from class org.anchoranalysis.plugin.image.bean.stack.provider.color.ColoredBase
get, getBackground, getDisplayer, getOutlineWidth, isFlatten, isOutline, isSuppressOutlineZ, setBackground, setDisplayer, setFlatten, setOutline, setOutlineWidth, setSuppressOutlineZMethods 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
-
ColoredBaseWithGenerator
public ColoredBaseWithGenerator()
-
-
Method Details
-
coloredObjectsToDraw
protected ColoredObjectCollection coloredObjectsToDraw(Dimensions backgroundDimensions) throws CreateException Description copied from class:ColoredBaseCreates colored-objects to be drawn.- Specified by:
coloredObjectsToDrawin classColoredBase- Parameters:
backgroundDimensions- dimensions of the background on which objects are drawn.- Returns:
- a
ColoredObjectCollectiondescribing the objects to be drawn. - Throws:
CreateException- if the colored objects cannot be created.
-
objectsToDraw
protected abstract ObjectCollection objectsToDraw(Dimensions backgroundDimensions) throws CreateException The objects to draw (without any colors) on the background.- Parameters:
backgroundDimensions- the dimensions of the background.- Returns:
- the
ObjectCollectionto be drawn on the background. - Throws:
CreateException- if the objects cannot be created.
-
getColors
public ColorScheme getColors()Colors to use for drawing objects.
-