Class Repeat
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.Repeat
public class Repeat extends ColorSchemeUnary
Duplicates a
ColorList produced by another ColorScheme a certain number of times.- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description Repeat() -
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
-
Repeat
public Repeat()
-
-
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.
-
getTimes
public int getTimes()How many times to duplicate the list. -
setTimes
public void setTimes(int times)How many times to duplicate the list.
-