Source code: com/arranger/jarl/test/TraitTest2.java
1 package com.arranger.jarl.test;
2
3 import com.arranger.jarl.util.IOUtil;
4
5 import java.awt.*;
6 import java.io.File;
7
8 /**
9 * TraitTest2 created on Feb 21, 2003
10 */
11 public class TraitTest2 extends TraitTest1 {
12
13 public void testTrait2() throws Exception {
14
15 Image image = createImage();
16 Graphics2D graphics2D = (Graphics2D)image.getGraphics();
17 paintCircle(graphics2D);
18 IOUtil.save(image, new File("testTrait1.bmp"));
19
20 image = createImage();
21 graphics2D = (Graphics2D)image.getGraphics();
22 graphics2D.translate(20, m_imageHeight / 20);
23
24 paintCircle(graphics2D);
25 IOUtil.save(image, new File("testTrait2.bmp"));
26 }
27 }