Class ColorSchemeUnary
Like
ColorScheme but employs a unary operator on a call to an existing ColorScheme.- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionColorSchemeUnary(ColorScheme colors) Creates a newColorSchemeUnaryinstance. -
Method Summary
Modifier and TypeMethodDescriptioncreateList(int size) Creates a sequence of related colors.The delegate that creates the color-list before subsequent processing.voidsetColors(ColorScheme colors) The delegate that creates the color-list before subsequent processing.protected abstract ColorListTransform an existingColorList.Methods inherited from class org.anchoranalysis.bean.shared.color.scheme.ColorScheme
colorForEachIndexMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ColorSchemeUnary
public ColorSchemeUnary()
-
-
Method Details
-
createList
Description copied from class:ColorSchemeCreates a sequence of related colors.- Specified by:
createListin classColorScheme- Parameters:
size- the size of the list- Returns:
- a newly created list with colors
- Throws:
OperationFailedException
-
transform
-
getColors
The delegate that creates the color-list before subsequent processing.
-