home *** CD-ROM | disk | FTP | other *** search
/ Best Tools for JAVA / Best Tools for JAVA.iso / JAVA_ALL / IDE / SUBARTIC / SUB_ARCT / LIB / BASE_PAR.JAV < prev    next >
Encoding:
Text File  |  1996-10-04  |  2.9 KB  |  89 lines

  1.  
  2. package sub_arctic.lib;
  3.  
  4. import java.awt.Point;
  5. import java.awt.Dimension;
  6.  
  7. /** 
  8.  * Base class for objects that support (arbitrary) children.  This is basically
  9.  * just base_interactor with child functionality added.  Normally all objects
  10.  * supporting children are subclasses of this class.  However, the actual
  11.  * routines needed to establish and support children have been promoted to
  12.  * base_interactor.  As a result, if you have an existing non-parent class 
  13.  * that you would like to add parent capability to after the fact that is 
  14.  * also possible.  This class can serve as a guide for how to do that -- 
  15.  * basically you just need to call setup_for_children() or 
  16.  * setup_for_fixed_children() in the constructor.
  17.  
  18.  * @see sub_arctic.lib.base_interactor#setup_for_children
  19.  * @see sub_arctic.lib.base_interactor#setup_for_fixed_children
  20.  *
  21.  * @author Scott Hudson
  22.  */
  23. public class base_parent_interactor extends base_interactor {
  24.  
  25.   /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
  26.  
  27.   /** 
  28.    * Full constructor 
  29.    * @param int xv x position of the interactor in its parent's coordinate 
  30.    *               system.
  31.    * @param int yv y position of the interactor in its parent's coordinate 
  32.    *               system.
  33.    * @param int wv width of the interactor.
  34.    * @param int hv height of the interactor.
  35.    */
  36.   public base_parent_interactor(int xv, int yv, int wv, int hv)
  37.     {
  38.       super(xv,yv,wv,hv);
  39.       setup_for_children();
  40.     }
  41.  
  42.   /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
  43.  
  44.   /** 
  45.    * Constructor assuming a (temporary) default size 
  46.    * @param int xv x position of the interactor in its parent's coordinate 
  47.    *               system.
  48.    * @param int yv y position of the interactor in its parent's coordinate 
  49.    *               system.
  50.    */
  51.   public base_parent_interactor(int xv, int yv)
  52.     {
  53.       super(xv,yv);
  54.       setup_for_children();
  55.     }
  56.  
  57.   /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
  58.  
  59.   /** 
  60.    * Constructor that assumes a position of 0,0 and a (temporary) default
  61.    * size. 
  62.    */
  63.   public base_parent_interactor()
  64.     {
  65.       super();
  66.       setup_for_children();
  67.     }
  68.  
  69.   /* . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . */
  70.  
  71. }
  72.  
  73. /*=========================== COPYRIGHT NOTICE ===========================
  74.  
  75. This file is part of the subArctic user interface toolkit.
  76.  
  77. Copyright (c) 1996 Scott Hudson and Ian Smith
  78. All rights reserved.
  79.  
  80. The subArctic system is freely available for most uses under the terms
  81. and conditions described in 
  82.   http://www.cc.gatech.edu/gvu/ui/sub_arctic/sub_arctic/doc/usage.html 
  83. and appearing in full in the lib/interactor.java source file.
  84.  
  85. The current release and additional information about this software can be 
  86. found starting at: http://www.cc.gatech.edu/gvu/ui/sub_arctic/
  87.  
  88. ========================================================================*/
  89.