|
|
|
@ -5,6 +5,7 @@ import com.fine.theme.utils.FineLayoutBuilder;
|
|
|
|
|
import com.fine.theme.utils.FineUIScale; |
|
|
|
|
import com.formdev.flatlaf.util.ScaledEmptyBorder; |
|
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
|
import com.fr.design.constants.LayoutConstants; |
|
|
|
|
import com.fr.design.dialog.BasicDialog; |
|
|
|
|
import com.fr.design.dialog.DialogActionAdapter; |
|
|
|
|
import com.fr.design.foldablepane.UIExpandablePane; |
|
|
|
@ -54,6 +55,9 @@ import java.util.LinkedHashMap;
|
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.cell; |
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.row; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 数据点提示内容界面,含有通用设置、富文本编辑器、自定义JS界面 |
|
|
|
|
*/ |
|
|
|
@ -291,14 +295,21 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected JPanel createCommonFormatPanel() { |
|
|
|
|
JPanel formatContent = FineLayoutBuilder.compatibleTableLayout(10, getPaneComponents(), new double[]{1.2, 3}); |
|
|
|
|
Component[][] paneComponents = getPaneComponents(); |
|
|
|
|
|
|
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
|
new Component[]{null, null}, |
|
|
|
|
new Component[]{new UILabel(getLabelContentTitle()), formatContent} |
|
|
|
|
}; |
|
|
|
|
Component[][] components = new Component[paneComponents.length+1][2]; |
|
|
|
|
components[0] = new Component[]{null, null}; |
|
|
|
|
|
|
|
|
|
for (int i = 0; i < paneComponents.length; i++) { |
|
|
|
|
if (i == 0) { |
|
|
|
|
components[i+1][0] = new UILabel(getLabelContentTitle()); |
|
|
|
|
} else { |
|
|
|
|
components[i+1][0] = null; |
|
|
|
|
} |
|
|
|
|
components[i+1][1] = row(10, cell(paneComponents[i][0]).weight(LayoutConstants.LEFT_WEIGHT), cell(paneComponents[i][1]).weight(LayoutConstants.RIGHT_WEIGHT)).getComponent(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return Layouts.cell(FineLayoutBuilder.compatibleTableLayout(0, components, new double[]{1.2, 3})) |
|
|
|
|
return cell(FineLayoutBuilder.compatibleTableLayout(0, components, new double[]{LayoutConstants.LEFT_WEIGHT, LayoutConstants.RIGHT_WEIGHT})) |
|
|
|
|
.with(it ->it.setBorder(new ScaledEmptyBorder(0, 0, 10, 0))).getComponent(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -310,10 +321,10 @@ public class VanChartTooltipContentPane extends BasicBeanPane<AttrTooltipContent
|
|
|
|
|
|
|
|
|
|
textAttrPane = createChartTextAttrPane(); |
|
|
|
|
stylePanel = Layouts.column(10, |
|
|
|
|
Layouts.row( |
|
|
|
|
Layouts.cell(new UILabel(Toolkit.i18nText("Fine-Design_Chart_Widget_Style"))).weight(1.2), Layouts.cell(styleButton).weight(3) |
|
|
|
|
row( |
|
|
|
|
cell(new UILabel(Toolkit.i18nText("Fine-Design_Chart_Widget_Style"))).weight(1.2), cell(styleButton).weight(3) |
|
|
|
|
), |
|
|
|
|
Layouts.cell(textAttrPane) |
|
|
|
|
cell(textAttrPane) |
|
|
|
|
).getComponent(); |
|
|
|
|
initStyleButtonListener(); |
|
|
|
|
|
|
|
|
|