Class Shuffle
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.Shuffle
public class Shuffle extends ColorSchemeUnary
Randomizes the order of colors in a list created by another
ColorScheme.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description Shuffle()Shuffle(ColorScheme colorScheme)Creates with a specific delegateColorScheme. -
Method Summary
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
-
Shuffle
Creates with a specific delegateColorScheme.- Parameters:
colorScheme- the scheme to create a list of unshuffled colors.
-
Shuffle
public Shuffle()
-
-
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.
-