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