Class FromList
Object
org.anchoranalysis.bean.AnchorBean<ColorScheme>
org.anchoranalysis.bean.shared.color.scheme.ColorScheme
org.anchoranalysis.bean.shared.color.scheme.FromList
public class FromList extends ColorScheme
Specifies a list of colors by a list.
If the list is too small for size, then it is extended by repeating the ultimate item.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description FromList() -
Method Summary
Modifier and Type Method Description ColorListcreateList(int size)Creates a sequence of related colors.List<RGBColorBean>getColors()The list of colors to specify.voidsetColors(List<RGBColorBean> colors)The list of colors to specify.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
-
FromList
public FromList()
-
-
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
-
getColors
The list of colors to specify. -
setColors
The list of colors to specify.
-