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 |
|
|
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) { |
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() {} |