|
|
@ -3,13 +3,15 @@ package com.fr.van.chart.structure.desinger.style; |
|
|
|
import com.fr.base.background.ImageBackground; |
|
|
|
import com.fr.base.background.ImageBackground; |
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
import com.fr.design.gui.frpane.UINumberDragPane; |
|
|
|
import com.fr.design.gui.frpane.UINumberDragPane; |
|
|
|
|
|
|
|
import com.fr.design.gui.frpane.UINumberDragPaneWithPercent; |
|
|
|
import com.fr.design.gui.ibutton.UIButtonGroup; |
|
|
|
import com.fr.design.gui.ibutton.UIButtonGroup; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
import com.fr.design.gui.ispinner.UISpinner; |
|
|
|
import com.fr.design.gui.ispinner.UISpinner; |
|
|
|
|
|
|
|
import com.fr.design.gui.ispinner.chart.UISpinnerWithPx; |
|
|
|
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
import com.fr.design.mainframe.backgroundpane.ImageBackgroundQuickPane; |
|
|
|
import com.fr.design.mainframe.backgroundpane.ImageBackgroundQuickPane; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.plugin.chart.base.AttrNode; |
|
|
|
import com.fr.plugin.chart.base.AttrNode; |
|
|
|
import com.fr.van.chart.designer.TableLayout4VanChartHelper; |
|
|
|
import com.fr.van.chart.designer.TableLayout4VanChartHelper; |
|
|
|
import com.fr.van.chart.designer.component.background.VanChartMarkerBackgroundPane; |
|
|
|
import com.fr.van.chart.designer.component.background.VanChartMarkerBackgroundPane; |
|
|
@ -42,34 +44,42 @@ public class StructureNodeStylePane extends BasicBeanPane<AttrNode> { |
|
|
|
double[] columnSize = {f, e}; |
|
|
|
double[] columnSize = {f, e}; |
|
|
|
double[] rowSize = {p, p, p, p, p}; |
|
|
|
double[] rowSize = {p, p, p, p, p}; |
|
|
|
|
|
|
|
|
|
|
|
nodeRadiusType = new UIButtonGroup<Integer>(new String[]{com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Automatic"), |
|
|
|
nodeRadiusType = new UIButtonGroup<>(new String[]{Toolkit.i18nText("Fine-Design_Chart_Automatic"), |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Custom")}); |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_Custom")}); |
|
|
|
nodeRadius = new UISpinner(0,Double.MAX_VALUE,0.5,0); |
|
|
|
nodeRadius = new UISpinnerWithPx(0, Double.MAX_VALUE, 0.5, 0); |
|
|
|
nodeBorderWidth = new UISpinner(0,Double.MAX_VALUE,0.5,0); |
|
|
|
nodeBorderWidth = new UISpinnerWithPx(0, Double.MAX_VALUE, 0.5, 0); |
|
|
|
nodeBorderColor = new VanChartMarkerBackgroundPane(); |
|
|
|
nodeBorderColor = new VanChartMarkerBackgroundPane() { |
|
|
|
nodeOpacity = new UINumberDragPane(0,100); |
|
|
|
protected Component[][] getPaneComponents() { |
|
|
|
|
|
|
|
return new Component[][]{ |
|
|
|
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Chart_Node_Radius")), typeComboBox}, |
|
|
|
|
|
|
|
new Component[]{null, centerPane}, |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
nodeOpacity = new UINumberDragPaneWithPercent(0, 100); |
|
|
|
|
|
|
|
|
|
|
|
JPanel jPanel = new JPanel(new BorderLayout()); |
|
|
|
JPanel jPanel = new JPanel(new BorderLayout()); |
|
|
|
jPanel.add(TableLayout4VanChartHelper.createGapTableLayoutPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Node_Radius"), nodeRadiusType), BorderLayout.NORTH); |
|
|
|
jPanel.add(TableLayout4VanChartHelper.createGapTableLayoutPane(Toolkit.i18nText("Fine-Design_Chart_Node_Radius"), nodeRadiusType), BorderLayout.NORTH); |
|
|
|
nodeRadiusPane = TableLayout4VanChartHelper.createGapTableLayoutPane("", nodeRadius); |
|
|
|
nodeRadiusPane = TableLayout4VanChartHelper.createGapTableLayoutPane("", nodeRadius); |
|
|
|
jPanel.add(nodeRadiusPane, BorderLayout.CENTER); |
|
|
|
jPanel.add(nodeRadiusPane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
|
|
|
Component[][] components1 = new Component[][]{ |
|
|
|
Component[][] components1 = new Component[][]{ |
|
|
|
new Component[]{null, null}, |
|
|
|
new Component[]{null, null}, |
|
|
|
new Component[]{jPanel, null}, |
|
|
|
new Component[]{jPanel, null}, |
|
|
|
new Component[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Border_Width")), nodeBorderWidth}, |
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Chart_Border_Width")), nodeBorderWidth}, |
|
|
|
new Component[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Widget_Style_Border_Color")), nodeBorderColor}, |
|
|
|
new Component[]{nodeBorderColor, null}, |
|
|
|
new Component[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Report_Alpha")), nodeOpacity} |
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Report_Alpha")), nodeOpacity} |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
JPanel panel1 = TableLayout4VanChartHelper.createGapTableLayoutPane(components1, rowSize, columnSize); |
|
|
|
JPanel panel1 = TableLayout4VanChartHelper.createGapTableLayoutPane(components1, rowSize, columnSize); |
|
|
|
|
|
|
|
|
|
|
|
useImage = new UIButtonGroup<Integer>(new String[]{com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_YES"), |
|
|
|
useImage = new UIButtonGroup<>(new String[]{Toolkit.i18nText("Fine-Design_Chart_YES"), |
|
|
|
com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_NO")}); |
|
|
|
Toolkit.i18nText("Fine-Design_Chart_NO")}); |
|
|
|
imagePane = new ImageBackgroundQuickPane(false); |
|
|
|
imagePane = new ImageBackgroundQuickPane(false); |
|
|
|
imagePane.setBorder(BorderFactory.createEmptyBorder(0, (int) TableLayout4VanChartHelper.DESCRIPTION_AREA_WIDTH + TableLayout4VanChartHelper.COMPONENT_INTERVAL, 0, 0)); |
|
|
|
imagePane.setBorder(BorderFactory.createEmptyBorder(0, (int) TableLayout4VanChartHelper.DESCRIPTION_AREA_WIDTH + TableLayout4VanChartHelper.COMPONENT_INTERVAL, 0, 0)); |
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
new Component[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Filled_With_Image")),useImage}, |
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Chart_Filled_With_Image")), useImage}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
JPanel useImagePane = TableLayoutHelper.createTableLayoutPane(components, new double[]{p}, columnSize); |
|
|
|
JPanel useImagePane = TableLayoutHelper.createTableLayoutPane(components, new double[]{p}, columnSize); |
|
|
|
|
|
|
|
|
|
|
|