public static TextureGraphNode load(Scanner s) {
   int x = s.nextInt();
   int y = s.nextInt();
   boolean isFolded = false;
   if (s.hasNextInt()) { // this check is needed to be compatible to files savec in version 0.6.3
     // and earlier (where no folding existed)
     isFolded = (s.nextInt() == 1);
   }
   TextureGraphNode ret = new TextureGraphNode(Channel.loadChannel(s));
   ret.setLocation(x, y);
   ret.setFolded(isFolded);
   return ret;
 }
 /** @return a true copy of the current node */
 public TextureGraphNode cloneThisNode() {
   TextureGraphNode ret = new TextureGraphNode(Channel.cloneChannel(texChannel));
   ret.setLocation(getX(), getY());
   return ret;
 }