1 |
package org.freehep.graphicsio.emf.gdiplus; |
2 |
|
3 |
public class PathPoint { |
4 |
|
5 |
public static final int TYPE_INVALID = -1; |
6 |
public static final int TYPE_START = 0; |
7 |
public static final int TYPE_LINE = 1; |
8 |
public static final int TYPE_BEZIER = 3; |
9 |
public static final int TYPE_PATH_TYPE_MASK = 0x07; |
10 |
public static final int TYPE_DASH_MODE = 0x10; |
11 |
public static final int TYPE_PATH_MARKER = 0x20; |
12 |
public static final int TYPE_CLOSE_SUBPATH = 0x80; |
13 |
|
14 |
private float x, y; |
15 |
private int type; |
16 |
|
17 |
public PathPoint() { |
18 |
this.type = TYPE_INVALID; |
19 |
this.x = 0; |
20 |
this.y = 0; |
21 |
} |
22 |
|
23 |
public PathPoint(int type, double x, double y) { |
24 |
this(type, (float)x, (float)y); |
25 |
} |
26 |
|
27 |
public PathPoint(int type, float x, float y) { |
28 |
this.type = type; |
29 |
this.x = x; |
30 |
this.y = y; |
31 |
} |
32 |
|
33 |
public void setType(int type) { |
34 |
this.type = type; |
35 |
} |
36 |
|
37 |
public int getType() { |
38 |
return type; |
39 |
} |
40 |
|
41 |
public void setX(float x) { |
42 |
this.x = x; |
43 |
} |
44 |
|
45 |
public float getX() { |
46 |
return x; |
47 |
} |
48 |
|
49 |
public void setY(float y) { |
50 |
this.y = y; |
51 |
} |
52 |
|
53 |
public float getY() { |
54 |
return y; |
55 |
} |
56 |
} |