4 @SuppressWarnings public class QPath : QCore{
5 public QPath() throws IllegalArgumentException{
6 nativehandle = QtXnl.createNObject(QType.qtPath, 0);
7 if (nativehandle == 0){
12 public void moveto(
double x,
double y){
13 double [] param = {x, y};
14 QtXnl.pointer_intlong2(param, Constant.PATHMOVETO, nativehandle, 0);
17 public void lineto(
double x,
double y){
18 double [] param = {x, y};
19 QtXnl.pointer_intlong2(param, Constant.PATHLINETO, nativehandle, 0);
22 public void arcmoveto(
double l,
double t,
double r,
double b,
double angle){
23 double [] param = {l, t, r, b, angle};
24 QtXnl.pointer_intlong2(param, Constant.PATHARCMOVETO, nativehandle, 0);
27 public void arcto(
double l,
double t,
double r,
double b,
double angle,
double length){
28 double [] param = {l, t, r, b, angle, length};
29 QtXnl.pointer_intlong2(param, Constant.PATHARCTO, nativehandle, 0);
32 public void cubicto(
double c1x,
double c1y,
double c2x,
double c2y,
double ex,
double ey){
33 double [] param = {c1x, c1y, c2x, c2y, ex, ey};
34 QtXnl.pointer_intlong2(param, Constant.CUBICTO, nativehandle, 0);
37 public void quadto(
double c1x,
double c1y,
double ex,
double ey){
38 double [] param = {c1x, c1y, ex, ey};
39 QtXnl.pointer_intlong2(param, Constant.QUADTO, nativehandle, 0);
42 public void addRect(
double l,
double t,
double r,
double b){
43 double [] param = {l, t, r, b};
44 QtXnl.pointer_intlong2(param, Constant.ADDRECT, nativehandle, 0);
47 public void addEllipse(
double l,
double t,
double r,
double b){
48 double [] param = {l, t, r, b};
49 QtXnl.pointer_intlong2(param, Constant.ADDELLIPSE, nativehandle, 0);
53 QtXnl.widget_slot(nativehandle, Constant.PATH_CLOSE);
57 QtXnl.widget_slot(nativehandle, Constant.PATHCTOR);
void moveto(double x, double y)
void quadto(double c1x,double c1y,double ex, double ey)
void cubicto(double c1x,double c1y,double c2x,double c2y,double ex, double ey)
void arcmoveto(double l,double t,double r,double b,double angle)
void lineto(double x, double y)
void addRect(double l,double t,double r,double b)
void arcto(double l,double t,double r,double b,double angle, double length)
void addEllipse(double l,double t,double r,double b)