# HG changeset patch # User Anton Epple # Date 1369643074 -7200 # Node ID 2c1c6b0f5840684458a86fca19518e0cea92ea1c # Parent d6047ef47a68059367ee1679682e54862c6ab49c removed factory methods for style. Those are in GraphicsContext now for consistency (GraphicsContext should create all graphics related Objects). diff -r d6047ef47a68 -r 2c1c6b0f5840 javaquery/canvas/src/main/java/net/java/html/canvas/Style.java --- a/javaquery/canvas/src/main/java/net/java/html/canvas/Style.java Mon May 27 10:19:36 2013 +0200 +++ b/javaquery/canvas/src/main/java/net/java/html/canvas/Style.java Mon May 27 10:24:34 2013 +0200 @@ -32,22 +32,6 @@ Style() { } - static final RadialGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1) { - return new RadialGradient(x0, y0, r0, x1, y1, r1); - } - - static final LinearGradient createLinearGradient(double x0, double y0, double x1, double y1) { - return new LinearGradient(x0, y0, x1, y1); - } - - static final Pattern createPattern(Image imageResource, String repeat) { - return new Pattern(imageResource, repeat); - } - - static final Color getWebColor(String webColor) { - return new Color(webColor); - } - void cache(Object toCache) { cacheHash = hashCode(); this.cached = toCache;