/[gzz]/gzz/gzz/view/CellHBox.java
ViewVC logotype

Diff of /gzz/gzz/view/CellHBox.java

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

revision 1.7 by tjl, Mon Oct 14 10:11:12 2002 UTC revision 1.8 by tjl, Tue Oct 29 07:30:58 2002 UTC
# Line 33  public class CellHBox implements HBox { Line 33  public class CellHBox implements HBox {
33      CellView view;      CellView view;
34      ViewContext context;      ViewContext context;
35    
36      static Dimension dim = new Dimension();      float w = -1, h = -1;
37    
38        static float[] size = new float[2];
39    
40      public CellHBox(Cell cell, CellView view, ViewContext context) {      public CellHBox(Cell cell, CellView view, ViewContext context) {
41          this.cell = cell;          this.cell = cell;
42          this.view = view;          this.view = view;
43          this.context = context;          this.context = context;
44            view.getSize(cell, size);
45            w = size[0];
46            h = size[1];
47      }      }
48    
49      public float getWidth(float scale) {      public float getWidth(float scale) {
50          view.getDefaultSize(scale, dim);          return scale * w;
         return dim.width;  
51      }      }
52    
53      public float getHeight(float scale) {      public float getHeight(float scale) {
54          view.getDefaultSize(scale, dim);          return scale * h;
         return dim.height;  
55      }      }
56    
57      public float getDepth(float scale) {      public float getDepth(float scale) {

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

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