toni@1129: /** toni@1129: * Back 2 Browser Bytecode Translator Copyright (C) 2012 Jaroslav Tulach toni@1129: * toni@1129: * toni@1129: * This program is free software: you can redistribute it and/or modify it under toni@1129: * the terms of the GNU General Public License as published by the Free Software toni@1129: * Foundation, version 2 of the License. toni@1129: * toni@1129: * This program is distributed in the hope that it will be useful, but WITHOUT toni@1129: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS toni@1129: * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more toni@1129: * details. toni@1129: * toni@1129: * You should have received a copy of the GNU General Public License along with toni@1129: * this program. Look for COPYING file in the top folder. If not, see toni@1129: * http://opensource.org/licenses/GPL-2.0. toni@1129: */ toni@1129: package net.java.html.canvas; toni@1129: toni@1129: /** toni@1129: * toni@1129: * @author antonepple toni@1129: */ toni@1132: public class Style { toni@1132: toni@1132: Style() { toni@1132: } toni@1132: toni@1132: public static final RadialGradient createRadialGradient( double x0, double y0,double r0, double x1, double y1, double r1){ toni@1132: return new RadialGradient(x0, y0, r0, x1, y1, r1); toni@1132: } toni@1132: toni@1132: public static final LinearGradient createLinearGradient(double x0, double y0, double x1, double y1){ toni@1132: return new LinearGradient(x0, y0, x1, y1); toni@1132: } toni@1132: toni@1132: public static final Pattern createPattern(Image imageData, String repeat){ toni@1132: return new Pattern(imageData, repeat); toni@1132: } toni@1132: toni@1132: toni@1129: toni@1129: }