/[gzz]/gzz/gzz/vob/LineCursor.java
ViewVC logotype

Diff of /gzz/gzz/vob/LineCursor.java

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

revision 1.5 by benja, Thu Aug 15 21:05:29 2002 UTC revision 1.6 by benja, Sat Sep 21 13:04:56 2002 UTC
# Line 1  Line 1 
1  /*  /*
2  CharArrayVob.java  CharArrayVob.java
3   *       *
4   *    Copyright (c) 2001, Ted Nelson and Tuomas Lukka   *    Copyright (c) 2001, Ted Nelson and Tuomas Lukka
5   *    Copyright (c) 2001, Benja Fallenstein   *    Copyright (c) 2001, Benja Fallenstein
6   *   *
# Line 9  CharArrayVob.java Line 9  CharArrayVob.java
9   *    at your choice, any later version. Alternatively, you may use and   *    at your choice, any later version. Alternatively, you may use and
10   *    distribute under the terms of the XPL.   *    distribute under the terms of the XPL.
11   *   *
12   *    See the LICENSE.lgpl and LICENSE.xpl files for the specific terms of   *    See the LICENSE.lgpl and LICENSE.xpl files for the specific terms of
13   *    the licenses.   *    the licenses.
14   *   *
15   *    This software is distributed in the hope that it will be useful,   *    This software is distributed in the hope that it will be useful,
# Line 28  import java.awt.*; Line 28  import java.awt.*;
28   *  XXX rename to ...Vob   *  XXX rename to ...Vob
29   */   */
30    
31  public class LineCursor extends Vob implements HBox {  public class LineCursor extends HBox.VobHBox {
32  String rcsid = "$Id$";  String rcsid = "$Id$";
33      static public boolean dbg = false;      static public boolean dbg = false;
34      static private void p(String s) { if(dbg) System.out.println(s); }      static private void p(String s) { if(dbg) System.out.println(s); }
# Line 47  String rcsid = "$Id$"; Line 47  String rcsid = "$Id$";
47    
48      public Object getKey() { return KEY; }      public Object getKey() { return KEY; }
49    
50        
51      // IMPLEMENTATION OF Vob      // IMPLEMENTATION OF Vob
52    
53      static Rectangle rect = new Rectangle();      static Rectangle rect = new Rectangle();
54      public void render(Graphics g,      public void render(Graphics g,
55                                  boolean fast,                                  boolean fast,
56                                  Vob.RenderInfo info1,                                  Vob.RenderInfo info1,
57                                  Vob.RenderInfo info2) {                                  Vob.RenderInfo info2) {
# Line 80  String rcsid = "$Id$"; Line 80  String rcsid = "$Id$";
80      public float getHeight(float scale) { return style.getAscent(scale); }      public float getHeight(float scale) { return style.getAscent(scale); }
81      public float getDepth(float scale) { return style.getDescent(scale); }      public float getDepth(float scale) { return style.getDescent(scale); }
82    
     public Vob getVob(float scale) {  
         //this.scale = scale;  
         p("linevob getVob()");  
         return this;  
     }  
           
83      public void setPrev(HBox b) { }      public void setPrev(HBox b) { }
84      public void setPosition(int depth, int x, int y, int w, int h) { }      public void setPosition(int depth, int x, int y, int w, int h) { }
85    

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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