KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > quikj > application > web > talk > client > whiteboard > EraserObject


1 /*
2  * EraserObject.java
3  *
4  * Created on December 17, 2002, 2:01 AM
5  */

6
7 package com.quikj.application.web.talk.client.whiteboard;
8
9 import java.awt.*;
10 import java.util.*;
11 import net.n3.nanoxml.*;
12
13 /**
14  *
15  * @author amit
16  */

17 public class EraserObject extends FreehandObject
18 {
19     public static final int DEFAULT_ERASER_TIP_SIZE = 10;
20     /** Creates a new instance of EraserObject */
21     public EraserObject(Canvas canvas, Vector points)
22     {
23         super(canvas, points);
24         
25         tip = DEFAULT_ERASER_TIP_SIZE;
26         color = canvas.getBackground();
27         elementName = "eraser";
28     }
29     
30     
31     public EraserObject(Canvas canvas, IXMLElement node)
32     throws WhiteBoardException
33     {
34         super(canvas, node);
35
36         tip = DEFAULT_ERASER_TIP_SIZE;
37         color = canvas.getBackground();
38         elementName = "eraser";
39     }
40 }
41
Popular Tags