Revision 266 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/FPoint3D.java
FPoint3D.java | ||
---|---|---|
27 | 27 |
this.z=z; |
28 | 28 |
} |
29 | 29 |
|
30 |
/** |
|
31 |
* @see com.iver.cit.gvsig.fmap.core.FGeometry#draw(java.awt.Graphics2D, |
|
32 |
* ViewPort, org.geotools.renderer.style.Style2D) |
|
33 |
*/ |
|
34 |
public void draw(Graphics2D g, ViewPort vp, Style2D symbol) { |
|
35 |
int size = 2; |
|
36 |
int hw=4; |
|
37 |
java.awt.geom.Point2D.Double p=new java.awt.geom.Point2D.Double(x,y); |
|
38 |
vp.getAffineTransform().transform(p,p); |
|
39 |
g.setColor(Color.red); |
|
40 |
g.fillOval((int) p.x - size, (int) p.y - size, (int) hw, |
|
41 |
(int) hw); |
|
42 |
g.setColor(Color.black); |
|
43 |
g.drawOval((int) p.x - size, (int) p.y - size, (int) hw, |
|
44 |
(int) hw); |
|
45 |
|
|
46 |
} |
|
47 |
|
|
48 |
|
|
49 |
/** |
|
50 |
* @see com.iver.cit.gvsig.fmap.core.FGeometry#getType() |
|
51 |
*/ |
|
52 |
public int getType() { |
|
53 |
return FGeometry.POINT; |
|
54 |
} |
|
55 |
|
|
56 |
/** |
|
57 |
* @see com.iver.cit.gvsig.fmap.core.FGeometry#toJTSGeometry() |
|
58 |
*/ |
|
59 |
public Geometry toJTSGeometry() { |
|
60 |
return null; |
|
61 |
} |
|
62 |
|
|
63 |
/** |
|
64 |
* @see com.iver.cit.gvsig.fmap.core.FGeometry#createLabels(int, boolean) |
|
65 |
*/ |
|
66 |
public FGeometry[] createLabels(int position, boolean duplicates) { |
|
67 |
return null; |
|
68 |
} |
|
69 |
|
|
70 |
/** |
|
71 |
* @see java.awt.Shape#contains(double, double) |
|
72 |
*/ |
|
73 |
public boolean contains(double arg0, double arg1) { |
|
74 |
return false; |
|
75 |
} |
|
76 |
|
|
77 |
/** |
|
78 |
* @see java.awt.Shape#contains(double, double, double, double) |
|
79 |
*/ |
|
80 |
public boolean contains(double arg0, double arg1, double arg2, double arg3) { |
|
81 |
return false; |
|
82 |
} |
|
83 |
|
|
84 |
/** |
|
85 |
* @see java.awt.Shape#intersects(double, double, double, double) |
|
86 |
*/ |
|
87 |
public boolean intersects(double arg0, double arg1, double arg2, double arg3) { |
|
88 |
return false; |
|
89 |
} |
|
90 |
|
|
91 |
/** |
|
92 |
* @see java.awt.Shape#getBounds() |
|
93 |
*/ |
|
94 |
public Rectangle getBounds() { |
|
95 |
return null; |
|
96 |
} |
|
97 |
|
|
98 |
/** |
|
99 |
* @see java.awt.Shape#contains(java.awt.geom.Point2D) |
|
100 |
*/ |
|
101 |
public boolean contains(FPoint2D arg0) { |
|
102 |
return false; |
|
103 |
} |
|
104 |
|
|
105 |
/** |
|
106 |
* @see java.awt.Shape#getBounds2D() |
|
107 |
*/ |
|
108 |
public Rectangle2D getBounds2D() { |
|
109 |
return null; |
|
110 |
} |
|
111 |
|
|
112 |
/** |
|
113 |
* @see java.awt.Shape#contains(java.awt.geom.Rectangle2D) |
|
114 |
*/ |
|
115 |
public boolean contains(Rectangle2D arg0) { |
|
116 |
return false; |
|
117 |
} |
|
118 |
|
|
119 |
/** |
|
120 |
* @see java.awt.Shape#intersects(java.awt.geom.Rectangle2D) |
|
121 |
*/ |
|
122 |
public boolean intersects(Rectangle2D r) { |
|
123 |
return r.contains(x,y); |
|
124 |
} |
|
125 |
|
|
126 |
/** |
|
127 |
* @see java.awt.Shape#getPathIterator(java.awt.geom.AffineTransform) |
|
128 |
*/ |
|
129 |
public PathIterator getPathIterator(AffineTransform arg0) { |
|
130 |
return null; |
|
131 |
} |
|
132 |
|
|
133 |
/** |
|
134 |
* @see java.awt.Shape#getPathIterator(java.awt.geom.AffineTransform, |
|
135 |
* double) |
|
136 |
*/ |
|
137 |
public PathIterator getPathIterator(AffineTransform arg0, double arg1) { |
|
138 |
return null; |
|
139 |
} |
|
140 | 30 |
} |
Also available in: Unified diff