|
|
@ -11,7 +11,6 @@ import com.fr.design.beans.BasicBeanPane; |
|
|
|
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.icheckbox.UICheckBox; |
|
|
|
|
|
|
|
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.chart.gui.style.ChartTextAttrPane; |
|
|
|
import com.fr.design.mainframe.chart.gui.style.ChartTextAttrPane; |
|
|
@ -46,8 +45,9 @@ public class ChangeConfigPane extends BasicBeanPane<ChartCollection> { |
|
|
|
//轮播切换方式配置接界面
|
|
|
|
//轮播切换方式配置接界面
|
|
|
|
private JPanel carouselConfigPane; |
|
|
|
private JPanel carouselConfigPane; |
|
|
|
protected UISpinner timeInterval; |
|
|
|
protected UISpinner timeInterval; |
|
|
|
protected UICheckBox arrowCheckbox; |
|
|
|
|
|
|
|
private ColorSelectBoxWithOutTransparent colorSelectBox4carousel; |
|
|
|
private ColorSelectBoxWithOutTransparent colorSelectBox4carousel; |
|
|
|
|
|
|
|
private UIButtonGroup switchStyleGroup; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public ChangeConfigPane(){ |
|
|
|
public ChangeConfigPane(){ |
|
|
|
initButtonGroup(); |
|
|
|
initButtonGroup(); |
|
|
@ -97,14 +97,15 @@ public class ChangeConfigPane extends BasicBeanPane<ChartCollection> { |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double p = TableLayout.PREFERRED; |
|
|
|
double f = TableLayout.FILL; |
|
|
|
double f = TableLayout.FILL; |
|
|
|
double[] columnSize = {p, f}; |
|
|
|
double[] columnSize = {p, f}; |
|
|
|
double[] rowSize = {p,p,p}; |
|
|
|
double[] rowSize = {p, p, p}; |
|
|
|
timeInterval = new UISpinner(MIN_TIME, MAX_TIME, 1, 0); |
|
|
|
timeInterval = new UISpinner(MIN_TIME, MAX_TIME, 1, 0); |
|
|
|
colorSelectBox4carousel = new ColorSelectBoxWithOutTransparent(WIDTH); |
|
|
|
colorSelectBox4carousel = new ColorSelectBoxWithOutTransparent(WIDTH); |
|
|
|
arrowCheckbox = new UICheckBox(Inter.getLocText("FR-Base_TurnOn")); |
|
|
|
switchStyleGroup = new UIButtonGroup(new String[]{Inter.getLocText("FR-Designer_Show"), Inter.getLocText("FR-Designer_Hide")}); |
|
|
|
|
|
|
|
|
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
Component[][] components = new Component[][]{ |
|
|
|
|
|
|
|
new Component[]{new UILabel(Inter.getLocText("Plugin-ChartF_Arrow_Style")), switchStyleGroup}, |
|
|
|
new Component[]{new UILabel(Inter.getLocText("Plugin-ChartF_Time_Interval")), timeInterval}, |
|
|
|
new Component[]{new UILabel(Inter.getLocText("Plugin-ChartF_Time_Interval")), timeInterval}, |
|
|
|
new Component[]{new UILabel(Inter.getLocText("Background")),colorSelectBox4carousel}, |
|
|
|
new Component[]{new UILabel(Inter.getLocText("Background")),colorSelectBox4carousel} |
|
|
|
new Component[] {new UILabel(Inter.getLocText("Plugin-ChartF_Arrow_Style")), arrowCheckbox} |
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
return TableLayout4VanChartHelper.createGapTableLayoutPane(components, rowSize, columnSize); |
|
|
|
return TableLayout4VanChartHelper.createGapTableLayoutPane(components, rowSize, columnSize); |
|
|
@ -181,7 +182,7 @@ public class ChangeConfigPane extends BasicBeanPane<ChartCollection> { |
|
|
|
//轮播切换界面
|
|
|
|
//轮播切换界面
|
|
|
|
timeInterval.setValue(changeConfigAttr.getTimeInterval()); |
|
|
|
timeInterval.setValue(changeConfigAttr.getTimeInterval()); |
|
|
|
colorSelectBox4carousel.setSelectObject(changeConfigAttr.getCarouselColor()); |
|
|
|
colorSelectBox4carousel.setSelectObject(changeConfigAttr.getCarouselColor()); |
|
|
|
arrowCheckbox.setSelected(changeConfigAttr.isShowArrow()); |
|
|
|
switchStyleGroup.setSelectedIndex(changeConfigAttr.isShowArrow() ? 0 : 1); |
|
|
|
|
|
|
|
|
|
|
|
checkCardPane(); |
|
|
|
checkCardPane(); |
|
|
|
|
|
|
|
|
|
|
@ -205,7 +206,7 @@ public class ChangeConfigPane extends BasicBeanPane<ChartCollection> { |
|
|
|
changeConfigAttr.setButtonColor(colorSelectBox4button.getSelectObject()); |
|
|
|
changeConfigAttr.setButtonColor(colorSelectBox4button.getSelectObject()); |
|
|
|
changeConfigAttr.setTimeInterval((int) timeInterval.getValue()); |
|
|
|
changeConfigAttr.setTimeInterval((int) timeInterval.getValue()); |
|
|
|
changeConfigAttr.setCarouselColor(colorSelectBox4carousel.getSelectObject()); |
|
|
|
changeConfigAttr.setCarouselColor(colorSelectBox4carousel.getSelectObject()); |
|
|
|
changeConfigAttr.setShowArrow(arrowCheckbox.isSelected()); |
|
|
|
changeConfigAttr.setShowArrow(switchStyleGroup.getSelectedIndex() == 0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|