Browse Source

删掉部分代码

master
mengao 7 years ago
parent
commit
24675ad8a1
  1. 13
      designer_base/src/com/fr/design/layout/TableLayoutHelper.java
  2. 4
      designer_chart/src/com/fr/plugin/chart/designer/TableLayout4VanChartHelper.java

13
designer_base/src/com/fr/design/layout/TableLayoutHelper.java

@ -262,19 +262,6 @@ public class TableLayoutHelper {
return createTableLayoutPane(comp, row, column);
}
public static JPanel createTableLayoutPane4ChartWithoutTitle(Component[][] components, double[] rowSize, double[] columnSize){
JPanel secondMenu = createTableLayoutPane(components, rowSize, columnSize);
double p = TableLayout.PREFERRED;
double f = TableLayout.FILL;
double[] column = {LayoutConstants.CHART_ATTR_TOMARGIN, f};
double[] row = { p,p};
Component[][] comp = new Component[][]{
new Component[]{null, secondMenu},
};
return createTableLayoutPane(comp, row, column);
}
public static void main (String[] args) {
JFrame jf = new JFrame("test");
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

4
designer_chart/src/com/fr/plugin/chart/designer/TableLayout4VanChartHelper.java

@ -23,10 +23,6 @@ public class TableLayout4VanChartHelper {
public static JPanel createExpandablePaneWithTitle(String title, JPanel panel) {
return new UIExpandablePane(title, EXPANDABLE_PANE_WIDTH, EXPANDABLE_PANE_HIGHT, panel);
}
public static JPanel createExpandablePaneWithTitle(String title, Component component) {
JPanel panel = (JPanel) component;
return new UIExpandablePane(title, EXPANDABLE_PANE_WIDTH, EXPANDABLE_PANE_HIGHT, panel);
}
public static JPanel createGapTableLayoutPane(String title, Component component) {
double p = TableLayout.PREFERRED;

Loading…
Cancel
Save