コード例 #1
0
ファイル: Path.java プロジェクト: andreyvit/yoursway-swt
 /**
  * Adds to the receiver a line from the current point to the point specified by (x, y).
  *
  * @param x the x coordinate of the end of the line to add
  * @param y the y coordinate of the end of the line to add
  * @exception SWTException
  *     <ul>
  *       <li>ERROR_GRAPHIC_DISPOSED - if the receiver has been disposed
  *     </ul>
  */
 public void lineTo(float x, float y) {
   if (isDisposed()) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
   NSPoint pt = new NSPoint();
   pt.x = x;
   pt.y = y;
   handle.lineToPoint(pt);
 }