public void AddLine(float x1, float y1, float x2, float y2) { Line2D l = new Line2D.Float(x1, y1, x2, y2); NativeObject.append(l); }
/** * Draws a line, using the current color, between the points * <code>(x1, y1)</code> and <code>(x2, 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); }
public void AddLine (float x1, float y1, float x2, float y2) { Line2D l = new Line2D.Float(x1,y1,x2,y2); NativeObject.append(l); }