Class 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 count
      int getMinCount()
      Getter for the min colour count
      int[] getSampleScheme​(int length)
      Indexed getter for property sampleScheme.
      void setSampleScheme​(int length, int[] sampleScheme)
      Indexed setter for property sampleScheme.
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SampleScheme

        public SampleScheme()
        Creates a new instance of 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 at index.
      • 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