|
|
|
@ -13,6 +13,7 @@ import com.fr.van.chart.designer.style.VanChartStylePane;
|
|
|
|
|
import com.fr.van.chart.pie.style.VanChartPieValueLabelContentPane; |
|
|
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
|
import java.awt.Component; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -34,6 +35,14 @@ public class VanChartPieValueLabelDetailPane extends VanChartPlotLabelDetailPane
|
|
|
|
|
return panel; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected JPanel createBorderAndBackgroundPane() { |
|
|
|
|
JPanel jPanel = new JPanel(); |
|
|
|
|
jPanel.setLayout(new BorderLayout(0, 10)); |
|
|
|
|
jPanel.add(createLabelBorderPane(), BorderLayout.NORTH); |
|
|
|
|
jPanel.add(createLabelBackgroundPane(), BorderLayout.CENTER); |
|
|
|
|
return jPanel; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected JPanel createLabelBorderPane() { |
|
|
|
|
VanChartBorderWithShapePane borderPane = new VanChartBorderWithShapePane() { |
|
|
|
|
@Override |
|
|
|
@ -58,6 +67,18 @@ public class VanChartPieValueLabelDetailPane extends VanChartPlotLabelDetailPane
|
|
|
|
|
|
|
|
|
|
protected JPanel createLabelBackgroundPane() { |
|
|
|
|
VanChartBackgroundWithOutImagePane backgroundPane = new VanChartBackgroundWithOutImagePane() { |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected JPanel initContentPanel() { |
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
|
double f = TableLayout.FILL; |
|
|
|
|
double e = TableLayout4VanChartHelper.EDIT_AREA_WIDTH; |
|
|
|
|
double[] columnSize = {f, e}; |
|
|
|
|
double[] rowSize = {p, p, p}; |
|
|
|
|
return TableLayout4VanChartHelper.createGapTableLayoutPane(getPaneComponents(), rowSize, columnSize); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
protected Component[][] getPaneComponents() { |
|
|
|
|
return new Component[][]{ |
|
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Basic_Utils_Background")), typeComboBox}, |
|
|
|
|