@ -1,5 +1,6 @@
package com.fr.van.chart.designer.component ;
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.ChartTextAttrPane ;
import com.fr.design.mainframe.chart.gui.style.ChartTextAttrPaneWithAuto ;
import com.fr.design.mainframe.chart.gui.style.ChartTextAttrPaneWithAuto ;
import com.fr.design.mainframe.chart.gui.style.ChartTextAttrPaneWithThemeStyle ;
import com.fr.design.mainframe.chart.gui.style.ChartTextAttrPaneWithThemeStyle ;
@ -33,7 +34,7 @@ public class VanChartLabelContentPane extends VanChartTooltipContentPane {
if ( isInCondition ( ) | | ! ChartEditContext . supportTheme ( ) ) {
if ( isInCondition ( ) | | ! ChartEditContext . supportTheme ( ) ) {
return super . createCommonStylePane ( ) ;
return super . createCommonStylePane ( ) ;
}
}
setTextAttrPane ( new ChartText AttrPaneWithThemeStyle( ) ) ;
setTextAttrPane ( new Label AttrPaneWithThemeStyle( ) ) ;
JPanel stylePanel = new JPanel ( new BorderLayout ( ) ) ;
JPanel stylePanel = new JPanel ( new BorderLayout ( ) ) ;
stylePanel . add ( getTextAttrPane ( ) , BorderLayout . CENTER ) ;
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 ( ) ) ;
}
}
}
}