Revision 8432 trunk/extensions/extGraph_predes/src/com/iver/cit/gvsig/fmap/core/symbols/CharacterMarker.java
CharacterMarker.java | ||
---|---|---|
43 | 43 |
* |
44 | 44 |
* $Id$ |
45 | 45 |
* $Log$ |
46 |
* Revision 1.3 2006-10-29 23:53:49 jaume
|
|
46 |
* Revision 1.4 2006-10-30 19:30:35 jaume
|
|
47 | 47 |
* *** empty log message *** |
48 | 48 |
* |
49 |
* Revision 1.3 2006/10/29 23:53:49 jaume |
|
50 |
* *** empty log message *** |
|
51 |
* |
|
49 | 52 |
* Revision 1.2 2006/10/26 16:27:33 jaume |
50 | 53 |
* support for composite marker symbols (not tested) |
51 | 54 |
* |
... | ... | |
78 | 81 |
|
79 | 82 |
import com.iver.cit.gvsig.fmap.core.FPoint2D; |
80 | 83 |
import com.iver.cit.gvsig.fmap.core.FShape; |
81 |
import com.iver.cit.gvsig.fmap.core.IGeometry; |
|
82 | 84 |
import com.iver.cit.gvsig.fmap.core.ISymbol; |
83 | 85 |
import com.iver.cit.gvsig.fmap.core.v02.FConstant; |
84 | 86 |
import com.iver.utiles.StringUtilities; |
... | ... | |
135 | 137 |
|
136 | 138 |
public ISymbol getSymbolForSelection() { |
137 | 139 |
// TODO Auto-generated method stub |
138 |
return null;
|
|
140 |
throw new Error("Not yet implemented!");
|
|
139 | 141 |
} |
140 | 142 |
|
141 | 143 |
public void draw(Graphics2D g, AffineTransform affineTransform, FShape shp) { |
... | ... | |
169 | 171 |
public int getPixExtentPlus(Graphics2D g, AffineTransform affineTransform, |
170 | 172 |
Shape shp) { |
171 | 173 |
// TODO Auto-generated method stub |
172 |
return 0;
|
|
174 |
throw new Error("Not yet implemented!");
|
|
173 | 175 |
} |
174 | 176 |
|
175 | 177 |
public int getOnePointRgb() { |
... | ... | |
215 | 217 |
return CHARACTER_MARKER; |
216 | 218 |
} |
217 | 219 |
|
218 |
public boolean isSuitableFor(IGeometry geom) { |
|
219 |
return geom.getGeometryType() == FShape.POINT; |
|
220 |
} |
|
221 |
|
|
222 | 220 |
public void drawInsideRectangle(Graphics2D g, |
223 | 221 |
AffineTransform scaleInstance, Rectangle r) { |
224 | 222 |
g.rotate(getRotation()); |
... | ... | |
227 | 225 |
double h = r.getHeight(); |
228 | 226 |
Font myFont = font.deriveFont( |
229 | 227 |
(float) (h * FConstant.FONT_HEIGHT_SCALE_FACTOR)).deriveFont( |
230 |
scaleInstance);
|
|
228 |
scaleInstance); |
|
231 | 229 |
g.setFont(myFont); |
232 | 230 |
g.setColor(color); |
233 | 231 |
r.y = (int) h; |
Also available in: Unified diff