/[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.4 by benja, Sun Aug 25 21:20:26 2002 UTC revision 1.5 by benja, Fri Sep 13 12:20:18 2002 UTC
# Line 120  public static final String rcsid = "$Id$ Line 120  public static final String rcsid = "$Id$
120       * @param v The vobscene to add to       * @param v The vobscene to add to
121       * @param cs The coordinate system index       * @param cs The coordinate system index
122       */       */
123      public void addCellVobs(Cell c, VobScene v, int cs, Vob content,      public void addCellVobs(final Cell c, final VobScene v, int cs, final Vob content,
124                              ViewContext context, float scale) {                              final ViewContext context, final float scale) {
125          if(d_clone == null)          if(d_clone == null)
126              throw new NullPointerException("clone dim not set in CellVobFactory");              throw new NullPointerException("clone dim not set in CellVobFactory");
127    
128          RectBgVob bg = new RectBgVob();          final RectBgVob bg = new RectBgVob();
129    
130          List cursorColors = context.getCursorColors(c);          List cursorColors = context.getCursorColors(c);
131          if(cursorColors != null)          if(cursorColors != null)
# Line 161  public static final String rcsid = "$Id$ Line 161  public static final String rcsid = "$Id$
161    
162          Vob.RenderInfo info = v.coords.getRenderInfo(cs);          Vob.RenderInfo info = v.coords.getRenderInfo(cs);
163          info.getExtRect(rect);          info.getExtRect(rect);
164          int content_cs = v.coords.coordsys(cs, CONTENT_KEY, 0, 5, 5,          final int content_cs = v.coords.coordsys(cs, CONTENT_KEY, 0, 5, 5,
165                                             rect.width-10, rect.height-10);                                             rect.width-10, rect.height-10);
166    
167          if(content != null)          gzz.gfx.gl.Stencil.drawStenciled(
168              v.map.put(content, content_cs);              v,
169          else              new Runnable() { public void run() {
170              ccv.place(c, v, content_cs, context, scale);                  v.map.put(bg, content_cs);
171                }},
172                null,
173                null,
174                new Runnable() { public void run() {
175                    if(content != null)
176                        v.map.put(content, content_cs);
177                    else
178                        ccv.place(c, v, content_cs, context, scale);
179                }},
180                false
181            );
182      }      }
183  }  }

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

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