00001
00002
00003
00004
00005 package org.hfbk.vis.visnode;
00006
00007 import org.dronus.graph.Node;
00008 import org.hfbk.vis.Prefs;
00009 import org.lwjgl.util.vector.Vector3f;
00010
00011
00018 public class VisWelcome extends VisNode {
00019 public VisWelcome() {
00020 super(null, new Vector3f());
00021
00022
00023
00024
00025
00026
00027
00028
00029 add(new VisKeyword(new Node("vis"), new Vector3f(-5, 0, 70)));
00030 add(new VisKeyword(new Node("/"), new Vector3f(0, -1, 70)));
00031 add(new VisKeyword(new Node("space"), new Vector3f(5, -2, 70)));
00032
00033 add(new VisText(
00034 new Node("drag mouse on background to navigate.\ntry dragging with different mouse buttons\nclick keywords or enter a word beneath\n\npress the x below to exit."),
00035 new Vector3f(15, 8, 65.4f),
00036 37
00037 ));
00038
00039
00040
00041
00042
00043 add(new VisKeyword(
00044 new Node("v0."+Prefs.current.version),
00045 new Vector3f(5, -8.5f, 63.4f)
00046 ));
00047
00048
00049 }
00050
00051 boolean fetched=false;
00052 void renderSelf() {
00053 if (!fetched){
00054 getRoot().fetch("welcome", Prefs.current.version, null);
00055 fetched=true;
00056 }
00057 }
00058
00059 }