|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.fr.van.chart.structure.desinger.style; |
|
|
|
|
|
|
|
|
|
import com.fine.theme.utils.FineLayoutBuilder; |
|
|
|
|
import com.fr.base.background.ImageBackground; |
|
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
|
import com.fr.design.gui.frpane.UINumberDragPane; |
|
|
|
@ -9,6 +10,7 @@ import com.fr.design.gui.ilable.UILabel;
|
|
|
|
|
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.FRGUIPaneFactory; |
|
|
|
|
import com.fr.design.layout.TableLayout; |
|
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
|
import com.fr.design.mainframe.backgroundpane.ImageBackgroundQuickPane; |
|
|
|
@ -59,10 +61,12 @@ public class StructureNodeStylePane extends BasicBeanPane<AttrNode> {
|
|
|
|
|
}; |
|
|
|
|
nodeOpacity = new UINumberDragPaneWithPercent(0, 100); |
|
|
|
|
|
|
|
|
|
JPanel jPanel = new JPanel(new BorderLayout()); |
|
|
|
|
jPanel.add(TableLayout4VanChartHelper.createGapTableLayoutPane(Toolkit.i18nText("Fine-Design_Chart_Node_Radius"), nodeRadiusType), BorderLayout.NORTH); |
|
|
|
|
nodeRadiusPane = TableLayout4VanChartHelper.createGapTableLayoutPane("", nodeRadius); |
|
|
|
|
jPanel.add(nodeRadiusPane, BorderLayout.CENTER); |
|
|
|
|
Component[][] nodeRadiusTypeCom = new Component[][]{ |
|
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Chart_Node_Radius")), nodeRadiusType}, |
|
|
|
|
new Component[]{null, nodeRadius}, |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
JPanel jPanel = FineLayoutBuilder.compatibleTableLayout(10, nodeRadiusTypeCom, new double[]{1.2, 3}); |
|
|
|
|
|
|
|
|
|
Component[][] components1 = new Component[][]{ |
|
|
|
|
new Component[]{null, null}, |
|
|
|
@ -72,7 +76,7 @@ public class StructureNodeStylePane extends BasicBeanPane<AttrNode> {
|
|
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Report_Alpha")), nodeOpacity} |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
JPanel panel1 = TableLayout4VanChartHelper.createGapTableLayoutPane(components1, rowSize, columnSize); |
|
|
|
|
JPanel panel1 = FineLayoutBuilder.compatibleTableLayout(10, components1, new double[]{1.2, 3}); |
|
|
|
|
|
|
|
|
|
useImage = new UIButtonGroup<>(new String[]{Toolkit.i18nText("Fine-Design_Chart_YES"), |
|
|
|
|
Toolkit.i18nText("Fine-Design_Chart_NO")}); |
|
|
|
@ -81,9 +85,9 @@ public class StructureNodeStylePane extends BasicBeanPane<AttrNode> {
|
|
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Chart_Filled_With_Image")), useImage}, |
|
|
|
|
}; |
|
|
|
|
JPanel useImagePane = TableLayoutHelper.createTableLayoutPane(components, new double[]{p}, columnSize); |
|
|
|
|
JPanel useImagePane = FineLayoutBuilder.compatibleTableLayout(10, components, new double[]{1.2, 3}); |
|
|
|
|
|
|
|
|
|
JPanel panel2 = new JPanel(new BorderLayout(0, 6)); |
|
|
|
|
JPanel panel2 = FRGUIPaneFactory.createScaledBorderLayout_S_Pane(0, 6); |
|
|
|
|
panel2.add(useImagePane, BorderLayout.NORTH); |
|
|
|
|
panel2.add(imagePane, BorderLayout.CENTER); |
|
|
|
|
|
|
|
|
@ -101,13 +105,13 @@ public class StructureNodeStylePane extends BasicBeanPane<AttrNode> {
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
this.setLayout(new BorderLayout(0, 6)); |
|
|
|
|
this.setLayout(FRGUIPaneFactory.createScaledBorderLayout(0, 6)); |
|
|
|
|
this.add(panel1, BorderLayout.NORTH); |
|
|
|
|
this.add(panel2, BorderLayout.CENTER); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void checkRadius() { |
|
|
|
|
nodeRadiusPane.setVisible(nodeRadiusType.getSelectedIndex() == 1); |
|
|
|
|
nodeRadius.getParent().setVisible(nodeRadiusType.getSelectedIndex() == 1); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void checkImagePane() { |
|
|
|
|