public void AddLine(float x1, float y1, float x2, float y2)
        {
            Line2D l = new Line2D.Float(x1, y1, x2, y2);

            NativeObject.append(l);
        }
Example #2
0
 /**
  * Draws a line, using the current color, between the points
  * <code>(x1,&nbsp;y1)</code> and <code>(x2,&nbsp;y2)</code>
  * in this graphics context's coordinate system.
  * @param   x1  the first point's <i>x</i> coordinate.
  * @param   y1  the first point's <i>y</i> coordinate.
  * @param   x2  the second point's <i>x</i> coordinate.
  * @param   y2  the second point's <i>y</i> coordinate.
  */
 public void DrawLine(int x1, int y1, int x2, int y2){
     Line2D line = new Line2D.Float(x1, y1, x2, y2);
     Draw(line);
 }
Example #3
0
		public void AddLine (float x1, float y1, float x2, float y2)
		{
			Line2D l = new Line2D.Float(x1,y1,x2,y2);
			NativeObject.append(l);
		}