Revision 135
org.gvsig.educa.thematicmap/trunk/org.gvsig.educa.thematicmap/org.gvsig.educa.thematicmap.swing/org.gvsig.educa.thematicmap.swing.impl/src/main/java/org/gvsig/educa/thematicmap/swing/impl/viewer/TocTreeCellRenderer.java | ||
---|---|---|
82 | 82 |
private static final org.slf4j.Logger LOG = org.slf4j.LoggerFactory |
83 | 83 |
.getLogger(TocTreeCellRenderer.class); |
84 | 84 |
|
85 |
private static int w_1symbol = 20; |
|
86 |
private static int h_1symbol = 15; |
|
87 |
|
|
88 | 85 |
private final DefaultTreeCellRenderer label; |
89 | 86 |
private final JCheckBox check; |
90 | 87 |
|
... | ... | |
237 | 234 |
case Geometry.TYPES.MULTISURFACE: |
238 | 235 |
case Geometry.TYPES.MULTIPOINT: |
239 | 236 |
img = |
240 |
new BufferedImage(w_1symbol, h_1symbol,
|
|
237 |
new BufferedImage(check.getWidth(), check.getHeight(),
|
|
241 | 238 |
BufferedImage.TYPE_INT_ARGB); |
242 | 239 |
g2 = img.createGraphics(); |
243 |
r = new Rectangle(w_1symbol, h_1symbol);
|
|
240 |
r = new Rectangle(label.getHeight(), label.getHeight());
|
|
244 | 241 |
|
245 | 242 |
// // TODO: CAMBIAR PARA QUE NO DEPENDA DE FSYMBOL |
246 | 243 |
// if (symbol instanceof FSymbol) |
... | ... | |
250 | 247 |
break; |
251 | 248 |
case Geometry.TYPES.GEOMETRY: |
252 | 249 |
img = |
253 |
new BufferedImage(3 * w_1symbol, h_1symbol,
|
|
250 |
new BufferedImage(3 * check.getHeight(), check.getHeight(),
|
|
254 | 251 |
BufferedImage.TYPE_INT_ARGB); |
255 | 252 |
g2 = img.createGraphics(); |
256 |
r = new Rectangle(3 * w_1symbol, h_1symbol);
|
|
253 |
r = new Rectangle(3 * check.getHeight(), check.getHeight());
|
|
257 | 254 |
// if (symbol instanceof FSymbol) |
258 | 255 |
// FGraphicUtilities.DrawSymbol(g2, |
259 | 256 |
// AffineTransform.getScaleInstance(0.8,0.8), r, (FSymbol) symbol); |
Also available in: Unified diff