H:\CSC120\Java\lec05\src\LollipopTree.java
 1 
 2 import java.awt.Color;
 3 import java.awt.Graphics;
 4 
 5 /*
 6  * To change this license header, choose License Headers in Project Properties.
 7  * To change this template file, choose Tools | Templates
 8  * and open the template in the editor.
 9  */
10 
11 /**
12  *
13  * @author cindricbb
14  */
15 public class LollipopTree {
16     
17     private Integer over, down;
18     
19     public LollipopTree(Integer x, Integer y) {
20         over = x;
21         down = y;
22     } // end of constructor
23     
24     public void draw(Graphics g) {
25         g.setColor(new Color(102, 51, 0));
26         g.fillRect(over+60, down+20, 30, 150);
27         g.setColor(Color.GREEN);
28         g.fillOval(over, down, 150, 80);
29     } // end of draw method
30     
31 } // end of class LollipopTree
32