Home | History | Annotate | Download | only in imageshow

Lines Matching defs:spline

54     private int mCurrentCurveIndex = Spline.RGB;
156 private Spline getSpline(int index) {
193 if (mCurrentCurveIndex == Spline.RGB || mCurrentCurveIndex == Spline.RED) {
196 if (mCurrentCurveIndex == Spline.RGB || mCurrentCurveIndex == Spline.GREEN) {
199 if (mCurrentCurveIndex == Spline.RGB || mCurrentCurveIndex == Spline.BLUE) {
203 if (mCurrentCurveIndex == Spline.RGB) {
205 Spline spline = getSpline(i);
206 if (i != mCurrentCurveIndex && !spline.isOriginal()) {
209 spline.draw(canvas, Spline.colorForCurve(i), getWidth(),
216 .draw(canvas, Spline.colorForCurve(mCurrentCurveIndex), getWidth(), getHeight(),
223 Spline spline = getSpline(mCurrentCurveIndex);
224 float px = spline.getPoint(0).x;
225 float py = spline.getPoint(0).y;
227 for (int i = 1; i < spline.getNbPoints(); i++) {
228 px = spline.getPoint(i).x;
229 py = spline.getPoint(i).y;
238 && (spline.getNbPoints() < 10)) {
259 float margin = Spline.curveHandleSize() / 2;
299 Spline spline = getSpline(mCurrentCurveIndex);
305 pick = spline.addPoint(mCurrentControlPoint);
308 mCurrentControlPoint = spline.getPoint(pick);
313 if (spline.isPointContained(posX, pick)) {
314 spline.movePoint(pick, posX, posY);
315 } else if (pick != -1 && spline.getNbPoints() > 2) {
316 spline.deletePoint(pick);
374 float w = getWidth() - Spline.curveHandleSize();
375 float h = getHeight() - Spline.curveHandleSize() / 2.0f;
376 float dx = Spline.curveHandleSize() / 2.0f;
419 mCurrentCurveIndex = Spline.RGB;
423 mCurrentCurveIndex = Spline.RED;
427 mCurrentCurveIndex = Spline.GREEN;
431 mCurrentCurveIndex = Spline.BLUE;