Package org.geotools.brewer.color
Class SampleScheme
Object
SampleScheme
Number of samples that can be represented.
- Author:
- James Macgill
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Getter for the max colour countint
Getter for the min colour countint[]
getSampleScheme
(int length) Indexed getter for property sampleScheme.void
setSampleScheme
(int length, int[] sampleScheme) Indexed setter for property sampleScheme.
-
Constructor Details
-
SampleScheme
public SampleScheme()Creates a new instance of SampleScheme
-
-
Method Details
-
getSampleScheme
public int[] getSampleScheme(int length) Indexed getter for property sampleScheme.- Parameters:
length
- Index of the property.- Returns:
- Value of the property at
index
.
-
setSampleScheme
public void setSampleScheme(int length, int[] sampleScheme) Indexed setter for property sampleScheme.- Parameters:
length
- Index of the property.sampleScheme
- New value of the property atindex
.
-
getMinCount
public int getMinCount()Getter for the min colour count- Returns:
- the smallest number of colours we have a scheme for
-
getMaxCount
public int getMaxCount()Getter for the max colour count- Returns:
- the largest number of colours we have a scheme for
-