|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.fr.van.chart.designer.component; |
|
|
|
|
|
|
|
|
|
import com.fr.design.gui.ibutton.UIColorButtonWithAuto; |
|
|
|
|
import com.fr.design.mainframe.chart.gui.style.ChartTextAttrPane; |
|
|
|
|
import com.fr.design.mainframe.chart.gui.style.ChartTextAttrPaneWithAuto; |
|
|
|
|
import com.fr.design.mainframe.chart.gui.style.ChartTextAttrPaneWithThemeStyle; |
|
|
|
@ -33,7 +34,7 @@ public class VanChartLabelContentPane extends VanChartTooltipContentPane {
|
|
|
|
|
if (isInCondition() || !ChartEditContext.supportTheme()) { |
|
|
|
|
return super.createCommonStylePane(); |
|
|
|
|
} |
|
|
|
|
setTextAttrPane(new ChartTextAttrPaneWithThemeStyle()); |
|
|
|
|
setTextAttrPane(new LabelAttrPaneWithThemeStyle()); |
|
|
|
|
|
|
|
|
|
JPanel stylePanel = new JPanel(new BorderLayout()); |
|
|
|
|
stylePanel.add(getTextAttrPane(), BorderLayout.CENTER); |
|
|
|
@ -66,4 +67,11 @@ public class VanChartLabelContentPane extends VanChartTooltipContentPane {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class LabelAttrPaneWithThemeStyle extends ChartTextAttrPaneWithThemeStyle { |
|
|
|
|
@Override |
|
|
|
|
protected void initFontColorState() { |
|
|
|
|
setFontColor(new UIColorButtonWithAuto()); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|