|
|
|
@ -22,8 +22,16 @@ public class VanChartColumnPlotLabelDetailPane extends VanChartPlotLabelDetailPa
|
|
|
|
|
AttrTooltipContent content = detail.getContent(); |
|
|
|
|
UIButtonGroup<Integer> orientation = getOrientation(); |
|
|
|
|
|
|
|
|
|
if (orientation != null) { |
|
|
|
|
orientation.setEnabled(content != null && !content.isRichText()); |
|
|
|
|
if (orientation != null && content != null) { |
|
|
|
|
if (content.isRichText()) { |
|
|
|
|
|
|
|
|
|
orientation.setSelectedIndex(HORIZONTAL_INDEX); |
|
|
|
|
detail.setHorizontal(true); |
|
|
|
|
|
|
|
|
|
orientation.setEnabled(false); |
|
|
|
|
} else { |
|
|
|
|
orientation.setEnabled(true); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|