Lines Matching refs:colorChannel

135     private static int checkArgumentColorChannel(int colorChannel) {
136 switch (colorChannel) {
142 throw new IllegalArgumentException("colorChannel out of range");
145 return colorChannel;
159 * @param colorChannel one of {@link #CHANNEL_RED}, {@link #CHANNEL_GREEN}, {@link #CHANNEL_BLUE}
162 * @throws IllegalArgumentException if {@code colorChannel} was out of range
164 public int getPointCount(int colorChannel) {
165 checkArgumentColorChannel(colorChannel);
167 return getCurve(colorChannel).length / POINT_SIZE;
174 * that {@code colorChannel}.</p>
179 * @param colorChannel {@link #CHANNEL_RED}, {@link #CHANNEL_GREEN}, or {@link #CHANNEL_BLUE}
180 * @param index at least 0 but no greater than {@code getPointCount(colorChannel)}
183 * @throws IllegalArgumentException if {@code colorChannel} or {@code index} was out of range
188 public PointF getPoint(int colorChannel, int index) {
189 checkArgumentColorChannel(colorChannel);
190 if (index < 0 || index >= getPointCount(colorChannel)) {
194 final float[] curve = getCurve(colorChannel);
232 public void copyColorCurve(int colorChannel, float[] destination,
237 if (destination.length + offset < getPointCount(colorChannel) * POINT_SIZE) {
241 float[] curve = getCurve(colorChannel);
309 private String curveToString(int colorChannel) {
310 checkArgumentColorChannel(colorChannel);
312 float[] curve = getCurve(colorChannel);
327 private float[] getCurve(int colorChannel) {
328 switch (colorChannel) {
336 throw new AssertionError("colorChannel out of range");