Browse Source
* commit 'c31deb96f79342f10e7de7c7c72358706755eb0a': 9.0面板修改 修改方法 修改方法名称 重命名类名 9.0新图表配置面板调整 修改类名称 修改FormatPane 4 vanchart 调整一下标题和图例的显示策略部分 9.0新图表面板调整: 1、样式:标签面板 2、样式:提示面板 3、样式:数据表面板master
superman
7 years ago
22 changed files with 268 additions and 148 deletions
@ -0,0 +1,40 @@ |
|||||||
|
package com.fr.plugin.chart.designer.component.format; |
||||||
|
|
||||||
|
import com.fr.design.gui.icombobox.UIComboBox; |
||||||
|
import com.fr.design.gui.ilable.UILabel; |
||||||
|
import com.fr.design.gui.style.FRFontPane; |
||||||
|
import com.fr.design.gui.style.FormatPane; |
||||||
|
import com.fr.design.layout.TableLayout; |
||||||
|
import com.fr.general.Inter; |
||||||
|
import com.fr.plugin.chart.designer.TableLayout4VanChartHelper; |
||||||
|
|
||||||
|
import javax.swing.*; |
||||||
|
import java.awt.*; |
||||||
|
|
||||||
|
/** |
||||||
|
* Created by mengao on 2017/8/14. |
||||||
|
*/ |
||||||
|
public class VanChartFormatPane extends FormatPane { |
||||||
|
protected Component[][] getComponent(JPanel fontPane, JPanel centerPane, FRFontPane frFontPane) { |
||||||
|
return new Component[][]{ |
||||||
|
new Component[]{null, centerPane}, |
||||||
|
}; |
||||||
|
} |
||||||
|
|
||||||
|
protected void setTypeComboBoxPane(UIComboBox typeComboBox) { |
||||||
|
double f = TableLayout.FILL; |
||||||
|
double p = TableLayout.PREFERRED; |
||||||
|
double[] rowSize = {p, p}; |
||||||
|
double[] columnSize = {p, f}; |
||||||
|
JPanel panel = TableLayout4VanChartHelper.createGapTableLayoutPane(getTypeComboBoxComponent(typeComboBox), rowSize, columnSize); |
||||||
|
this.add(panel, BorderLayout.NORTH); |
||||||
|
} |
||||||
|
|
||||||
|
protected Component[][] getTypeComboBoxComponent (UIComboBox typeComboBox) { |
||||||
|
return new Component[][]{ |
||||||
|
new Component[]{null, null}, |
||||||
|
new Component[]{new UILabel(Inter.getLocText("Plugin-ChartF_DataType"), SwingConstants.LEFT), typeComboBox}, |
||||||
|
|
||||||
|
}; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,26 @@ |
|||||||
|
package com.fr.plugin.chart.designer.component.label; |
||||||
|
|
||||||
|
import com.fr.general.Inter; |
||||||
|
import com.fr.plugin.chart.designer.component.VanChartLabelContentPane; |
||||||
|
import com.fr.plugin.chart.designer.style.VanChartStylePane; |
||||||
|
|
||||||
|
import javax.swing.*; |
||||||
|
|
||||||
|
/** |
||||||
|
* Created by mengao on 2017/8/13. |
||||||
|
*/ |
||||||
|
public class GaugeLabelContentPane extends VanChartLabelContentPane { |
||||||
|
|
||||||
|
public GaugeLabelContentPane(VanChartStylePane parent, JPanel showOnPane) { |
||||||
|
super(parent, showOnPane); |
||||||
|
} |
||||||
|
|
||||||
|
protected String getLabelContentTitle() { |
||||||
|
return Inter.getLocText("Plugin-ChartF_Content"); |
||||||
|
} |
||||||
|
|
||||||
|
protected JPanel getLabelContentPane(JPanel contentPane) { |
||||||
|
return contentPane; |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,40 @@ |
|||||||
|
package com.fr.plugin.chart.designer.style.label; |
||||||
|
|
||||||
|
import com.fr.chart.chartattr.Plot; |
||||||
|
import com.fr.design.gui.ibutton.UIButtonGroup; |
||||||
|
import com.fr.design.layout.TableLayoutHelper; |
||||||
|
import com.fr.design.mainframe.chart.gui.style.ChartTextAttrPane; |
||||||
|
import com.fr.general.Inter; |
||||||
|
import com.fr.plugin.chart.designer.TableLayout4VanChartHelper; |
||||||
|
import com.fr.plugin.chart.designer.style.VanChartStylePane; |
||||||
|
|
||||||
|
import javax.swing.*; |
||||||
|
import java.awt.*; |
||||||
|
|
||||||
|
/** |
||||||
|
* Created by mengao on 2017/8/13. |
||||||
|
*/ |
||||||
|
public class VanChartGaugeLabelDetailPane extends VanChartPlotLabelDetailPane { |
||||||
|
|
||||||
|
public VanChartGaugeLabelDetailPane(Plot plot, VanChartStylePane parent) { |
||||||
|
super(plot, parent); |
||||||
|
} |
||||||
|
|
||||||
|
protected JPanel createLabelStylePane(double[] row, double[] col, Plot plot) { |
||||||
|
style = new UIButtonGroup<Integer>(new String[]{Inter.getLocText("Plugin-ChartF_Automatic"), |
||||||
|
Inter.getLocText("Plugin-ChartF_Custom")}); |
||||||
|
textFontPane = new ChartTextAttrPane(); |
||||||
|
|
||||||
|
initStyleListener(); |
||||||
|
|
||||||
|
return TableLayoutHelper.createTableLayoutPane(getLabelStyleComponents(plot),row,col); |
||||||
|
} |
||||||
|
|
||||||
|
protected JPanel getLabelPositionPane (Component[][] comps, double[] row, double[] col){ |
||||||
|
return TableLayoutHelper.createTableLayoutPane(comps,row,col); |
||||||
|
} |
||||||
|
|
||||||
|
protected JPanel createTableLayoutPaneWithTitle(String title, JPanel panel) { |
||||||
|
return TableLayout4VanChartHelper.createGapTableLayoutPane(title, panel); |
||||||
|
} |
||||||
|
} |
Loading…
Reference in new issue