|
|
|
@ -17,7 +17,6 @@ import com.fr.design.menu.MenuKeySet;
|
|
|
|
|
import com.fr.design.module.DesignModuleFactory; |
|
|
|
|
import com.fr.grid.Grid; |
|
|
|
|
import com.fr.grid.selection.FloatSelection; |
|
|
|
|
import com.fr.log.FineLoggerFactory; |
|
|
|
|
import com.fr.report.ReportHelper; |
|
|
|
|
import com.fr.report.cell.FloatElement; |
|
|
|
|
import com.fr.report.elementcase.TemplateElementCase; |
|
|
|
@ -86,8 +85,7 @@ public class ChartFloatAction extends ElementCaseAction {
|
|
|
|
|
public void doOk() { |
|
|
|
|
isRecordNeeded = true; |
|
|
|
|
FloatElement newFloatElement; |
|
|
|
|
try { |
|
|
|
|
newFloatElement = new FloatElement(chartDialog.getChartCollection().clone()); |
|
|
|
|
newFloatElement = new FloatElement(chartDialog.getChartCollection()); |
|
|
|
|
newFloatElement.setWidth(new OLDPIX(BaseChartCollection.CHART_DEFAULT_WIDTH)); |
|
|
|
|
newFloatElement.setHeight(new OLDPIX(BaseChartCollection.CHART_DEFAULT_HEIGHT)); |
|
|
|
|
|
|
|
|
@ -120,9 +118,6 @@ public class ChartFloatAction extends ElementCaseAction {
|
|
|
|
|
reportPane.getEditingElementCase().addFloatElement(newFloatElement); |
|
|
|
|
reportPane.setSelection(new FloatSelection(newFloatElement.getName())); |
|
|
|
|
reportPane.fireSelectionChangeListener(); |
|
|
|
|
} catch (CloneNotSupportedException e) { |
|
|
|
|
FineLoggerFactory.getLogger().error("Error in Float"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|