View Javadoc

1   /* -------------------------------------------------------------------
2    * Java source file for the class GlyphSource
3    * 
4    * Copyright (c), 2003, Masahiro Takatsuka.
5    * All Rights Researved.
6    * 
7    * Original Author: Masahiro Takatsuka (masa@jbeans.net)
8    * $Author: takatsukam $
9    * 
10   * $Date: 2004/03/03 11:53:06 $
11   * 
12   * $Id: GlyphSource.java,v 1.3 2004/03/03 11:53:06 takatsukam Exp $
13   * 
14   * Reference:		Document no:
15   * ___				___
16   * 
17   * To Do:
18   * ___
19   * 
20  ------------------------------------------------------------------- */
21  
22  /* --------------------------- Package ---------------------------- */
23  package net.jbeans.j3d.modeler.scene;
24  
25  /* ------------------ Import classes (packages) ------------------- *//package-summary/html">class="comment"> ------------------ Import classes (packages) ------------------- *//package-summary.html">class="comment">/* ------------------ Import classes (packages) ------------------- *//package-summary.html">class="comment"> ------------------ Import classes (packages) ------------------- */
26  import java.lang.reflect.*;
27  import javax.media.j3d.*;
28  
29  /*====================================================================
30                   Implementation of class GlyphSource                  
31  ====================================================================*/
32  /***
33   * GlyphSource defines the interface for Glyph source object.
34   * It generates a javax.media.j3d.Shape3D object.
35   * 
36   * @version $Revision: 1.3 $
37   * @author Masahiro Takatsuka (masa@jbeans.net)
38   */
39  
40  public interface GlyphSource {
41  	/***
42  	* Returns javax.media.3d.Node object.
43  	*/
44  	Node getNode();
45  
46  	/***
47  	* Updates the specified Shape3D object.
48  	*/
49  	Node updateNode(Node node);
50  
51  	/***
52  	* Returns javax.media.3d.Appearance object.
53  	*/
54  	Appearance getAppearanceOfNode(Node node);
55  
56  	/***
57  	 * Updates the specified Appearance object.
58  	*/
59  	void setAppearanceOfNode(Node node, Appearance appearance);
60  	
61  	/***
62  	* Returns an array containing methods to set data to construct
63  	* a glyph source.
64  	*/
65  	Method[] getSetMethods();
66  
67  	/*
68  	* Returns an array containing indices of essential setters.
69  	*/
70  	int[] getEssentials();
71  }