View Javadoc

1   /*
2    * @(#)$Id: DigitalDescriptor.java 689 2009-07-22 00:10:27Z bsigner $
3    *
4    * Author       :   Ueli Kurmann, igesture@uelikurmann.ch
5    *
6    * Purpose      : 	Digital descriptor of a gesture class.
7    *
8    * -----------------------------------------------------------------------
9    *
10   * Revision Information:
11   *
12   * Date             Who         Reason
13   *
14   * Dec 26, 2006     ukurmann    Initial Release
15   * Mar 22, 2007     bsigner     Cleanup
16   *
17   * -----------------------------------------------------------------------
18   *
19   * Copyright 1999-2009 ETH Zurich. All Rights Reserved.
20   *
21   * This software is the proprietary information of ETH Zurich.
22   * Use is subject to license terms.
23   * 
24   */
25  
26  
27  package org.ximtec.igesture.core;
28  
29  import java.awt.Graphics2D;
30  
31  import org.sigtec.ink.Note;
32  
33  
34  /**
35   * Digital descriptor of a gesture class.
36   * 
37   * @version 1.0, Dec 2006
38   * @author Ueli Kurmann, igesture@uelikurmann.ch
39   * @author Beat Signer, signer@inf.ethz.ch
40   */
41  public abstract class DigitalDescriptor extends DefaultDescriptor {
42  
43     public DigitalDescriptor() {
44        super();
45     }
46  
47  
48     /**
49      * Renders a digital representation of the specified note on a given graphics
50      * context.
51      * 
52      * @param graphics the graphics context on which the digital note
53      *            representation has to be rendered.
54      * @param note the note to be rendered.
55      */
56     public abstract void getDigitalObject(Graphics2D graphics, Note note);
57  
58  
59     @Override
60     public String toString() {
61        return DigitalDescriptor.class.getName();
62     } // toString
63  
64  }