/[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.12 by benja, Thu Sep 26 14:36:22 2002 UTC revision 1.13 by tjl, Fri Sep 27 09:07:56 2002 UTC
# Line 118  public static final String rcsid = "$Id$ Line 118  public static final String rcsid = "$Id$
118    
119      static Rectangle rect = new Rectangle();      static Rectangle rect = new Rectangle();
120    
121      public void place(Cell c, VobScene vs, int coordsys,      public void place(Cell c, VobScene vs, int coordsys_out,
122                        int coordsys_box,
123                        float x, float y, float w, float h,
124                        ViewContext context, float scale) {                        ViewContext context, float scale) {
125          addCellVobs(c, vs, coordsys, null, context, scale);          addCellVobs(c, vs, coordsys_out, coordsys_box,
126                        x, y, w, h, null, context, scale);
127      }      }
128    
129      /** Add the vobs that make up a cell into the given coordinate      /** Add the vobs that make up a cell into the given coordinate
# Line 129  public static final String rcsid = "$Id$ Line 132  public static final String rcsid = "$Id$
132       * @param v The vobscene to add to       * @param v The vobscene to add to
133       * @param cs The coordinate system index       * @param cs The coordinate system index
134       */       */
135      public void addCellVobs(final Cell c, final VobScene v, int cs, final Vob content,      public void addCellVobs(final Cell c, final VobScene v, final int cs_out,
136                        final int cs_box,
137                        final float x, final float y, final float w, final float h,
138                    final Vob content,
139                              final ViewContext context, final float scale) {                              final ViewContext context, final float scale) {
140          setCenter(context.getAccursed());          setCenter(context.getAccursed());
141          if(d_clone == null)          if(d_clone == null)
# Line 167  public static final String rcsid = "$Id$ Line 173  public static final String rcsid = "$Id$
173              bg.setBg(new Color(bg.getBg().getRGB() & (int)0xff00ffffL));              bg.setBg(new Color(bg.getBg().getRGB() & (int)0xff00ffffL));
174      */      */
175    
176          v.map.put(bg, cs);          v.map.put(bg, cs_box);
177    
         Vob.RenderInfo info = v.coords.getRenderInfo(cs);  
         info.getExtRect(rect);  
         final int content_cs = v.coordsys(cs, CONTENT_KEY, 0, 5, 5,  
                                            rect.width-10, rect.height-10);  
178    
179          if(!(GraphicsAPI.getInstance() instanceof gzz.client.gl.GLAPI)) {          if(!(GraphicsAPI.getInstance() instanceof gzz.client.gl.GLAPI)) {
180                Vob.RenderInfo info = v.coords.getRenderInfo(cs_box);
181                info.getExtRect(rect);
182                final int content_cs = v.coordsys(cs_box, CONTENT_KEY, 0, 5, 5,
183                                       rect.width-10, rect.height-10);
184              if(content != null)              if(content != null)
185                  v.map.put(content, content_cs);                  v.map.put(content, content_cs);
186              else              else
187                  ccv.place(c, v, content_cs, context, scale);                  ccv.place(c, v, cs_out, content_cs, x, y, w, h, context, scale);
188          } else {          } else {
189              gzz.gfx.gl.Stencil.drawStenciled(              gzz.gfx.gl.Stencil.drawStenciled(
190                  v,                  v,
191                  new Runnable() { public void run() {                  new Runnable() { public void run() {
192                      v.map.put(bg, content_cs);                      v.map.put(bg, cs_box);
193                  }},                  }},
194                  null,                  null,
195                  null,                  null,
196                  new Runnable() { public void run() {                  new Runnable() { public void run() {
197                      if(content != null)                      ccv.place(c, v, cs_out, cs_box, x, y, w, h, context, scale);
                         v.map.put(content, content_cs);  
                     else  
                         ccv.place(c, v, content_cs, context, scale);  
198                  }},                  }},
199                  false                  false
200              );              );

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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