|
|
|
@ -5,6 +5,8 @@ import com.fr.design.gui.ibutton.UIButtonGroup;
|
|
|
|
|
import com.fr.plugin.chart.base.AttrLabelDetail; |
|
|
|
|
import com.fr.plugin.chart.base.AttrTooltipContent; |
|
|
|
|
import com.fr.plugin.chart.column.VanChartColumnPlot; |
|
|
|
|
import com.fr.van.chart.designer.component.VanChartLabelContentPane; |
|
|
|
|
import com.fr.van.chart.designer.component.VanChartTooltipContentPane; |
|
|
|
|
import com.fr.van.chart.designer.style.VanChartStylePane; |
|
|
|
|
import com.fr.van.chart.designer.style.label.VanChartPlotLabelDetailPane; |
|
|
|
|
|
|
|
|
@ -14,6 +16,30 @@ public class VanChartColumnPlotLabelDetailPane extends VanChartPlotLabelDetailPa
|
|
|
|
|
super(plot, parent); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void initToolTipContentPane(Plot plot) { |
|
|
|
|
VanChartLabelContentPane dataLabelContentPane = new VanChartLabelContentPane(getParentPane(), VanChartColumnPlotLabelDetailPane.this) { |
|
|
|
|
protected void checkCardPane() { |
|
|
|
|
super.checkCardPane(); |
|
|
|
|
checkOrientationPane(); |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
setDataLabelContentPane(dataLabelContentPane); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void checkOrientationPane() { |
|
|
|
|
VanChartLabelContentPane dataLabelContentPane = (VanChartLabelContentPane) getDataLabelContentPane(); |
|
|
|
|
UIButtonGroup<Integer> content = dataLabelContentPane.getContent(); |
|
|
|
|
UIButtonGroup<Integer> orientation = getOrientation(); |
|
|
|
|
|
|
|
|
|
if (content.getSelectedIndex() == VanChartTooltipContentPane.RICH_EDITOR_INDEX) { |
|
|
|
|
orientation.setSelectedIndex(HORIZONTAL_INDEX); |
|
|
|
|
orientation.setEnabled(false); |
|
|
|
|
} else { |
|
|
|
|
orientation.setEnabled(true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected boolean hasLabelOrientationPane() { |
|
|
|
|
return !((VanChartColumnPlot) this.getPlot()).isBar(); |
|
|
|
|
} |
|
|
|
|