if (isDrawBar()) { minMax[0] = 0;
if (isDrawBar()) { minMax[0] = 0;
boolean isBarChart = row.getValue().isDrawBar() && chartSettings.getChartType() == ChartSettings.CHART_TYPE_DEFAULT || chartSettings.getChartType() == ChartSettings.CHART_TYPE_BAR; if (isBarChart) { oldComposite = ((Graphics2D) g).getComposite();
boolean isBarChart = row.getValue().isDrawBar() && chartSettings.getChartType() == ChartSettings.CHART_TYPE_DEFAULT || chartSettings.getChartType() == ChartSettings.CHART_TYPE_BAR; if (isBarChart) { oldComposite = ((Graphics2D) g).getComposite();
private void paintRow(Graphics g, AbstractGraphRow row, String rowLabel, Color color) { if (row.isDrawLine() && chartSettings.getChartType() == ChartSettings.CHART_TYPE_DEFAULT || chartSettings.getChartType() == ChartSettings.CHART_TYPE_LINE) { currentPlotter = lineRowPlotter; } else if (row.isDrawBar() && chartSettings.getChartType() == ChartSettings.CHART_TYPE_DEFAULT || chartSettings.getChartType() == ChartSettings.CHART_TYPE_BAR) { currentPlotter = barRowPlotter; } else if (row.isDrawSpline() && chartSettings.getChartType() == ChartSettings.CHART_TYPE_DEFAULT || chartSettings.getChartType() == ChartSettings.CHART_TYPE_CSPLINE) { currentPlotter = cSplineRowPlotter; } if (currentPlotter != null) { double zoomFactor = 1; if (chartSettings.isExpendRows() && rowsZoomFactor.get(rowLabel) != null) { zoomFactor = rowsZoomFactor.get(rowLabel); } currentPlotter.setBoundsValues(chartRect, minXVal, maxXVal, minYVal, maxYVal); currentPlotter.paintRow((Graphics2D) g, row, color, zoomFactor, limitPointFactor); } }
private void paintRow(Graphics g, AbstractGraphRow row, String rowLabel, Color color) { if (row.isDrawLine() && chartSettings.getChartType() == ChartSettings.CHART_TYPE_DEFAULT || chartSettings.getChartType() == ChartSettings.CHART_TYPE_LINE) { currentPlotter = lineRowPlotter; } else if (row.isDrawBar() && chartSettings.getChartType() == ChartSettings.CHART_TYPE_DEFAULT || chartSettings.getChartType() == ChartSettings.CHART_TYPE_BAR) { currentPlotter = barRowPlotter; } else if (row.isDrawSpline() && chartSettings.getChartType() == ChartSettings.CHART_TYPE_DEFAULT || chartSettings.getChartType() == ChartSettings.CHART_TYPE_CSPLINE) { currentPlotter = cSplineRowPlotter; } if (currentPlotter != null) { double zoomFactor = 1; if (chartSettings.isExpendRows() && rowsZoomFactor.get(rowLabel) != null) { zoomFactor = rowsZoomFactor.get(rowLabel); } currentPlotter.setBoundsValues(chartRect, minXVal, maxXVal, minYVal, maxYVal); currentPlotter.paintRow((Graphics2D) g, row, color, zoomFactor, limitPointFactor); } }
if (rowValue.isDrawBar()) { barValue = rowValue.getGranulationValue();
if (rowValue.isDrawBar()) { barValue = rowValue.getGranulationValue();