/[gzz]/gzz/lava/gzz/potion/potions/PrefixOrThis.java
ViewVC logotype

Diff of /gzz/lava/gzz/potion/potions/PrefixOrThis.java

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

revision 1.1 by antonfeldmann, Sat Jan 4 17:44:59 2003 UTC revision 1.2 by benja, Mon Jan 6 11:57:30 2003 UTC
# Line 8  import gzz.vob.linebreaking.HChain; Line 8  import gzz.vob.linebreaking.HChain;
8  import gzz.*;  import gzz.*;
9  import gzz.potion.*;  import gzz.potion.*;
10    
11  public class PrefixOrThis implements Function {  public class PrefixOrThis extends PrefixOrOther {
12    
13      protected Cell getCell(Map context) {      protected Cell getCell(Map context) {
14          System.out.println("PrefixOrThis.getCell");          Fallback.Win win = (Fallback.Win)context.get(ViewContext.class);
         Fallback.Win win = (Fallback.Win)context.get(ViewContext.class);  
15          return win.cursor;          return win.cursor;
16      }      }
   
     public List evaluate(List[] params, Map context) {  
         return Collections.nCopies(1, getCell(context));  
     }  
       
17      public String getString(Expression[] params, Map context) {      public String getString(Expression[] params, Map context) {
18          return "the cell in this window";          return "the cell in this window";
     }  
           
     public void render(Expression[] params,Map context, HChain into) {  
     }  
           
     public Type[] getParams() {  
         return new Type[0];  
19      }      }
20  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

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