Revision 9057 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrVect.java
FLyrVect.java | ||
---|---|---|
92 | 92 |
import com.iver.cit.gvsig.fmap.operations.strategies.Strategy; |
93 | 93 |
import com.iver.cit.gvsig.fmap.operations.strategies.StrategyManager; |
94 | 94 |
import com.iver.cit.gvsig.fmap.operations.strategies.VisitException; |
95 |
import com.iver.cit.gvsig.fmap.rendering.ClassifiedLegendInfo; |
|
95 | 96 |
import com.iver.cit.gvsig.fmap.rendering.Legend; |
96 | 97 |
import com.iver.cit.gvsig.fmap.rendering.LegendChangedEvent; |
97 | 98 |
import com.iver.cit.gvsig.fmap.rendering.LegendFactory; |
... | ... | |
1355 | 1356 |
|
1356 | 1357 |
} |
1357 | 1358 |
|
1359 |
public void beforePrinting(PrintRequestAttributeSet properties) { |
|
1360 |
VectorialLegend vl=(VectorialLegend)getLegend(); |
|
1361 |
if (vl instanceof ClassifiedLegendInfo) { |
|
1362 |
ClassifiedLegendInfo clsfLegend = (ClassifiedLegendInfo) vl; |
|
1363 |
ISymbol[] symbols=clsfLegend.getSymbols(); |
|
1364 |
for (int i=0;i<symbols.length;i++) { |
|
1365 |
symbols[i].setPrintingProperties(properties); |
|
1366 |
} |
|
1367 |
} |
|
1368 |
if (vl.getDefaultSymbol()!=null) { |
|
1369 |
vl.getDefaultSymbol().setPrintingProperties(properties); |
|
1370 |
} |
|
1371 |
} |
|
1372 |
|
|
1373 |
public void afterPrinting() { |
|
1374 |
VectorialLegend vl=(VectorialLegend)getLegend(); |
|
1375 |
if (vl instanceof ClassifiedLegendInfo) { |
|
1376 |
ClassifiedLegendInfo clsfLegend = (ClassifiedLegendInfo) vl; |
|
1377 |
ISymbol[] symbols=clsfLegend.getSymbols(); |
|
1378 |
for (int i=0;i<symbols.length;i++) { |
|
1379 |
symbols[i].setPrintingProperties(null); |
|
1380 |
} |
|
1381 |
} |
|
1382 |
if (vl.getDefaultSymbol()!=null) { |
|
1383 |
vl.getDefaultSymbol().setPrintingProperties(null); |
|
1384 |
} |
|
1385 |
|
|
1386 |
} |
|
1387 |
|
|
1358 | 1388 |
} |
Also available in: Unified diff