|
|
@ -1,6 +1,8 @@ |
|
|
|
package com.fr.van.chart.column; |
|
|
|
package com.fr.van.chart.column; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.chart.chartattr.Plot; |
|
|
|
import com.fr.chart.chartattr.Plot; |
|
|
|
|
|
|
|
import com.fr.plugin.chart.base.AttrLabelDetail; |
|
|
|
|
|
|
|
import com.fr.plugin.chart.base.AttrTooltipContent; |
|
|
|
import com.fr.plugin.chart.column.VanChartColumnPlot; |
|
|
|
import com.fr.plugin.chart.column.VanChartColumnPlot; |
|
|
|
import com.fr.van.chart.designer.style.VanChartStylePane; |
|
|
|
import com.fr.van.chart.designer.style.VanChartStylePane; |
|
|
|
import com.fr.van.chart.designer.style.label.VanChartPlotLabelDetailPane; |
|
|
|
import com.fr.van.chart.designer.style.label.VanChartPlotLabelDetailPane; |
|
|
@ -14,4 +16,19 @@ public class VanChartColumnPlotLabelDetailPane extends VanChartPlotLabelDetailPa |
|
|
|
protected boolean hasLabelOrientationPane() { |
|
|
|
protected boolean hasLabelOrientationPane() { |
|
|
|
return !((VanChartColumnPlot) this.getPlot()).isBar(); |
|
|
|
return !((VanChartColumnPlot) this.getPlot()).isBar(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void checkOrientationEnable(AttrLabelDetail detail) { |
|
|
|
|
|
|
|
AttrTooltipContent content = detail.getContent(); |
|
|
|
|
|
|
|
getOrientation().setEnabled(content != null && !content.isRichText()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void populate(AttrLabelDetail detail) { |
|
|
|
|
|
|
|
super.populate(detail); |
|
|
|
|
|
|
|
checkOrientationEnable(detail); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void update(AttrLabelDetail detail) { |
|
|
|
|
|
|
|
super.update(detail); |
|
|
|
|
|
|
|
checkOrientationEnable(detail); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|