*/
int preTextWidthMargin = DAChartPlotTooltip.TOOLTIP_SERIES_RECT_LENGTH
+ (DAChartPlotTooltip.TOOLTIP_MARGIN * 2);
- int startX = getTooltipStartX(realXVal, (preTextWidthMargin + textWidthMax)
- * (tooltipSize / seriesCountPerColumn), DAChartPlotTooltip.TOOLTIP_MARGIN);
-
int totalHeight;
if (plot instanceof DAUIEventChartPlot) {
if (!tooltipTexts.isEmpty()) {
} else {
startY = (r.y + r.height / 2) - (totalHeight / 2);
}
- int rowCount = tooltipSize / seriesCountPerColumn;
+ int columnCount = tooltipSize / seriesCountPerColumn; // column count of tooltip
if ((tooltipSize % seriesCountPerColumn) != 0) {
- rowCount++;
+ columnCount++;
}
- int tooltipBoxWidth = (preTextWidthMargin + textWidthMax) * rowCount + DAChartPlotTooltip.TOOLTIP_MARGIN;
+ int startX = getTooltipStartX(realXVal, (preTextWidthMargin + textWidthMax)
+ * columnCount, DAChartPlotTooltip.TOOLTIP_MARGIN);
+ int tooltipBoxWidth = (preTextWidthMargin + textWidthMax) * columnCount + DAChartPlotTooltip.TOOLTIP_MARGIN;
gc.setAlpha(150);
gc.setBackground(tooltip.getBackgroundColor());
gc.setForeground(tooltip.getForegroundColor());