Revision 9591 trunk/examples/exaTemplateLayout/src/com/iver/templateLayout/PrintingManager.java
PrintingManager.java | ||
---|---|---|
10 | 10 |
import com.iver.cit.gvsig.fmap.layers.FLyrVect; |
11 | 11 |
import com.iver.cit.gvsig.fmap.layers.SelectableDataSource; |
12 | 12 |
import com.iver.cit.gvsig.fmap.layers.layerOperations.Selectable; |
13 |
import com.iver.cit.gvsig.gui.layout.Layout; |
|
14 |
import com.iver.cit.gvsig.gui.layout.fframes.FFrameText; |
|
15 |
import com.iver.cit.gvsig.gui.layout.fframes.FFrameView; |
|
16 | 13 |
import com.iver.cit.gvsig.project.Project; |
17 | 14 |
import com.iver.cit.gvsig.project.documents.layout.ProjectMap; |
18 | 15 |
import com.iver.cit.gvsig.project.documents.layout.ProjectMapFactory; |
16 |
import com.iver.cit.gvsig.project.documents.layout.fframes.FFrameText; |
|
17 |
import com.iver.cit.gvsig.project.documents.layout.fframes.FFrameView; |
|
19 | 18 |
import com.iver.cit.gvsig.project.documents.layout.fframes.IFFrame; |
19 |
import com.iver.cit.gvsig.project.documents.layout.gui.Layout; |
|
20 | 20 |
|
21 | 21 |
public class PrintingManager { |
22 | 22 |
FLyrVect layer; |
... | ... | |
40 | 40 |
// operate on index i here } |
41 | 41 |
IFeature feat = layer.getSource().getFeature(i); |
42 | 42 |
|
43 |
IFFrame[] theFrames = layout.getFFrames(); |
|
43 |
IFFrame[] theFrames = layout.getLayoutContext().getFFrames();
|
|
44 | 44 |
for (int j=0; j < theFrames.length; j++) |
45 | 45 |
{ |
46 | 46 |
if (theFrames[j].getTag() != null) |
... | ... | |
53 | 53 |
} |
54 | 54 |
} |
55 | 55 |
} |
56 |
layout.refresh(); |
|
56 |
layout.getLayoutControl().refresh();
|
|
57 | 57 |
layout.showPrintDialog(null); |
58 | 58 |
} |
59 | 59 |
|
Also available in: Unified diff