Package org.geotools.brewer.color
Class SampleScheme
- Object
-
- SampleScheme
-
public class SampleScheme extends Object
Number of samples that can be represented.- Author:
- James Macgill
-
-
Constructor Summary
Constructors Constructor Description SampleScheme()
Creates a new instance of SampleScheme
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxCount()
Getter for the max colour countint
getMinCount()
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.
-
-
-
Method Detail
-
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
-
-