Browse Source

代码规范

master
mengao 7 years ago
parent
commit
82a49b9e0e
  1. 1
      designer_chart/src/com/fr/plugin/chart/bubble/data/VanChartBubblePlotTableDataContentPane.java
  2. 9
      designer_chart/src/com/fr/plugin/chart/designer/style/background/BackgroundNameObjectCreator.java
  3. 9
      designer_chart/src/com/fr/plugin/chart/designer/style/background/ChartNameObjectCreator.java
  4. 3
      designer_chart/src/com/fr/plugin/chart/designer/style/background/VanChartAlertValuePane.java
  5. 1
      designer_chart/src/com/fr/plugin/chart/designer/style/background/VanChartAxisAreaPane.java
  6. 8
      designer_chart/src/com/fr/plugin/chart/designer/style/background/VanChartCustomIntervalBackgroundPane.java

1
designer_chart/src/com/fr/plugin/chart/bubble/data/VanChartBubblePlotTableDataContentPane.java

@ -65,6 +65,7 @@ public class VanChartBubblePlotTableDataContentPane extends AbstractTableDataCon
JPanel north = TableLayoutHelper.createTableLayoutPane(components_north,rowSize_north,columnSize_north); JPanel north = TableLayoutHelper.createTableLayoutPane(components_north,rowSize_north,columnSize_north);
north.setBorder(BorderFactory.createEmptyBorder(0, 24, 0, 15)); north.setBorder(BorderFactory.createEmptyBorder(0, 24, 0, 15));
JPanel filterPane = TableLayout4VanChartHelper.createExpandablePaneWithTitle(Inter.getLocText("FR-Chart-Data_Filter"),dataScreeningPane); JPanel filterPane = TableLayout4VanChartHelper.createExpandablePaneWithTitle(Inter.getLocText("FR-Chart-Data_Filter"),dataScreeningPane);
dataScreeningPane.setBorder(BorderFactory.createEmptyBorder(10,10,0,15));
Component[][] components = new Component[][]{ Component[][] components = new Component[][]{
new Component[]{north}, new Component[]{north},

9
designer_chart/src/com/fr/plugin/chart/designer/style/background/BackgroundNameObjectCreator.java

@ -2,6 +2,7 @@ package com.fr.plugin.chart.designer.style.background;
import com.fr.design.beans.BasicBeanPane; import com.fr.design.beans.BasicBeanPane;
import com.fr.design.gui.controlpane.UnrepeatedNameHelper; import com.fr.design.gui.controlpane.UnrepeatedNameHelper;
import com.fr.general.FRLogger;
import com.fr.general.NameObject; import com.fr.general.NameObject;
import com.fr.plugin.chart.base.VanChartCustomIntervalBackground; import com.fr.plugin.chart.base.VanChartCustomIntervalBackground;
import com.fr.stable.Nameable; import com.fr.stable.Nameable;
@ -33,13 +34,13 @@ public class BackgroundNameObjectCreator extends ChartNameObjectCreator {
return new NameObject(helper.createUnrepeatedName(this.menuName()), vanChartCustomIntervalBackground); return new NameObject(helper.createUnrepeatedName(this.menuName()), vanChartCustomIntervalBackground);
} catch (NoSuchMethodException e) { } catch (NoSuchMethodException e) {
e.printStackTrace(); FRLogger.getLogger().error(e.getMessage(), e);
} catch (IllegalAccessException e) { } catch (IllegalAccessException e) {
e.printStackTrace(); FRLogger.getLogger().error(e.getMessage(), e);
} catch (InstantiationException e) { } catch (InstantiationException e) {
e.printStackTrace(); FRLogger.getLogger().error(e.getMessage(), e);
} catch (InvocationTargetException e) { } catch (InvocationTargetException e) {
e.printStackTrace(); FRLogger.getLogger().error(e.getMessage(), e);
} }
return null; return null;
} }

9
designer_chart/src/com/fr/plugin/chart/designer/style/background/ChartNameObjectCreator.java

