/[gzz]/gzz/lava/gzz/loom/Loom.java
ViewVC logotype

Diff of /gzz/lava/gzz/loom/Loom.java

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

revision 1.9 by tuukkah, Wed Feb 26 18:03:55 2003 UTC revision 1.10 by benja, Wed Feb 26 21:32:54 2003 UTC
# Line 51  public class Loom { Line 51  public class Loom {
51      }      }
52    
53      public static void main(String[] args) throws RDFException, IOException {      public static void main(String[] args) throws RDFException, IOException {
54          final Model model = load(args[0]);          String file = "";
55            boolean wheel = false;
56    
57            if(args.length < 1) {
58                System.err.println("No filename given");
59                System.exit(1);
60            } else if(args.length == 1) {
61                file = args[0];
62            } else if(args[0].equals("-w")) {
63                wheel = true;
64                file = args[1];
65            } else {
66                System.err.println("Don't understand parameters");
67                System.exit(1);
68            }
69    
70            final Model model = load(file);
71          final Statement stmt = model.listStatements().next();          final Statement stmt = model.listStatements().next();
72          final GraphicsAPI api = GraphicsAPI.getInstance();          final GraphicsAPI api = GraphicsAPI.getInstance();
73    
# Line 80  public class Loom { Line 96  public class Loom {
96                                 sc.unitSqCS(into, "text"));                                 sc.unitSqCS(into, "text"));
97                  }                  }
98              };              };
99            View view0;
100            if(!wheel) view0 = new SimpleView(nodeView);
101            else view0 = new WheelView(nodeView);
102            final View view = view0;
103          final Shower s = new Shower() {          final Shower s = new Shower() {
104                  Screen screen;                  Screen screen;
105                  public void setScreen(Screen s) {                  public void setScreen(Screen s) {
# Line 87  public class Loom { Line 107  public class Loom {
107                  }                  }
108                  public VobScene generate() {                  public VobScene generate() {
109                      VobScene sc = this.screen.window.createVobScene();                      VobScene sc = this.screen.window.createVobScene();
                     SimpleView sv = new SimpleView(nodeView);  
110                      sc.map.put(new SolidBgVob(java.awt.Color.white), 0);                      sc.map.put(new SolidBgVob(java.awt.Color.white), 0);
111                      sv.render(sc, 0, cursor);                      view.render(sc, 0, cursor);
112                      return sc;                      return sc;
113                  }                  }
114                  public void chg() {}                  public void chg() {}

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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