break;
}
}
+
if (plot.isShowAxis()) {
if (plot.isSeriesHeightRange()) {
for (int i = 0; i < seriesSize; i++) {
int startY;
if (plot instanceof DAUIEventChartPlot) {
+ tooltipSize = seriesList.size();
startY = (int) (r.height
* (int) (tooltip.getYPosRatio() * tooltipSize) / tooltipSize);
if (r.height - startY - totalHeight < 0) {
startY = 0;
}
}
-
} else {
startY = (r.y + r.height / 2) - (totalHeight / 2);
}
if (plot instanceof DAUIEventChartPlot) {
series = seriesList.get((int) (seriesList.size() * tooltip
.getYPosRatio()));
+ tooltipSize = 0;
} else {
series = seriesList.get(i);
if(series.isDisableTooltip()) {
return;
}
- int seriesItemSize = seriesItems.size();
- if (seriesItemSize < 1) {
- return;
- }
-
Rectangle rect = new Rectangle(r.x, r.y
+ (r.height / seriesSize * seriesIndex), r.width, r.height
/ seriesSize);
gc.setForeground(ColorResources.UI_EVENT_CHART_SEPERATE_LINE);
gc.drawLine(rect.x, rect.y, rect.width, rect.y);
}
+
+ int seriesItemSize = seriesItems.size();
+ if (seriesItemSize < 1) {
+ return;
+ }
DAChartSeriesItem seriesItem;
Color color = series.getColor();