1.1 --- a/javaquery/canvas/src/main/java/net/java/html/canvas/RadialGradient.java Mon May 27 10:04:39 2013 +0200
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,80 +0,0 @@
1.4 -/**
1.5 - * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach
1.6 - * <jaroslav.tulach@apidesign.org>
1.7 - *
1.8 - * This program is free software: you can redistribute it and/or modify it under
1.9 - * the terms of the GNU General Public License as published by the Free Software
1.10 - * Foundation, version 2 of the License.
1.11 - *
1.12 - * This program is distributed in the hope that it will be useful, but WITHOUT
1.13 - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1.14 - * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
1.15 - * details.
1.16 - *
1.17 - * You should have received a copy of the GNU General Public License along with
1.18 - * this program. Look for COPYING file in the top folder. If not, see
1.19 - * http://opensource.org/licenses/GPL-2.0.
1.20 - */
1.21 -package net.java.html.canvas;
1.22 -
1.23 -/**
1.24 - *
1.25 - * @author antonepple
1.26 - */
1.27 -public final class RadialGradient extends LinearGradient {
1.28 -
1.29 -
1.30 - private double r0, r1;
1.31 -
1.32 - RadialGradient(double x0, double y0, double r0, double x1, double y1, double r1) {
1.33 - super(x0, y0, x1, y1);
1.34 - this.r0 = r0;
1.35 - this.r1 = r1;
1.36 - }
1.37 -
1.38 - public double getR0() {
1.39 - return r0;
1.40 - }
1.41 -
1.42 - public void setR0(double r0) {
1.43 - this.r0 = r0;
1.44 - }
1.45 -
1.46 - public double getR1() {
1.47 - return r1;
1.48 - }
1.49 -
1.50 - public void setR1(double r1) {
1.51 - this.r1 = r1;
1.52 - }
1.53 -
1.54 - @Override
1.55 - public int hashCode() {
1.56 - int hash = super.hashCode();
1.57 - hash = 17 * hash + (int) (Double.doubleToLongBits(this.r0) ^ (Double.doubleToLongBits(this.r0) >>> 32));
1.58 - hash = 17 * hash + (int) (Double.doubleToLongBits(this.r1) ^ (Double.doubleToLongBits(this.r1) >>> 32));
1.59 -
1.60 - return hash;
1.61 - }
1.62 -
1.63 - @Override
1.64 - public boolean equals(Object obj) {
1.65 - if (obj == null) {
1.66 - return false;
1.67 - }
1.68 - if (getClass() != obj.getClass()) {
1.69 - return false;
1.70 - }
1.71 - if (!super.equals(obj)) {
1.72 - return false;
1.73 - }
1.74 - final RadialGradient other = (RadialGradient) obj;
1.75 - if (Double.doubleToLongBits(this.r0) != Double.doubleToLongBits(other.r0)) {
1.76 - return false;
1.77 - }
1.78 - if (Double.doubleToLongBits(this.r1) != Double.doubleToLongBits(other.r1)) {
1.79 - return false;
1.80 - }
1.81 - return true;
1.82 - }
1.83 -}