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

Diff of /gzz/gzz/view/CellVobFactory.java

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

revision 1.25 by tjl, Tue Oct 29 07:30:58 2002 UTC revision 1.26 by tjl, Tue Oct 29 15:08:08 2002 UTC
# Line 101  public static final String rcsid = "$Id$ Line 101  public static final String rcsid = "$Id$
101          sliceId = getSliceId(center);          sliceId = getSliceId(center);
102      }      }
103    
104      public void getDefaultSize(float scale, Dimension into) {      public void getSize(Cell c, float scale, float[] into) {
105          into.width = (int)style.getWidth("XXXXXXXXXX", scale)+10;          into[0] = style.getWidth("XXXXXXXXXX", scale)/scale+10;
106          into.height = (int)style.getHeight(scale) + 10;          into[1] = style.getHeight(scale)/scale + 10;
     }  
   
     public Dimension getDefaultSize() {  
         Dimension d = new Dimension();  
         getDefaultSize(1, d);  
         return d;  
107      }      }
108    
109      /** Get an Id for the slice this Cell is in.      /** Get an Id for the slice this Cell is in.

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

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