// Utility method to check if the mouse position is inside the
 // connection point
 public boolean inside(int px, int py) {
   return ((px >= getX() + parent.getX())
       && (px <= (getX() + parent.getX() + width))
       && (py >= getY() + parent.getY())
       && (py <= (getY() + parent.getY() + height)));
 }
 // saves only the node; not the Connection!!
 public void save(Writer w, TextureGraphNode n) throws IOException {
   w.write(String.format("%d %d %d\n", n.getX(), n.getY(), folded ? 1 : 0));
   Channel.saveChannel(w, texChannel);
 }
 public int getWorldSpaceX() {
   return parent.getX() + getX() + 4;
 }