removed factory methods for style. Those are in GraphicsContext now for consistency (GraphicsContext should create all graphics related Objects).
1.1 --- a/javaquery/canvas/src/main/java/net/java/html/canvas/Style.java Mon May 27 10:19:36 2013 +0200
1.2 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/Style.java Mon May 27 10:24:34 2013 +0200
1.3 @@ -32,22 +32,6 @@
1.4 Style() {
1.5 }
1.6
1.7 - static final RadialGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1) {
1.8 - return new RadialGradient(x0, y0, r0, x1, y1, r1);
1.9 - }
1.10 -
1.11 - static final LinearGradient createLinearGradient(double x0, double y0, double x1, double y1) {
1.12 - return new LinearGradient(x0, y0, x1, y1);
1.13 - }
1.14 -
1.15 - static final Pattern createPattern(Image imageResource, String repeat) {
1.16 - return new Pattern(imageResource, repeat);
1.17 - }
1.18 -
1.19 - static final Color getWebColor(String webColor) {
1.20 - return new Color(webColor);
1.21 - }
1.22 -
1.23 void cache(Object toCache) {
1.24 cacheHash = hashCode();
1.25 this.cached = toCache;