/[libvob]/libvob/org/nongnu/libvob/vobs/SelectListVob.java
ViewVC logotype

Diff of /libvob/org/nongnu/libvob/vobs/SelectListVob.java

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

revision 1.3 by tjl, Sat Aug 9 14:39:45 2003 UTC revision 1.4 by mudyc, Mon Aug 11 14:14:07 2003 UTC
# Line 76  public class SelectListVob extends Abstr Line 76  public class SelectListVob extends Abstr
76                         RenderInfo info1, RenderInfo info2) {                         RenderInfo info1, RenderInfo info2) {
77          throw new Error("Not implemented");          throw new Error("Not implemented");
78      }      }
79    
80        private Color accursedColor = null;
81        private Key accursed = null;
82        public void colorize(Key key, Color color) {
83            accursed = key;
84            accursedColor = color;
85        }
86            
87      public int putGL(VobScene vs, int into) {      public int putGL(VobScene vs, int into) {
88          vs.put(bg, into);          vs.put(bg, into);
# Line 93  public class SelectListVob extends Abstr Line 100  public class SelectListVob extends Abstr
100    
101          for (int i=0; i<vobs.size(); i++) {          for (int i=0; i<vobs.size(); i++) {
102              TextVob item = (TextVob)vobs.get(i);              TextVob item = (TextVob)vobs.get(i);
103                if (keys.get(i) == accursed) {
104                    vobs.remove(i);
105                    vobs.add(i, new TextVob(style, item.text, false, accursedColor));
106                    item = (TextVob)vobs.get(i);
107                }
108    
109              if (dbg) p("d:"+item.getDepth(scale)+"w:"+item.getWidth(scale)+"h:"+item.getHeight(scale));              if (dbg) p("d:"+item.getDepth(scale)+"w:"+item.getWidth(scale)+"h:"+item.getHeight(scale));
110    

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

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