|
|
|
package com.fr.van.chart.scatter;
|
|
|
|
|
|
|
|
import com.fine.theme.utils.FineLayoutBuilder;
|
|
|
|
import com.fr.chart.chartattr.Plot;
|
|
|
|
import com.fr.chart.chartglyph.Marker;
|
|
|
|
import com.fr.design.beans.BasicBeanPane;
|
|
|
|
import com.fr.design.foldablepane.UIExpandablePane;
|
|
|
|
import com.fr.design.i18n.Toolkit;
|
|
|
|
import com.fr.design.mainframe.chart.gui.ChartStylePane;
|
|
|
|
import com.fr.plugin.chart.marker.type.MarkerType;
|
|
|
|
import com.fr.van.chart.custom.component.VanChartCustomAxisConditionPane;
|
|
|
|
import com.fr.van.chart.designer.component.VanChartLineTypePane;
|
|
|
|
import com.fr.van.chart.designer.component.VanChartMarkerPane;
|
|
|
|
import com.fr.van.chart.designer.component.marker.VanChartCommonMarkerPane;
|
|
|
|
import com.fr.van.chart.designer.style.series.VanChartColorValueSeriesPane;
|
|
|
|
import com.fr.van.chart.designer.style.series.VanChartStackedAndAxisListControlPane;
|
|
|
|
import com.fr.van.chart.scatter.component.VanChartScatterLineTypePane;
|
|
|
|
|
|
|
|
import javax.swing.JPanel;
|
|
|
|
import java.awt.BorderLayout;
|
|
|
|
import java.awt.Component;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 散点图的系列界面
|
|
|
|
*/
|
|
|
|
public class VanChartScatterSeriesPane extends VanChartColorValueSeriesPane {
|
|
|
|
private static final long serialVersionUID = 5595016643808487932L;
|
|
|
|
|
|
|
|
public VanChartScatterSeriesPane(ChartStylePane parent, Plot plot) {
|
|
|
|
super(parent, plot);
|
|
|
|
}
|
|
|
|
|
|
|
|
protected JPanel getContentInPlotType() {
|
|
|
|
|
|
|
|
Component[][] components = new Component[][]{
|
|
|
|
new Component[]{createLineTypePane()},
|
|
|
|
new Component[]{createMarkerPane()},
|
|
|
|
new Component[]{createStackedAndAxisPane()},
|
|
|
|
//大数据模式 恢复用注释。下面1行删除。
|
|
|
|
new Component[]{createLargeDataModelPane()},
|
|
|
|
new Component[]{createTrendLinePane()},
|
|
|
|
};
|
|
|
|
|
|
|
|
contentPane = FineLayoutBuilder.compatibleTableLayout(0, components, new double[]{1});
|
|
|
|
return contentPane;
|
|
|
|
}
|
|
|
|
|
|
|
|
//设置色彩面板内容
|
|
|
|
protected void setColorPaneContent(JPanel panel) {
|
|
|
|
panel.add(createAlphaPane(), BorderLayout.SOUTH);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
//堆积和坐标轴设置(自定义柱形图等用到)
|
|
|
|
protected JPanel createStackedAndAxisPane() {
|
|
|
|
stackAndAxisEditPane = new VanChartStackedAndAxisListControlPane() {
|
|
|
|
@Override
|
|
|
|
protected Class<? extends BasicBeanPane> getStackAndAxisPaneClass() {
|
|
|
|
return VanChartCustomAxisConditionPane.class;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public String getPaneTitle() {
|
|
|
|
return Toolkit.i18nText("Fine-Design_Chart_Custom_Axis");
|
|
|
|
}
|
|
|
|
};
|
|
|
|
stackAndAxisEditExpandablePane = new UIExpandablePane(stackAndAxisEditPane.getPaneTitle(), stackAndAxisEditPane, true);
|
|
|
|
return stackAndAxisEditExpandablePane;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected VanChartLineTypePane getLineTypePane() {
|
|
|
|
return new VanChartScatterLineTypePane();
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
protected void checkCompsEnabledWithLarge(Plot plot) {
|
|
|
|
super.checkCompsEnabledWithLarge(this.plot);
|
|
|
|
|
|
|
|
checkLinePane();
|
|
|
|
}
|
|
|
|
|
|
|
|
protected JPanel createMarkerPane() {
|
|
|
|
markerPane = new VanChartMarkerPane() {
|
|
|
|
protected VanChartCommonMarkerPane createCommonMarkerPane() {
|
|
|
|
|
|
|
|
return new VanChartCommonMarkerPane() {
|
|
|
|
protected Marker[] getMarkers() {
|
|
|
|
return getNormalMarkersWithCustom(new MarkerType[]{MarkerType.MARKER_AUTO});
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
return new UIExpandablePane(Toolkit.i18nText("Fine-Design_Chart_Marker"), markerPane, true);
|
|
|
|
}
|
|
|
|
}
|