You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.1 KiB
31 lines
1.1 KiB
package com.fr.quickeditor.chartquick; |
|
|
|
import com.fr.base.chart.BaseChartCollection; |
|
import com.fr.design.designer.TargetComponent; |
|
import com.fr.design.gui.chart.BaseChartPropertyPane; |
|
import com.fr.design.module.DesignModuleFactory; |
|
import com.fr.design.selection.QuickEditor; |
|
import com.fr.poly.PolyDesigner; |
|
import com.fr.poly.creator.ChartBlockEditor; |
|
|
|
import java.awt.*; |
|
|
|
|
|
public class PolyChartQuickEditor extends QuickEditor<TargetComponent> { |
|
public PolyChartQuickEditor() { |
|
setLayout(new BorderLayout()); |
|
setBorder(null); |
|
} |
|
|
|
@Override |
|
protected void refresh() { |
|
BaseChartPropertyPane editingPropertyPane; |
|
BaseChartCollection collection; |
|
ChartBlockEditor chartBlockEditor = (ChartBlockEditor) ((PolyDesigner) tc).getSelection().getEditor(); |
|
collection = chartBlockEditor.getValue().getChartCollection(); |
|
add(editingPropertyPane = DesignModuleFactory.getChartPropertyPane(), BorderLayout.CENTER); |
|
editingPropertyPane.setSupportCellData(false); |
|
editingPropertyPane.populateChartPropertyPane(collection, tc); |
|
} |
|
|
|
} |