/[gzz]/gzz/gzz/vob/vobs/TextVob.java
ViewVC logotype

Diff of /gzz/gzz/vob/vobs/TextVob.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by mudyc, Fri Jan 10 08:19:35 2003 UTC revision 1.10 by mudyc, Fri Jan 10 10:01:25 2003 UTC
# Line 59  String rcsid = "$Id$"; Line 59  String rcsid = "$Id$";
59    
60      protected Object key;      protected Object key;
61    
     /** Same as another constructor but in GL side you can give the color  
      * with string like "Color 1 0.5 0.5"  
      * @param color OpenGL Color used to draw the text.  
      */  
     public TextVob(TextStyle style, String text, boolean baselined, String color) {  
         this(style, text, baselined);  
         this.textColor = color;  
     }  
62    
63      /** Create a new TextVob.      /** Create a new TextVob.
64       * @param style The textstyle to use.       * @param style The textstyle to use.
# Line 76  String rcsid = "$Id$"; Line 68  String rcsid = "$Id$";
68       *                  If false, the text will be comfortably within the box.       *                  If false, the text will be comfortably within the box.
69       */       */
70      public TextVob(TextStyle style, String text, boolean baselined) {      public TextVob(TextStyle style, String text, boolean baselined) {
71            this(style, text, baselined, null);
72        }
73    
74        /** Same as another constructor but in GL side you can give the color
75         * with string like "Color 1 0.5 0.5"
76         * @param color OpenGL Color used to draw the text.
77         */
78        public TextVob(TextStyle style, String text, boolean baselined, String color) {
79          super();          super();
80          this.style = style;          this.style = style;
81          this.baselined = baselined;          this.baselined = baselined;
82          this.text = text;          this.text = text;
83    
84            if (color != null)
85                this.textColor = color;
86      }      }
87    
88    
89      /** Create a non-baselined text vob.      /** Create a non-baselined text vob.
90       */       */
91      public TextVob(TextStyle style, String text) {      public TextVob(TextStyle style, String text) {
# Line 89  String rcsid = "$Id$"; Line 93  String rcsid = "$Id$";
93      }      }
94    
95      public TextVob(TextStyle style, String text, boolean baselined, Object key) {      public TextVob(TextStyle style, String text, boolean baselined, Object key) {
96          this(style, text, baselined);          this(style, text, baselined, null);
97        }
98        public TextVob(TextStyle style, String text, boolean baselined, Object key, String color) {
99            this(style, text, baselined, color);
100          this.key = key;          this.key = key;
101      }      }
102    

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26