package com.fr.plugin.chart.custom.component;

import com.fr.design.gui.ilable.UILabel;

import com.fr.general.Inter;

import com.fr.plugin.chart.base.AttrSeriesStackAndAxis;
import com.fr.plugin.chart.column.VanChartCustomStackAndAxisConditionPane;

import java.awt.*;
/**
 * 自定义坐标轴设置
 * 散点图和气泡图用到
 * 堆积和百分比属性为false
 */
public class VanChartCustomAxisConditionPane extends VanChartCustomStackAndAxisConditionPane {

    public VanChartCustomAxisConditionPane(){

    }

    protected Component[][] getDeployComponents() {
        Component[][] components = new Component[][]{
                new Component[]{new UILabel(Inter.getLocText("ChartF-X_Axis")),XAxis},
                new Component[]{new UILabel(Inter.getLocText("ChartF-Y_Axis")),YAxis},
        };

        return components;
    }

    @Override
    protected String title4PopupWindow() {
        return Inter.getLocText("Plugin-ChartF_Custom_Axis");
    }


    @Override
    protected void updateStackAndPercent(AttrSeriesStackAndAxis seriesStackAndAxis) {
        seriesStackAndAxis.setStacked(false);
        seriesStackAndAxis.setPercentStacked(false);
    }

}