|
|
@ -13,6 +13,7 @@ import com.fr.van.chart.designer.style.VanChartStylePane; |
|
|
|
import com.fr.van.chart.pie.style.VanChartPieValueLabelContentPane; |
|
|
|
import com.fr.van.chart.pie.style.VanChartPieValueLabelContentPane; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.Component; |
|
|
|
import java.awt.Component; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -34,6 +35,14 @@ public class VanChartPieValueLabelDetailPane extends VanChartPlotLabelDetailPane |
|
|
|
return panel; |
|
|
|
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() { |
|
|
|
protected JPanel createLabelBorderPane() { |
|
|
|
VanChartBorderWithShapePane borderPane = new VanChartBorderWithShapePane() { |
|
|
|
VanChartBorderWithShapePane borderPane = new VanChartBorderWithShapePane() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -58,6 +67,18 @@ public class VanChartPieValueLabelDetailPane extends VanChartPlotLabelDetailPane |
|
|
|
|
|
|
|
|
|
|
|
protected JPanel createLabelBackgroundPane() { |
|
|
|
protected JPanel createLabelBackgroundPane() { |
|
|
|
VanChartBackgroundWithOutImagePane backgroundPane = new VanChartBackgroundWithOutImagePane() { |
|
|
|
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() { |
|
|
|
protected Component[][] getPaneComponents() { |
|
|
|
return new Component[][]{ |
|
|
|
return new Component[][]{ |
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Basic_Utils_Background")), typeComboBox}, |
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Basic_Utils_Background")), typeComboBox}, |
|
|
|