|
|
@ -4,6 +4,7 @@ import com.fr.chart.chartattr.Plot; |
|
|
|
import com.fr.chart.chartglyph.ConditionAttr; |
|
|
|
import com.fr.chart.chartglyph.ConditionAttr; |
|
|
|
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.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.ChartStylePane; |
|
|
|
import com.fr.design.mainframe.chart.gui.ChartStylePane; |
|
|
@ -46,6 +47,8 @@ public class VanChartGaugeSeriesPane extends VanChartAbstractPlotSeriesPane { |
|
|
|
|
|
|
|
|
|
|
|
private UIColorPickerPane colorPickerPane; |
|
|
|
private UIColorPickerPane colorPickerPane; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private UISpinner thermometerWidth; |
|
|
|
|
|
|
|
|
|
|
|
public VanChartGaugeSeriesPane(ChartStylePane parent, Plot plot) { |
|
|
|
public VanChartGaugeSeriesPane(ChartStylePane parent, Plot plot) { |
|
|
|
super(parent, plot); |
|
|
|
super(parent, plot); |
|
|
|
} |
|
|
|
} |
|
|
@ -133,7 +136,8 @@ public class VanChartGaugeSeriesPane extends VanChartAbstractPlotSeriesPane { |
|
|
|
new Component[]{null, null}, |
|
|
|
new Component[]{null, null}, |
|
|
|
getNeedleColor(), |
|
|
|
getNeedleColor(), |
|
|
|
getSlotBackgroundColor(), |
|
|
|
getSlotBackgroundColor(), |
|
|
|
new Component[]{createRadiusPane(), null} |
|
|
|
new Component[]{createRadiusPane(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Length_Set")), null}, |
|
|
|
|
|
|
|
getThermometerWidth() |
|
|
|
}; |
|
|
|
}; |
|
|
|
default: |
|
|
|
default: |
|
|
|
return new Component[][]{ |
|
|
|
return new Component[][]{ |
|
|
@ -172,6 +176,11 @@ public class VanChartGaugeSeriesPane extends VanChartAbstractPlotSeriesPane { |
|
|
|
return new Component[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Slot_Background")),slotBackgroundColor}; |
|
|
|
return new Component[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Slot_Background")),slotBackgroundColor}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private Component[] getThermometerWidth() { |
|
|
|
|
|
|
|
thermometerWidth = new UISpinner(0, Double.MAX_VALUE, 0.1, 10); |
|
|
|
|
|
|
|
return new Component[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_Thermometer_Width")),thermometerWidth}; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private void initRotate() { |
|
|
|
private void initRotate() { |
|
|
|
rotate = new UIButtonGroup(new String[]{com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_AntiClockWise"), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_ClockWise")}); |
|
|
|
rotate = new UIButtonGroup(new String[]{com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_AntiClockWise"), com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Chart_ClockWise")}); |
|
|
|
} |
|
|
|
} |
|
|
@ -218,6 +227,9 @@ public class VanChartGaugeSeriesPane extends VanChartAbstractPlotSeriesPane { |
|
|
|
if(innerPaneBackgroundColor != null){ |
|
|
|
if(innerPaneBackgroundColor != null){ |
|
|
|
innerPaneBackgroundColor.setSelectObject(detailStyle.getInnerPaneBackgroundColor()); |
|
|
|
innerPaneBackgroundColor.setSelectObject(detailStyle.getInnerPaneBackgroundColor()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(thermometerWidth != null){ |
|
|
|
|
|
|
|
thermometerWidth.setValue(detailStyle.getThermometerWidth()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
colorPickerPane.populateBean(detailStyle.getHotAreaColor()); |
|
|
|
colorPickerPane.populateBean(detailStyle.getHotAreaColor()); |
|
|
|
} |
|
|
|
} |
|
|
@ -256,6 +268,9 @@ public class VanChartGaugeSeriesPane extends VanChartAbstractPlotSeriesPane { |
|
|
|
if(innerPaneBackgroundColor != null){ |
|
|
|
if(innerPaneBackgroundColor != null){ |
|
|
|
detailStyle.setInnerPaneBackgroundColor(innerPaneBackgroundColor.getSelectObject()); |
|
|
|
detailStyle.setInnerPaneBackgroundColor(innerPaneBackgroundColor.getSelectObject()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(thermometerWidth != null){ |
|
|
|
|
|
|
|
detailStyle.setThermometerWidth(thermometerWidth.getValue()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
colorPickerPane.updateBean(detailStyle.getHotAreaColor()); |
|
|
|
colorPickerPane.updateBean(detailStyle.getHotAreaColor()); |
|
|
|
} |
|
|
|
} |
|
|
|