Beispiel #1
0
 public void setIntermediate(Point p, ONLGraphic c) {
   if (ltool.isEnabled()) {
     if (linkGraphic != null) {
       Point pnt = new Point(p);
       // System.out.println("LinkTool::setIntermediate (" + pnt.getX() + ", " + pnt.getY() +
       // ")");
       if (c != null) {
         // System.out.println("                         translated by (" + c.getScreenX()+ ", "
         // + c.getScreenY() + ")");
         pnt.translate(
             (c.getScreenX() + HardwareGraphic.OFFSET),
             (c.getScreenY() + HardwareGraphic.D_OFFSET));
         // System.out.println("                          (" + pnt.getX() + ", " + pnt.getY() +
         // ")");
       }
       linkGraphic.setIntermediate(pnt);
       linkGraphic.revalidate();
       linkGraphic.repaint();
     }
   }
 }