File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/LineAndShapeRenderer.java
|
|
File path: /jfreechart-1.0.10/src/org/jfree/chart/renderer/category/StatisticalLineAndShapeRenderer.java
|
Method name: void drawItem(Graphics2D, CategoryItemRendererState, Rectangle2D, CategoryPlot, CategoryAxis, ValueAxis, CategoryDataset, int, int, int)
|
|
Method name: void drawItem(Graphics2D, CategoryItemRendererState, Rectangle2D, CategoryPlot, CategoryAxis, ValueAxis, CategoryDataset, int, int, int)
|
Number of AST nodes: 15
|
|
Number of AST nodes: 15
|
|
1 | if (previousValue != null) {↵ | | 1 | if (previousValue != null) {↵
|
|
2 | // previous data point...↵ | | 2 | // previous data point...↵
|
3 | double previous = previousValue.doubleValue();↵ | | 3 | double previous = previousValue.doubleValue();↵
|
4 | double x0;↵ | | 4 | double x0;↵
|
5 | if (this.useSeriesOffset) {↵ | | 5 | if (getUseSeriesOffset()) {↵
|
6 | x0 = domainAxis.getCategorySeriesMiddle(↵ | | 6 | x0 = domainAxis.getCategorySeriesMiddle(↵
|
7 | dataset.getColumnKey(column - 1),↵ | | 7 | dataset.getColumnKey(column - 1),↵
|
8 | dataset.getRowKey(row), dataset,↵ | | 8 | dataset.getRowKey(row), dataset,↵
|
9 | this.itemMargin, dataArea,↵ | | 9 | getItemMargin(), dataArea,↵
|
10 | plot.getDomainAxisEdge());↵ | | 10 | plot.getDomainAxisEdge());↵
|
11 | }↵ | | 11 | }↵
|
12 | else {↵ | | 12 | else {↵
|
13 | x0 = domainAxis.getCategoryMiddle(column - 1,↵ | | 13 | x0 = domainAxis.getCategoryMiddle(column - 1,↵
|
14 | getColumnCount(), dataArea,↵ | | 14 | getColumnCount(), dataArea,↵
|
15 | plot.getDomainAxisEdge());↵ | | 15 | plot.getDomainAxisEdge());↵
|
16 | }↵ | | 16 | }↵
|
17 | double y0 = rangeAxis.valueToJava2D(previous, dataArea,↵ | | 17 | double y0 = rangeAxis.valueToJava2D(previous, dataArea,↵
|
18 | plot.getRangeAxisEdge());↵ | | 18 | plot.getRangeAxisEdge());↵
|
|
19 | Line2D line = null;↵ | | 19 | Line2D line = null;↵
|
20 | if (orientation == PlotOrientation.HORIZONTAL) {↵ | | 20 | if (orientation == PlotOrientation.HORIZONTAL) {↵
|
21 | line = new Line2D.Double(y0, x0, y1, x1);↵ | | 21 | line = new Line2D.Double(y0, x0, y1, x1);↵
|
22 | }↵ | | 22 | }↵
|
23 | else if (orientation == PlotOrientation.VERTICAL) {↵ | | 23 | else if (orientation == PlotOrientation.VERTICAL) {↵
|
24 | line = new Line2D.Double(x0, y0, x1, y1);↵ | | 24 | line = new Line2D.Double(x0, y0, x1, y1);↵
|
25 | }↵ | | 25 | }↵
|
26 | g2.setPaint(getItemPaint(row, column));↵ | | 26 | g2.setPaint(getItemPaint(row, column));↵
|
27 | g2.setStroke(getItemStroke(row, column));↵ | | 27 | g2.setStroke(getItemStroke(row, column));↵
|
28 | g2.draw(line);↵ | | 28 | g2.draw(line);↵
|
29 | } | | 29 | }
|