Revision 9284
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/v02/FGraphicUtilities.java | ||
---|---|---|
175 | 175 |
case FShape.MULTI: |
176 | 176 |
|
177 | 177 |
// Pol?gono |
178 |
r.resize(r.width / 3, r.height);
|
|
178 |
r.setSize(r.width / 3, r.height);
|
|
179 | 179 |
|
180 | 180 |
GeneralPathX rectAux2 = new GeneralPathX(r); |
181 | 181 |
rectAux2.transform(mT2); |
... | ... | |
365 | 365 |
return; |
366 | 366 |
} |
367 | 367 |
|
368 |
FontMetrics metrics = g2.getFontMetrics(); |
|
369 |
int width = metrics.stringWidth(theLabel.getString()); |
|
370 |
int height = metrics.getMaxAscent(); |
|
368 |
FontMetrics metrics;// = g2.getFontMetrics();
|
|
369 |
int width;// = metrics.stringWidth(theLabel.getString());
|
|
370 |
int height;// = metrics.getMaxAscent();
|
|
371 | 371 |
|
372 | 372 |
// int height = metrics.getHeight(); |
373 |
g2.setFont(theSymbol.getFont()); |
|
374 |
g2.setColor(theSymbol.getFontColor()); |
|
373 |
//g2.setFont(theSymbol.getFont());
|
|
374 |
//g2.setColor(theSymbol.getFontColor());
|
|
375 | 375 |
|
376 | 376 |
// Aqu? hay que mirar m_Size y m_useSize... |
377 | 377 |
if (!theSymbol.isFontSizeInPixels()) { |
... | ... | |
390 | 390 |
|
391 | 391 |
Font nuevaFuente = theSymbol.getFont().deriveFont(alturaPixels); |
392 | 392 |
g2.setFont(nuevaFuente); |
393 |
width = g2.getFontMetrics().stringWidth(theLabel.getString()); |
|
393 |
g2.setColor(theSymbol.getFontColor()); |
|
394 |
metrics=g2.getFontMetrics(); |
|
395 |
height= metrics.getMaxAscent(); |
|
396 |
width = metrics.stringWidth(theLabel.getString()); |
|
397 |
}else { |
|
398 |
metrics = g2.getFontMetrics(); |
|
399 |
width = metrics.stringWidth(theLabel.getString()); |
|
400 |
height = metrics.getMaxAscent(); |
|
401 |
g2.setFont(theSymbol.getFont()); |
|
402 |
g2.setColor(theSymbol.getFontColor()); |
|
394 | 403 |
} |
395 |
|
|
396 | 404 |
int type=shp.getShapeType(); |
397 | 405 |
if (shp.getShapeType()>=FShape.Z){ |
398 | 406 |
type=shp.getShapeType()-FShape.Z; |
Also available in: Unified diff