예제 #1
0
 // 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)));
 }
예제 #2
0
 // 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);
 }
예제 #3
0
 public int getWorldSpaceX() {
   return parent.getX() + getX() + 4;
 }