Revision 3043
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/TagExtension.java | ||
---|---|---|
106 | 106 |
} |
107 | 107 |
} |
108 | 108 |
} |
109 |
layout.setModeDebug(true); |
|
109 | 110 |
layout.refresh(); |
110 | 111 |
} |
111 | 112 |
} |
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/Layout.java | ||
---|---|---|
234 | 234 |
private boolean isDrawCuadricula = true; |
235 | 235 |
private Doc doc = null; |
236 | 236 |
private PrintRequestAttributeSet att = null; |
237 |
|
|
238 |
/** |
|
239 |
* Lo usamos cuando estamos haciendo una ficha y asignando tags |
|
240 |
* Se pone en modo debug cuando hacemos un VIEW_TAGS |
|
241 |
*/ |
|
242 |
private boolean bModeDebug = false; |
|
237 | 243 |
|
238 | 244 |
/** |
239 | 245 |
* Creates a new Layout object. |
... | ... | |
1390 | 1396 |
public void layoutToPDF() { |
1391 | 1397 |
layoutToPDF(null); |
1392 | 1398 |
} |
1399 |
|
|
1400 |
/** |
|
1401 |
* @return Returns the bModeDebug. |
|
1402 |
*/ |
|
1403 |
public boolean isModeDebug() { |
|
1404 |
return bModeDebug; |
|
1405 |
} |
|
1406 |
|
|
1407 |
/** |
|
1408 |
* @param modeDebug The bModeDebug to set. |
|
1409 |
*/ |
|
1410 |
public void setModeDebug(boolean modeDebug) { |
|
1411 |
bModeDebug = modeDebug; |
|
1412 |
} |
|
1393 | 1413 |
} |
trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/FLayoutDraw.java | ||
---|---|---|
145 | 145 |
} |
146 | 146 |
|
147 | 147 |
for (int i = 0; i < layout.getFFrames().size(); i++) { |
148 |
if (layout.getFFrames().get(i) instanceof FFrameView) { |
|
149 |
g2.drawImage(((FFrameView) layout.getFFrames().get(i)).getBufferedImage(), |
|
148 |
IFFrame f = (IFFrame) layout.getFFrames().get(i); |
|
149 |
if (f instanceof FFrameView) { |
|
150 |
g2.drawImage(((FFrameView) f).getBufferedImage(), |
|
150 | 151 |
0, 0, layout); |
151 | 152 |
} else { |
152 |
((IFFrame) layout.getFFrames().get(i)).draw(g2, layout.getAT(),
|
|
153 |
((IFFrame) f).draw(g2, layout.getAT(),
|
|
153 | 154 |
layout.getVisibleRect(), imgBase); |
154 | 155 |
} |
155 | 156 |
|
156 | 157 |
// Dibuja el s?mbolo de que contiene un tag. |
157 |
if (((IFFrame) layout.getFFrames().get(i)).getTag() != null) {
|
|
158 |
((IFFrame) layout.getFFrames().get(i)).drawSymbolTag(g2);
|
|
158 |
if ((f.getTag() != null) && (layout.isModeDebug())) {
|
|
159 |
f.drawSymbolTag(g2);
|
|
159 | 160 |
} |
160 | 161 |
} |
161 | 162 |
|
Also available in: Unified diff