|
|
@ -11,8 +11,7 @@ import com.fr.design.mainframe.chart.gui.data.report.AbstractReportDataContentPa |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.BorderFactory; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.SwingConstants; |
|
|
|
import javax.swing.SwingConstants; |
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.Component; |
|
|
|
|
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Arrays; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -32,7 +31,9 @@ public abstract class AbstractExtendedChartReportDataPane<T extends AbstractData |
|
|
|
|
|
|
|
|
|
|
|
Component[][] components = new Component[len][2]; |
|
|
|
Component[][] components = new Component[len][2]; |
|
|
|
for (int i = 0; i < len; i++) { |
|
|
|
for (int i = 0; i < len; i++) { |
|
|
|
components[i] = new Component[]{new UILabel(labels[i], SwingConstants.LEFT), formulaPanes[i]}; |
|
|
|
Component formulaPane = formulaPanes[i]; |
|
|
|
|
|
|
|
formulaPane.setPreferredSize(new Dimension(100, 20)); |
|
|
|
|
|
|
|
components[i] = new Component[]{new UILabel(labels[i], SwingConstants.LEFT), formulaPane}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
@ -42,7 +43,7 @@ public abstract class AbstractExtendedChartReportDataPane<T extends AbstractData |
|
|
|
Arrays.fill(rowSize, p); |
|
|
|
Arrays.fill(rowSize, p); |
|
|
|
|
|
|
|
|
|
|
|
JPanel panel = TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, 24, 6); |
|
|
|
JPanel panel = TableLayoutHelper.createGapTableLayoutPane(components, rowSize, columnSize, 24, 6); |
|
|
|
panel.setBorder(BorderFactory.createEmptyBorder(0, 24, 0, 15)); |
|
|
|
panel.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 15)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|
this.setLayout(new BorderLayout()); |
|
|
|