Revision 49 org.gvsig.chart/trunk/org.gvsig.chart/org.gvsig.chart.app/org.gvsig.chart.app.layoutplugin/src/main/java/org/gvsig/project/documents/layout/frames/gui/dialogs/FFrameChartDialog.java

View differences:

FFrameChartDialog.java
18 18
import org.gvsig.app.project.documents.Document;
19 19
import org.gvsig.app.project.documents.chart.ChartDocument;
20 20
import org.gvsig.app.project.documents.chart.ChartDocumentManager;
21
import org.gvsig.app.project.documents.layout.LayoutContext;
21 22
import org.gvsig.app.project.documents.layout.fframes.IFFrame;
22 23
import org.gvsig.app.project.documents.layout.fframes.gui.JPRotation;
23 24
import org.gvsig.app.project.documents.layout.fframes.gui.dialogs.AbstractFFrameDialog;
......
43 44
        initialize();
44 45
		
45 46
	}
47
	
46 48

  
49
	public FFrameChart getFFChart(){
50
		return fframechart;
51
	}
52

  
47 53
	private void initialize() {
48 54
        this.setLayout(null);
49 55
        this.setSize(505, 142);
......
81 87
        	public void actionPerformed(ActionEvent e) {
82 88
        		ChartDocument chartSelected = (ChartDocument) cboChartDoc.getSelectedItem();
83 89
        		if (chartSelected != null){
84
        			fframechart.setChartDoc(chartSelected);
85
        			fframechart.setLegendVisible(cboChartLegendVisible.isSelected());
86
        			fframechart.setRotation(getPRotation().getRotation());
90
//        			getFFChart().setChartDoc(chartSelected);
91
//        			getFFChart().setLegendVisible(cboChartLegendVisible.isSelected());
92
//        			getFFChart().setRotation(getPRotation().getRotation());
87 93
        			//fframechart.setAxisLabels(cboChartAxisLabelsVisible.isSelected());
94
        			
95
        			
96
        			LayoutPanel layout = (LayoutPanel) PluginServices.getMDIManager().getActiveWindow();
97
        		    	
98
                    getFFChart().setChartDoc(chartSelected);
99
                    LayoutContext lctxt = layout.getLayoutContext();
100
                    getFFChart().setLegendVisible(cboChartLegendVisible.isSelected());
101
        			getFFChart().setRotation(getPRotation().getRotation());
102
        			
103
                	lctxt.addFFrame(getFFChart(), true, true);
104
                	layout.getDocument().setModified(true);
105
                	layout.getLayoutControl().refresh();
88 106
        		}
89 107
                PluginServices.getMDIManager().closeWindow(FFrameChartDialog.this);
90 108

  

Also available in: Unified diff