質問編集履歴

1

コードに不適切な部分があった

2015/12/15 14:21

投稿

chicken425
chicken425

スコア10

test CHANGED
File without changes
test CHANGED
@@ -22,6 +22,10 @@
22
22
 
23
23
  Vector<Rectangle> shapes_ = new Vector<Rectangle>();
24
24
 
25
+ Color BACK_COLOR = new Color(0,0,0,0);
26
+
27
+ Color PEN_COLOR = Color.BLACK;
28
+
25
29
 
26
30
 
27
31
  @Override
@@ -40,7 +44,7 @@
40
44
 
41
45
  }else if( shapes_.size() == 3 ){
42
46
 
43
- __**g.setColor( BACK_COLOR );
47
+ g.setColor( BACK_COLOR );
44
48
 
45
49
  r = shapes_.get( 1 );
46
50
 
@@ -50,7 +54,7 @@
50
54
 
51
55
  r = shapes_.get( 2 );
52
56
 
53
- g.drawLine( r.x, r.y, r.width, r.height );**__
57
+ g.drawLine( r.x, r.y, r.width, r.height );
54
58
 
55
59
  }else{
56
60