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

Diff of /gzz/gzz/vob/LinebreakableChain.java

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

revision 1.6 by benja, Sat Sep 21 21:49:04 2002 UTC revision 1.7 by benja, Sat Sep 21 23:00:38 2002 UTC
# Line 128  String rcsid = "$Id$"; Line 128  String rcsid = "$Id$";
128    
129    
130    
131      public float getHeight(int start, int end, float scale) {      public float getAscent(int start, int end, float scale) {
132          float h = 0;          float h = 0;
133          for(int i=start; i<end; i++) {          for(int i=start; i<end; i++) {
134              float curh = boxes[i].getHeight(scale);              float curh = boxes[i].getHeight(scale);
# Line 137  String rcsid = "$Id$"; Line 137  String rcsid = "$Id$";
137          return h;          return h;
138      }      }
139    
140      public float getDepth(int start, int end, float scale) {      public float getDescent(int start, int end, float scale) {
141          float d = 0;          float d = 0;
142          for(int i=start; i<end; i++) {          for(int i=start; i<end; i++) {
143              float curd = boxes[i].getDepth(scale);              float curd = boxes[i].getDepth(scale);
# Line 145  String rcsid = "$Id$"; Line 145  String rcsid = "$Id$";
145          }          }
146          return d;          return d;
147      }      }
148        
149        public float getHeight(int start, int end, float scale) {
150            return getAscent(start, end, scale) + getDescent(start, end, scale);
151        }
152    
153    
154    

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

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