@ -3,6 +3,7 @@ package com.fr.plugin.chart.designer.style.background;
import com.fr.design.beans.BasicBeanPane; import com.fr.design.beans.BasicBeanPane;
import com.fr.design.gui.controlpane.NameObjectCreator; import com.fr.design.gui.controlpane.NameObjectCreator;
import com.fr.design.gui.controlpane.UnrepeatedNameHelper; import com.fr.design.gui.controlpane.UnrepeatedNameHelper;
import com.fr.general.FRLogger;
import com.fr.general.NameObject; import com.fr.general.NameObject;
import com.fr.plugin.chart.attr.axis.VanChartAlertValue; import com.fr.plugin.chart.attr.axis.VanChartAlertValue;
import com.fr.stable.Nameable; import com.fr.stable.Nameable;
@ -39,13 +40,13 @@ public class ChartNameObjectCreator extends NameObjectCreator {
return new NameObject(helper.createUnrepeatedName(this.menuName()), vanChartAlertValue); return new NameObject(helper.createUnrepeatedName(this.menuName()), vanChartAlertValue);
} catch (NoSuchMethodException e) { } catch (NoSuchMethodException e) {
e.printStackTrace(); FRLogger.getLogger().error(e.getMessage(), e);
} catch (IllegalAccessException e) { } catch (IllegalAccessException e) {
e.printStackTrace(); FRLogger.getLogger().error(e.getMessage(), e);
} catch (InstantiationException e) { } catch (InstantiationException e) {
e.printStackTrace(); FRLogger.getLogger().error(e.getMessage(), e);
} catch (InvocationTargetException e) { } catch (InvocationTargetException e) {
e.printStackTrace(); FRLogger.getLogger().error(e.getMessage(), e);
} }
return null; return null;
} }

3
designer_chart/src/com/fr/plugin/chart/designer/style/background/VanChartAlertValuePane.java

@ -168,9 +168,6 @@ public class VanChartAlertValuePane extends BasicBeanPane<VanChartAlertValue> {
fontColor.setSelectObject(chartAlertValue.getAlertFont().getForeground()); fontColor.setSelectObject(chartAlertValue.getAlertFont().getForeground());
} }
@Override
public void updateBean(VanChartAlertValue chartAlertValue) {}
public VanChartAlertValue updateBean(){ public VanChartAlertValue updateBean(){
chartAlertValue.setAxisName(alertAxis.getSelectedItem().toString()); chartAlertValue.setAxisName(alertAxis.getSelectedItem().toString());

1
designer_chart/src/com/fr/plugin/chart/designer/style/background/VanChartAxisAreaPane.java

@ -171,6 +171,7 @@ public class VanChartAxisAreaPane extends BasicBeanPane<Plot>{
/** /**
* Y軸和雷達圖的極軸也是相等的 * Y軸和雷達圖的極軸也是相等的
*
* @param axisName * @param axisName
* @param valueAxisName * @param valueAxisName
* @return * @return

8
designer_chart/src/com/fr/plugin/chart/designer/style/background/VanChartCustomIntervalBackgroundPane.java

@ -34,9 +34,6 @@ public class VanChartCustomIntervalBackgroundPane extends BasicBeanPane<VanChart
private VanChartCustomIntervalBackground customIntervalBackground; private VanChartCustomIntervalBackground customIntervalBackground;
public VanChartCustomIntervalBackgroundPane(){
}
private void doLayoutPane(){ private void doLayoutPane(){
this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
// //
@ -46,8 +43,7 @@ public class VanChartCustomIntervalBackgroundPane extends BasicBeanPane<VanChart
top.add(createContentPane()); top.add(createContentPane());
} }
private JPanel createContentPane() private JPanel createContentPane() {
{
bottomValue = new TinyFormulaPane(); bottomValue = new TinyFormulaPane();
topValue = new TinyFormulaPane(); topValue = new TinyFormulaPane();
bottomValue.setPreferredSize(new Dimension(124,20)); bottomValue.setPreferredSize(new Dimension(124,20));
@ -104,8 +100,6 @@ public class VanChartCustomIntervalBackgroundPane extends BasicBeanPane<VanChart
transparent.populateBean(customIntervalBackground.getAlpha() * VanChartAttrHelper.PERCENT); transparent.populateBean(customIntervalBackground.getAlpha() * VanChartAttrHelper.PERCENT);
} }
public void updateBean(VanChartCustomIntervalBackground customIntervalBackground){}
public VanChartCustomIntervalBackground updateBean(){ public VanChartCustomIntervalBackground updateBean(){
customIntervalBackground.setAxisName(backgroundAxis.getSelectedItem().toString()); customIntervalBackground.setAxisName(backgroundAxis.getSelectedItem().toString());

Loading…
Cancel
Save