Revision 810 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/toc/TOC.java
TOC.java | ||
---|---|---|
230 | 230 |
*/ |
231 | 231 |
public void atomicEvent(AtomicEvent e) { |
232 | 232 |
if ((e.getLayerCollectionEvents().length > 0) || |
233 |
(e.getLegendEvents().length > 0) || |
|
234 |
(e.getLayerEvents().length > 0)){ |
|
233 |
(e.getLegendEvents().length > 0)) |
|
235 | 234 |
refresh(); |
235 |
if (e.getLayerEvents().length > 0) { |
|
236 |
repaint(); |
|
236 | 237 |
} |
237 | 238 |
} |
238 | 239 |
}); |
... | ... | |
245 | 246 |
LayerCollection theLayers = mapContext.getLayers(); |
246 | 247 |
m_Root.removeAllChildren(); |
247 | 248 |
m_Root.setAllowsChildren(true); |
248 |
|
|
249 |
System.out.println("Refresh del toc"); |
|
249 | 250 |
doRefresh(theLayers, m_Root); |
250 | 251 |
|
251 | 252 |
m_TreeModel.reload(); |
... | ... | |
375 | 376 |
} |
376 | 377 |
System.out.println("i=" + i++); |
377 | 378 |
} |
378 |
m_Tree.setSize(this.getSize()); |
|
379 |
// m_Tree.setSize(this.getSize());
|
|
379 | 380 |
|
380 | 381 |
System.out.println("Ancho del tree=" + m_Tree.getWidth() + " " + m_Tree.getComponentCount()); |
381 | 382 |
System.out.println("Ancho del TOC=" + this.getWidth()); |
Also available in: Unified diff