View Javadoc

1   /* -------------------------------------------------------------------
2    * Java source file for the class Shape3DFactory
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:05 $
11   * 
12   * $Id: Shape3DFactory.java,v 1.3 2004/03/03 11:53:05 takatsukam Exp $
13   * 
14   * Reference:		Document no:
15   * ___				___
16   * 
17   * To Do:
18   * ___
19   * 
20  ------------------------------------------------------------------- */
21  
22  /* --------------------------- Package ---------------------------- */
23  package net.jbeans.j3d.bean.factory;
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 net.jbeans.bean.factory.*;
27  import net.jbeans.j3d.scenegraph.*;
28  
29  /*====================================================================
30                  Implementation of class Shape3DFactory                
31  ====================================================================*/
32  /***
33   * A Factory class provides a method to instantiate an object.
34   * <p>
35   * Every factory must support a call on getInstance.  Each factory should
36   * override the newInstance method to appropriately instantiate and
37   * initialize an instance of an object.
38   * 
39   * @version $Revision: 1.3 $
40   * @author Masahiro Takatsuka (masa@jbeans.net)
41   * @see net.jbeans.bean.factory.Factory
42   */
43  
44  public class Shape3DFactory implements Factory {
45  	public Shape3DFactory() {
46  	}
47  	
48      /***
49       * Instantiates an object.
50       *
51       * @param value The new target object. 
52       */
53  	public Object getInstance() {
54  		return new Shape3D();
55   	}
56  }