You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.5 KiB
49 lines
1.5 KiB
package com.fr.design.chart.fun.impl; |
|
|
|
import com.fr.chart.chartattr.Plot; |
|
import com.fr.design.beans.BasicBeanPane; |
|
import com.fr.design.chart.fun.IndependentChartUIProvider; |
|
import com.fr.design.chart.series.SeriesCondition.DataSeriesConditionPane; |
|
import com.fr.design.condition.ConditionAttributesPane; |
|
import com.fr.design.gui.frpane.AttributeChangeListener; |
|
import com.fr.design.mainframe.chart.AbstractChartAttrPane; |
|
import com.fr.design.mainframe.chart.gui.ChartStylePane; |
|
import com.fr.general.ComparatorUtils; |
|
|
|
/** |
|
* Created by Mitisky on 16/3/7. |
|
*/ |
|
public abstract class AbstractIndependentChartUIWithAPILevel implements IndependentChartUIProvider { |
|
@Override |
|
public int currentAPILevel() { |
|
return CURRENT_API_LEVEL; |
|
} |
|
|
|
public AbstractChartAttrPane[] getAttrPaneArray(AttributeChangeListener listener){ |
|
return new AbstractChartAttrPane[0]; |
|
} |
|
|
|
/** |
|
* 是否使用默认的界面,为了避免界面来回切换 |
|
* @return 是否使用默认的界面 |
|
*/ |
|
public boolean isUseDefaultPane(){ |
|
return true; |
|
} |
|
|
|
public BasicBeanPane<Plot> getPlotSeriesPane(ChartStylePane parent, Plot plot){ |
|
return getPlotSeriesPane(); |
|
} |
|
|
|
public BasicBeanPane<Plot> getPlotSeriesPane(){ |
|
return null; |
|
} |
|
|
|
public boolean equals(Object obj) { |
|
return obj != null && ComparatorUtils.equals(obj.getClass(), this.getClass()); |
|
} |
|
|
|
public ConditionAttributesPane getPlotConditionPane(Plot plot){ |
|
return new DataSeriesConditionPane(); |
|
} |
|
}
|
|
|