Class Prepend
Object
org.anchoranalysis.bean.AnchorBean<ColorScheme>
org.anchoranalysis.bean.shared.color.scheme.ColorScheme
org.anchoranalysis.bean.shared.color.scheme.ColorSchemeUnary
org.anchoranalysis.bean.shared.color.scheme.Prepend
public class Prepend extends ColorSchemeUnary
Prepends a specific color to the list created by another
ColorScheme.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description Prepend() -
Method Summary
Modifier and Type Method Description RGBColorBeangetPrependColor()The color to prepend.voidsetPrependColor(RGBColorBean prependColor)The color to prepend.protected ColorListtransform(ColorList source)Transform an existingColorList.Methods inherited from class org.anchoranalysis.bean.shared.color.scheme.ColorSchemeUnary
createList, getColors, setColorsMethods 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
-
Prepend
public Prepend()
-
-
Method Details
-
transform
Description copied from class:ColorSchemeUnaryTransform an existingColorList.Note that the incoming
ColorListmay be modified, and can no longer be used in its original form after this method call.- Specified by:
transformin classColorSchemeUnary- Parameters:
source- the incomingColorList(which may be consumed and modified).- Returns:
- the transformed (outgoing)
ColorList.
-
getPrependColor
The color to prepend. -
setPrependColor
The color to prepend.
-