sventon subversion web client - http://www.sventon.org
[show recent changes]
 
  Go to revisionGo to path
HEAD Help
Rev: 657 - svn://greenwoodma.servehttp.com/open-source / SVGRoundTrip / trunk / src / englishcoffeedrinker / svg / in / templates / plain
Diff View - plain
Next diff       /SVGRoundTrip/trunk/src/englishcoffeedrinker/svg/in/templates/plain @ revision 656
        /SVGRoundTrip/trunk/src/englishcoffeedrinker/svg/in/templates/plain @ revision 657
1 1   TOKEN_PACKAGE
2 2    
3 3   import java.awt.*;
4 4   import java.awt.geom.*;
5 5    
6 6   import java.awt.image.BufferedImage;
7 7   import java.io.IOException;
8 8   import javax.imageio.ImageIO;
9 9    
10 10   /**
11 11    * This class has been automatically generated using <a
12 12    * href="http://englishjavadrinker.blogspot.com/search/label/SVGRoundTrip">SVGRoundTrip</a>.
13 13    */
14 14   @SuppressWarnings("unused")
15 15   public class TOKEN_CLASSNAME {
Next diff 16 +  
Next diff 17 +  private static Color getColor(int red, int green, int blue, int alpha, boolean disabled) {
Next diff 18 +   return new Color(red, green, blue, alpha);
Next diff 19 +  }
Next diff 20 +  
16 21    /**
17 22     * Paints the transcoded SVG image on the specified graphics context. You
18 23     * can install a custom transformation on the graphics context to scale the
19 24     * image.
20 25     *
21 26     * @param g
22 27     * Graphics context.
23 28     */
Next diff 24 -  public static void paint(Graphics2D g) {
Next diff 29 +  public static void paint(Graphics2D g, boolean disabled) {
25 30           Shape shape = null;
26 31           Paint paint = null;
27 32           Stroke stroke = null;
28 33           Area clip = null;
29 34    
30 35           float origAlpha = 1.0f;
31 36           Composite origComposite = ((Graphics2D)g).getComposite();
32 37           if (origComposite instanceof AlphaComposite) {
33 38               AlphaComposite origAlphaComposite =
34 39                   (AlphaComposite)origComposite;
35 40               if (origAlphaComposite.getRule() == AlphaComposite.SRC_OVER) {
36 41                   origAlpha = origAlphaComposite.getAlpha();
37 42               }
38 43           }
39 44    
40 45           TOKEN_PAINTING_CODE
41 46    }
42 47    
43 48       /**
44 49        * Returns the X of the bounding box of the original SVG image.
45 50        *
46 51        * @return The X of the bounding box of the original SVG image.
47 52        */
48 53       public static int getOrigX() {
49 54           return TOKEN_ORIG_X;
50 55       }
51 56    
52 57       /**
53 58        * Returns the Y of the bounding box of the original SVG image.
54 59        *
55 60        * @return The Y of the bounding box of the original SVG image.
56 61        */
57 62       public static int getOrigY() {
58 63           return TOKEN_ORIG_Y;
59 64       }
60 65    
61 66       /**
62 67        * Returns the width of the bounding box of the original SVG image.
63 68        *
64 69        * @return The width of the bounding box of the original SVG image.
65 70        */
66 71       public static int getOrigWidth() {
67 72           return TOKEN_ORIG_WIDTH;
68 73       }
69 74    
70 75       /**
71 76        * Returns the height of the bounding box of the original SVG image.
72 77        *
73 78        * @return The height of the bounding box of the original SVG image.
74 79        */
75 80       public static int getOrigHeight() {
76 81           return TOKEN_ORIG_HEIGHT;
77 82       }
78 83   }

feed icon

sventon 2.1.4