/hg/gfx-test: Renamed callback class QudraticCurveDrawCallbacks to
ptisnovs at icedtea.classpath.org
ptisnovs at icedtea.classpath.org
Thu Aug 16 03:36:44 PDT 2012
changeset 5d5d6a476881 in /hg/gfx-test
details: http://icedtea.classpath.org/hg/gfx-test?cmd=changeset;node=5d5d6a476881
author: Pavel Tisnovsky <ptisnovs at redhat.com>
date: Thu Aug 16 12:39:17 2012 +0200
Renamed callback class QudraticCurveDrawCallbacks to
QuadraticCurveDrawCallbacks.
diffstat:
ChangeLog | 9 +
src/org/gfxtest/callbacks/QuadraticCurveDrawCallbacks.java | 72 ++++++++++
src/org/gfxtest/callbacks/QudraticCurveDrawCallbacks.java | 72 ----------
src/org/gfxtest/testsuites/PrintTestPaths.java | 2 +-
src/org/gfxtest/testsuites/PrintTestQuadraticCurvesAsPaths.java | 33 ++--
5 files changed, 98 insertions(+), 90 deletions(-)
diffs (335 lines):
diff -r edaf14867902 -r 5d5d6a476881 ChangeLog
--- a/ChangeLog Wed Aug 15 18:35:58 2012 +0200
+++ b/ChangeLog Thu Aug 16 12:39:17 2012 +0200
@@ -1,3 +1,12 @@
+2012-08-16 Pavel Tisnovsky <ptisnovs at redhat.com>
+
+ * src/org/gfxtest/callbacks/QudraticCurveDrawCallbacks.java:
+ * src/org/gfxtest/callbacks/QuadraticCurveDrawCallbacks.java:
+ * src/org/gfxtest/testsuites/PrintTestPaths.java:
+ * src/org/gfxtest/testsuites/PrintTestQuadraticCurvesAsPaths.java:
+ Renamed callback class QudraticCurveDrawCallbacks to
+ QuadraticCurveDrawCallbacks.
+
2012-08-14 Pavel Tisnovsky <ptisnovs at redhat.com>
* src/org/gfxtest/testsuites/PrintTestQuadraticCurvesAsPaths.java:
diff -r edaf14867902 -r 5d5d6a476881 src/org/gfxtest/callbacks/QuadraticCurveDrawCallbacks.java
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/org/gfxtest/callbacks/QuadraticCurveDrawCallbacks.java Thu Aug 16 12:39:17 2012 +0200
@@ -0,0 +1,72 @@
+/*
+ Java gfx-test framework
+
+ Copyright (C) 2012 Red Hat
+
+This file is part of IcedTea.
+
+IcedTea is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2, or (at your option)
+any later version.
+
+IcedTea is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with IcedTea; see the file COPYING. If not, write to the
+Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301 USA.
+
+Linking this library statically or dynamically with other modules is
+making a combined work based on this library. Thus, the terms and
+conditions of the GNU General Public License cover the whole
+combination.
+
+As a special exception, the copyright holders of this library give you
+permission to link this library with independent modules to produce an
+executable, regardless of the license terms of these independent
+modules, and to copy and distribute the resulting executable under
+terms of your choice, provided that you also meet, for each linked
+independent module, the terms and conditions of the license of that
+module. An independent module is a module which is not derived from
+or based on this library. If you modify this library, you may extend
+this exception to your version of the library, but you are not
+obligated to do so. If you do not wish to do so, delete this
+exception statement from your version.
+ */
+
+package org.gfxtest.callbacks;
+
+
+
+/**
+ * Class representing set of callback methods called for each rendered quadratic
+ * curve.
+ *
+ * @author Pavel Tisnovsky
+ */
+public abstract class QuadraticCurveDrawCallbacks extends CommonCurveDrawCallbacks
+{
+ /**
+ * Called for each rendered cubic curve.
+ *
+ * @param x1
+ * the first point's x coordinate.
+ * @param y1
+ * the first point's y coordinate.
+ * @param x2
+ * the second point's x coordinate.
+ * @param y2
+ * the second point's y coordinate.
+ * @param x3
+ * third point's x coordinate.
+ * @param y3
+ * third point's y coordinate.
+ * @param index
+ * curve index
+ */
+ public abstract void iterationCallBack(int x1, int y1, int x2, int y2, int x3, int y3, int index);
+}
diff -r edaf14867902 -r 5d5d6a476881 src/org/gfxtest/callbacks/QudraticCurveDrawCallbacks.java
--- a/src/org/gfxtest/callbacks/QudraticCurveDrawCallbacks.java Wed Aug 15 18:35:58 2012 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,72 +0,0 @@
-/*
- Java gfx-test framework
-
- Copyright (C) 2012 Red Hat
-
-This file is part of IcedTea.
-
-IcedTea is free software; you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 2, or (at your option)
-any later version.
-
-IcedTea is distributed in the hope that it will be useful, but
-WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with IcedTea; see the file COPYING. If not, write to the
-Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
-02110-1301 USA.
-
-Linking this library statically or dynamically with other modules is
-making a combined work based on this library. Thus, the terms and
-conditions of the GNU General Public License cover the whole
-combination.
-
-As a special exception, the copyright holders of this library give you
-permission to link this library with independent modules to produce an
-executable, regardless of the license terms of these independent
-modules, and to copy and distribute the resulting executable under
-terms of your choice, provided that you also meet, for each linked
-independent module, the terms and conditions of the license of that
-module. An independent module is a module which is not derived from
-or based on this library. If you modify this library, you may extend
-this exception to your version of the library, but you are not
-obligated to do so. If you do not wish to do so, delete this
-exception statement from your version.
- */
-
-package org.gfxtest.callbacks;
-
-
-
-/**
- * Class representing set of callback methods called for each rendered quadratic
- * curve.
- *
- * @author Pavel Tisnovsky
- */
-public abstract class QudraticCurveDrawCallbacks extends CommonCurveDrawCallbacks
-{
- /**
- * Called for each rendered cubic curve.
- *
- * @param x1
- * the first point's x coordinate.
- * @param y1
- * the first point's y coordinate.
- * @param x2
- * the second point's x coordinate.
- * @param y2
- * the second point's y coordinate.
- * @param x3
- * third point's x coordinate.
- * @param y3
- * third point's y coordinate.
- * @param index
- * curve index
- */
- public abstract void iterationCallBack(int x1, int y1, int x2, int y2, int x3, int y3, int index);
-}
diff -r edaf14867902 -r 5d5d6a476881 src/org/gfxtest/testsuites/PrintTestPaths.java
--- a/src/org/gfxtest/testsuites/PrintTestPaths.java Wed Aug 15 18:35:58 2012 +0200
+++ b/src/org/gfxtest/testsuites/PrintTestPaths.java Thu Aug 16 12:39:17 2012 +0200
@@ -48,7 +48,7 @@
import org.gfxtest.callbacks.CubicCurveDrawCallbacks;
import org.gfxtest.callbacks.DiagonalLineDrawCallbacks;
import org.gfxtest.callbacks.HorizontalLineDrawCallbacks;
-import org.gfxtest.callbacks.QudraticCurveDrawCallbacks;
+import org.gfxtest.callbacks.QuadraticCurveDrawCallbacks;
import org.gfxtest.callbacks.VerticalLineDrawCallbacks;
import org.gfxtest.framework.PrintTest;
import org.gfxtest.framework.TestImage;
diff -r edaf14867902 -r 5d5d6a476881 src/org/gfxtest/testsuites/PrintTestQuadraticCurvesAsPaths.java
--- a/src/org/gfxtest/testsuites/PrintTestQuadraticCurvesAsPaths.java Wed Aug 15 18:35:58 2012 +0200
+++ b/src/org/gfxtest/testsuites/PrintTestQuadraticCurvesAsPaths.java Thu Aug 16 12:39:17 2012 +0200
@@ -47,7 +47,7 @@
-import org.gfxtest.callbacks.QudraticCurveDrawCallbacks;
+import org.gfxtest.callbacks.QuadraticCurveDrawCallbacks;
import org.gfxtest.framework.ColorPalette;
import org.gfxtest.framework.GrayscalePalette;
import org.gfxtest.framework.PrintTest;
@@ -121,7 +121,7 @@
* @param cubicCurveCallback
* class containing set of callback methods
*/
- private static void drawQuadraticCurve(TestImage image, Graphics2D graphics, int verticalStep, QudraticCurveDrawCallbacks quadraticCurveCallback)
+ private static void drawQuadraticCurve(TestImage image, Graphics2D graphics, int verticalStep, QuadraticCurveDrawCallbacks quadraticCurveCallback)
{
// setup rendering
quadraticCurveCallback.setup(image, graphics);
@@ -171,7 +171,7 @@
*/
public TestResult testDrawQuadraticCurvesBasicStyle(TestImage image, Graphics2D graphics)
{
- drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QudraticCurveDrawCallbacks()
+ drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QuadraticCurveDrawCallbacks()
{
/**
* Callback function called before each quadratic curve is rendered.
@@ -201,7 +201,7 @@
*/
public TestResult testDrawQuadraticCurvesColorPalette(TestImage image, Graphics2D graphics)
{
- drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QudraticCurveDrawCallbacks()
+ drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QuadraticCurveDrawCallbacks()
{
/**
* Callback function called before each quadratic curve is rendered.
@@ -232,7 +232,7 @@
*/
public TestResult testDrawQuadraticCurvesColorScale(TestImage image, Graphics2D graphics)
{
- drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QudraticCurveDrawCallbacks()
+ drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QuadraticCurveDrawCallbacks()
{
/**
* Callback function called before each quadratic curve is rendered.
@@ -266,7 +266,7 @@
*/
public TestResult testDrawQuadraticCurvesGrayScale(TestImage image, Graphics2D graphics)
{
- drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QudraticCurveDrawCallbacks()
+ drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QuadraticCurveDrawCallbacks()
{
/**
* Callback function called before each quadratic curve is rendered.
@@ -300,7 +300,7 @@
*/
public TestResult testDrawQuadraticCurvesChangeWidth(TestImage image, Graphics2D graphics)
{
- drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QudraticCurveDrawCallbacks()
+ drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QuadraticCurveDrawCallbacks()
{
/**
* Stroke width.
@@ -340,7 +340,7 @@
*/
public TestResult testDrawQuadraticCurvesChangeWidthCapButtJoinBevel(TestImage image, Graphics2D graphics)
{
- drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QudraticCurveDrawCallbacks()
+ drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QuadraticCurveDrawCallbacks()
{
/**
* Stroke width.
@@ -380,7 +380,7 @@
*/
public TestResult testDrawQuadraticCurvesChangeWidthCapRoundJoinBevel(TestImage image, Graphics2D graphics)
{
- drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QudraticCurveDrawCallbacks()
+ drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QuadraticCurveDrawCallbacks()
{
/**
* Stroke width.
@@ -420,7 +420,7 @@
*/
public TestResult testDrawQuadraticCurvesChangeWidthCapSquareJoinBevel(TestImage image, Graphics2D graphics)
{
- drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QudraticCurveDrawCallbacks()
+ drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QuadraticCurveDrawCallbacks()
{
/**
* Stroke width.
@@ -445,7 +445,6 @@
return TestResult.PASSED;
}
-
/**
* Test basic behavior of method Graphics.draw(Path).
* Quadratic curves are rendered with various width and end caps set to CAP_BUTT.
@@ -461,7 +460,7 @@
*/
public TestResult testDrawQuadraticCurvesChangeWidthCapButtJoinMiter(TestImage image, Graphics2D graphics)
{
- drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QudraticCurveDrawCallbacks()
+ drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QuadraticCurveDrawCallbacks()
{
/**
* Stroke width.
@@ -501,7 +500,7 @@
*/
public TestResult testDrawQuadraticCurvesChangeWidthCapRoundJoinMiter(TestImage image, Graphics2D graphics)
{
- drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QudraticCurveDrawCallbacks()
+ drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QuadraticCurveDrawCallbacks()
{
/**
* Stroke width.
@@ -541,7 +540,7 @@
*/
public TestResult testDrawQuadraticCurvesChangeWidthCapSquareJoinMiter(TestImage image, Graphics2D graphics)
{
- drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QudraticCurveDrawCallbacks()
+ drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QuadraticCurveDrawCallbacks()
{
/**
* Stroke width.
@@ -582,7 +581,7 @@
*/
public TestResult testDrawQuadraticCurvesChangeWidthCapButtJoinRound(TestImage image, Graphics2D graphics)
{
- drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QudraticCurveDrawCallbacks()
+ drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QuadraticCurveDrawCallbacks()
{
/**
* Stroke width.
@@ -622,7 +621,7 @@
*/
public TestResult testDrawQuadraticCurvesChangeWidthCapRoundJoinRound(TestImage image, Graphics2D graphics)
{
- drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QudraticCurveDrawCallbacks()
+ drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QuadraticCurveDrawCallbacks()
{
/**
* Stroke width.
@@ -662,7 +661,7 @@
*/
public TestResult testDrawQuadraticCurvesChangeWidthCapSquareJoinRound(TestImage image, Graphics2D graphics)
{
- drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QudraticCurveDrawCallbacks()
+ drawQuadraticCurve(image, graphics, QUADRATIC_CURVE_STEP, new QuadraticCurveDrawCallbacks()
{
/**
* Stroke width.
More information about the distro-pkg-dev
mailing list