@Override public boolean isDrawLine() { return graphRow.isDrawLine(); }
private void processFinalLines(AbstractGraphRow row, Graphics2D g2d) { if (chartSettings.getLineWidth() == 0) { return; } Stroke oldStroke = null; if (row.isDrawLine() && chartSettings.isDrawFinalZeroingLines()) { if (row.isDrawThickLines()) { oldStroke = g2d.getStroke(); g2d.setStroke(chartSettings.getThickStroke()); } g2d.drawLine(prevX, Math.max(prevY, chartRect.y), (int) (prevX + dxForDVal), chartRect.y + chartRect.height); if (row.isDrawThickLines()) { g2d.setStroke(oldStroke); } } }
private void processFinalLines(AbstractGraphRow row, Graphics2D g2d) { if (chartSettings.getLineWidth() == 0) { return; } Stroke oldStroke = null; if (row.isDrawLine() && chartSettings.isDrawFinalZeroingLines()) { if (row.isDrawThickLines()) { oldStroke = g2d.getStroke(); g2d.setStroke(chartSettings.getThickStroke()); } g2d.drawLine(prevX, Math.max(prevY, chartRect.y), (int) (prevX + dxForDVal), chartRect.y + chartRect.height); if (row.isDrawThickLines()) { g2d.setStroke(oldStroke); } } }
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); } }