public XYItemRendererState(PlotRenderingInfo info) : base(info) { XYItemRendererState itemRendererState = this; this.workingLine = (Line2D) new Line2D.Double(); this.processVisibleItemsOnly = true; }
public PiePlotState(PlotRenderingInfo info) : base(info) { PiePlotState piePlotState = this; this.passesRequired = 1; this.total = 0.0; }
public CategoryItemRendererState(PlotRenderingInfo info) : base(info) { CategoryItemRendererState itemRendererState = this; this.barWidth = 0.0; this.seriesRunningTotal = 0.0; }
public ChartRenderingInfo(EntityCollection entities) { base.\u002Ector(); ChartRenderingInfo chartRenderingInfo = this; this.chartArea = (Rectangle2D) new Rectangle2D.Double(); this.plotInfo = new PlotRenderingInfo(this); this.entities = entities; }
protected internal virtual void addEntity(PlotRenderingInfo info, Shape hotspot, int rendererIndex, string toolTipText, string urlText) { if (info == null) return; EntityCollection entityCollection = info.getOwner().getEntityCollection(); if (entityCollection == null) return; XYAnnotationEntity annotationEntity = new XYAnnotationEntity(hotspot, rendererIndex, toolTipText, urlText); entityCollection.add((ChartEntity) annotationEntity); }
public State(PlotRenderingInfo info) : base(info) { DeviationRenderer.State state = this; this.lowerCoordinates = (List) new ArrayList(); this.upperCoordinates = (List) new ArrayList(); }
public override void drawItem(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass) { if (!this.getItemVisible(series, item)) return; if (pass == 0) { IntervalXYDataset ntervalXyDataset = (IntervalXYDataset) dataset; DeviationRenderer.State state1 = (DeviationRenderer.State) state; double xvalue = ntervalXyDataset.getXValue(series, item); double startYvalue = ntervalXyDataset.getStartYValue(series, item); double endYvalue = ntervalXyDataset.getEndYValue(series, item); RectangleEdge domainAxisEdge = plot.getDomainAxisEdge(); RectangleEdge rangeAxisEdge = plot.getRangeAxisEdge(); double num1 = domainAxis.valueToJava2D(xvalue, dataArea, domainAxisEdge); double num2 = rangeAxis.valueToJava2D(startYvalue, dataArea, rangeAxisEdge); double num3 = rangeAxis.valueToJava2D(endYvalue, dataArea, rangeAxisEdge); PlotOrientation orientation = plot.getOrientation(); if (orientation == PlotOrientation.__\u003C\u003EHORIZONTAL) { List list1 = state1.lowerCoordinates; double[] numArray1 = new double[2]; int index1 = 0; double num4 = num2; numArray1[index1] = num4; int index2 = 1; double num5 = num1; numArray1[index2] = num5; list1.add((object) numArray1); List list2 = state1.upperCoordinates; double[] numArray2 = new double[2]; int index3 = 0; double num6 = num3; numArray2[index3] = num6; int index4 = 1; double num7 = num1; numArray2[index4] = num7; list2.add((object) numArray2); } else if (orientation == PlotOrientation.__\u003C\u003EVERTICAL) { List list1 = state1.lowerCoordinates; double[] numArray1 = new double[2]; int index1 = 0; double num4 = num1; numArray1[index1] = num4; int index2 = 1; double num5 = num2; numArray1[index2] = num5; list1.add((object) numArray1); List list2 = state1.upperCoordinates; double[] numArray2 = new double[2]; int index3 = 0; double num6 = num1; numArray2[index3] = num6; int index4 = 1; double num7 = num3; numArray2[index4] = num7; list2.add((object) numArray2); } if (item == dataset.getItemCount(series) - 1) { Composite composite = g2.getComposite(); g2.setComposite((Composite) AlphaComposite.getInstance(3, this.alpha)); g2.setPaint(this.getItemFillPaint(series, item)); GeneralPath generalPath = new GeneralPath(); double[] numArray1 = (double[]) state1.lowerCoordinates.get(0); ((Path2D.Float) generalPath).moveTo((float) numArray1[0], (float) numArray1[1]); for (int index = 1; index < state1.lowerCoordinates.size(); ++index) { double[] numArray2 = (double[]) state1.lowerCoordinates.get(index); ((Path2D.Float) generalPath).lineTo((float) numArray2[0], (float) numArray2[1]); } int num4 = state1.upperCoordinates.size(); double[] numArray3 = (double[]) state1.upperCoordinates.get(num4 - 1); ((Path2D.Float) generalPath).lineTo((float) numArray3[0], (float) numArray3[1]); int num5 = num4 - 2; while (num5 >= 0) { double[] numArray2 = (double[]) state1.upperCoordinates.get(num5); ((Path2D.Float) generalPath).lineTo((float) numArray2[0], (float) numArray2[1]); num5 += -1; } ((Path2D) generalPath).closePath(); g2.fill((Shape) generalPath); g2.setComposite(composite); state1.lowerCoordinates.clear(); state1.upperCoordinates.clear(); } } if (this.isLinePass(pass)) { if (item == 0) { DeviationRenderer.State state1 = (DeviationRenderer.State) state; ((Path2D) state1.seriesPath).reset(); state1.setLastPointGood(false); } if (!this.getItemLineVisible(series, item)) return; this.drawPrimaryLineAsPath(state, g2, plot, dataset, pass, series, item, domainAxis, rangeAxis, dataArea); } else { if (!this.isItemPass(pass)) return; EntityCollection entities = (EntityCollection) null; if (info != null) entities = info.getOwner().getEntityCollection(); this.drawSecondaryPass(g2, plot, dataset, pass, series, item, domainAxis, dataArea, rangeAxis, crosshairState, entities); } }
public override XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset dataset, PlotRenderingInfo info) { DeviationRenderer.State state = new DeviationRenderer.State(info); state.seriesPath = new GeneralPath(); state.setProcessVisibleItemsOnly(false); return (XYItemRendererState) state; }
public override void drawItem(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass) { if (!(dataset is IntervalXYDataset) || !(dataset is TableXYDataset)) { string str1 = new StringBuffer().append("dataset (type ").append(Object.instancehelper_getClass((object) dataset).getName()).append(") has wrong type:").toString(); int num = 0; if (!(StackedXYBarRenderer.class\u0024org\u0024jfree\u0024data\u0024xy\u0024IntervalXYDataset != null ? StackedXYBarRenderer.class\u0024org\u0024jfree\u0024data\u0024xy\u0024IntervalXYDataset : (StackedXYBarRenderer.class\u0024org\u0024jfree\u0024data\u0024xy\u0024IntervalXYDataset = StackedXYBarRenderer.class\u0024("org.jfree.data.xy.IntervalXYDataset"))).isAssignableFrom(Object.instancehelper_getClass((object) dataset))) { str1 = new StringBuffer().append(str1).append(" it is no IntervalXYDataset").toString(); num = 1; } if (!(StackedXYBarRenderer.class\u0024org\u0024jfree\u0024data\u0024xy\u0024TableXYDataset != null ? StackedXYBarRenderer.class\u0024org\u0024jfree\u0024data\u0024xy\u0024TableXYDataset : (StackedXYBarRenderer.class\u0024org\u0024jfree\u0024data\u0024xy\u0024TableXYDataset = StackedXYBarRenderer.class\u0024("org.jfree.data.xy.TableXYDataset"))).isAssignableFrom(Object.instancehelper_getClass((object) dataset))) { if (num != 0) str1 = new StringBuffer().append(str1).append(" and").toString(); str1 = new StringBuffer().append(str1).append(" it is no TableXYDataset").toString(); } string str2 = str1; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str2); } else { IntervalXYDataset ntervalXyDataset = (IntervalXYDataset) dataset; double yvalue1 = ntervalXyDataset.getYValue(series, item); if (Double.isNaN(yvalue1)) return; double num1 = 0.0; if (this.renderAsPercentages) { num1 = DatasetUtilities.calculateStackTotal((TableXYDataset) dataset, item); yvalue1 /= num1; } double d1 = 0.0; double d2 = 0.0; for (int i1 = 0; i1 < series; ++i1) { double yvalue2 = dataset.getYValue(i1, item); if (!Double.isNaN(yvalue2)) { if (this.renderAsPercentages) yvalue2 /= num1; if (yvalue2 > 0.0) d1 += yvalue2; else d2 += yvalue2; } } RectangleEdge rangeAxisEdge = plot.getRangeAxisEdge(); double num2; double num3; if (yvalue1 > 0.0) { num2 = rangeAxis.valueToJava2D(d1, dataArea, rangeAxisEdge); num3 = rangeAxis.valueToJava2D(d1 + yvalue1, dataArea, rangeAxisEdge); } else { num2 = rangeAxis.valueToJava2D(d2, dataArea, rangeAxisEdge); num3 = rangeAxis.valueToJava2D(d2 + yvalue1, dataArea, rangeAxisEdge); } RectangleEdge domainAxisEdge = plot.getDomainAxisEdge(); double startXvalue = ntervalXyDataset.getStartXValue(series, item); if (Double.isNaN(startXvalue)) return; double num4 = domainAxis.valueToJava2D(startXvalue, dataArea, domainAxisEdge); double endXvalue = ntervalXyDataset.getEndXValue(series, item); if (Double.isNaN(endXvalue)) return; double num5 = domainAxis.valueToJava2D(endXvalue, dataArea, domainAxisEdge); double num6 = Math.max(1.0, Math.abs(num5 - num4)); double num7 = Math.abs(num3 - num2); if (this.getMargin() > 0.0) { double num8 = num6 * this.getMargin(); num6 -= num8; num4 += num8 / 2.0; } Rectangle2D.Double @double = (Rectangle2D.Double) null; PlotOrientation orientation = plot.getOrientation(); if (orientation == PlotOrientation.__\u003C\u003EHORIZONTAL) @double = new Rectangle2D.Double(Math.min(num2, num3), num5, num7, num6); else if (orientation == PlotOrientation.__\u003C\u003EVERTICAL) @double = new Rectangle2D.Double(num4, Math.min(num2, num3), num6, num7); int num9 = yvalue1 > 0.0 ? 1 : 0; int num10 = rangeAxis.isInverted() ? 1 : 0; RectangleEdge re = orientation != PlotOrientation.__\u003C\u003EHORIZONTAL ? (num9 != 0 && num10 == 0 || num9 == 0 && num10 != 0 ? RectangleEdge.__\u003C\u003EBOTTOM : RectangleEdge.__\u003C\u003ETOP) : (num9 != 0 && num10 != 0 || num9 == 0 && num10 == 0 ? RectangleEdge.__\u003C\u003ERIGHT : RectangleEdge.__\u003C\u003ELEFT); if (pass == 0) { if (!this.getShadowsVisible()) return; this.getBarPainter().paintBarShadow(g2, (XYBarRenderer) this, series, item, (RectangularShape) @double, re, false); } else if (pass == 1) { this.getBarPainter().paintBar(g2, (XYBarRenderer) this, series, item, (RectangularShape) @double, re); if (info == null) return; EntityCollection entityCollection = info.getOwner().getEntityCollection(); if (entityCollection == null) return; this.addEntity(entityCollection, (Shape) @double, dataset, series, item, ((RectangularShape) @double).getCenterX(), ((RectangularShape) @double).getCenterY()); } else { if (pass != 2 || !this.isItemLabelVisible(series, item)) return; XYItemLabelGenerator itemLabelGenerator = this.getItemLabelGenerator(series, item); this.drawItemLabel(g2, dataset, series, item, plot, itemLabelGenerator, (Rectangle2D) @double, yvalue1 < 0.0); } } }
public override void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) { Shape clip1 = ((Graphics) g2).getClip(); ((Graphics) g2).setClip((Shape) area); Rectangle2D rectangle2D = this.viewToFrame(area); if (this.background != null && this.background.isVisible()) { if (this.background.isClippedToWindow()) { Shape clip2 = ((Graphics) g2).getClip(); g2.clip(this.dialFrame.getWindow(rectangle2D)); this.background.draw(g2, this, rectangle2D, area); ((Graphics) g2).setClip(clip2); } else this.background.draw(g2, this, rectangle2D, area); } Iterator iterator1 = this.layers.iterator(); while (iterator1.hasNext()) { DialLayer dialLayer = (DialLayer) iterator1.next(); if (dialLayer.isVisible()) { if (dialLayer.isClippedToWindow()) { Shape clip2 = ((Graphics) g2).getClip(); g2.clip(this.dialFrame.getWindow(rectangle2D)); dialLayer.draw(g2, this, rectangle2D, area); ((Graphics) g2).setClip(clip2); } else dialLayer.draw(g2, this, rectangle2D, area); } } Iterator iterator2 = this.pointers.iterator(); while (iterator2.hasNext()) { DialPointer dialPointer = (DialPointer) iterator2.next(); if (dialPointer.isVisible()) { if (dialPointer.isClippedToWindow()) { Shape clip2 = ((Graphics) g2).getClip(); g2.clip(this.dialFrame.getWindow(rectangle2D)); dialPointer.draw(g2, this, rectangle2D, area); ((Graphics) g2).setClip(clip2); } else dialPointer.draw(g2, this, rectangle2D, area); } } if (this.cap != null && this.cap.isVisible()) { if (this.cap.isClippedToWindow()) { Shape clip2 = ((Graphics) g2).getClip(); g2.clip(this.dialFrame.getWindow(rectangle2D)); this.cap.draw(g2, this, rectangle2D, area); ((Graphics) g2).setClip(clip2); } else this.cap.draw(g2, this, rectangle2D, area); } if (this.dialFrame.isVisible()) this.dialFrame.draw(g2, this, rectangle2D, area); ((Graphics) g2).setClip(clip1); }
public override void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) { if (info != null) info.setPlotArea(area); RectangleInsets insets = this.getInsets(); area.setRect(((RectangularShape) area).getX() + insets.getLeft(), ((RectangularShape) area).getY() + insets.getTop(), ((RectangularShape) area).getWidth() - insets.getLeft() - insets.getRight(), ((RectangularShape) area).getHeight() - insets.getTop() - insets.getBottom()); this.setFixedRangeAxisSpaceForSubplots((AxisSpace) null); AxisSpace space = this.calculateAxisSpace(g2, area); Rectangle2D rectangle2D = space.shrink(area, (Rectangle2D) null); this.setFixedRangeAxisSpaceForSubplots(space); CategoryAxis domainAxis = this.getDomainAxis(); RectangleEdge domainAxisEdge = this.getDomainAxisEdge(); double cursor = RectangleEdge.coordinate(rectangle2D, domainAxisEdge); AxisState axisState = domainAxis.draw(g2, cursor, area, rectangle2D, domainAxisEdge, info); if (parentState == null) parentState = new PlotState(); parentState.getSharedAxisStates().put((object) domainAxis, (object) axisState); for (int index = 0; index < this.subplots.size(); ++index) { CategoryPlot categoryPlot = (CategoryPlot) this.subplots.get(index); PlotRenderingInfo plotRenderingInfo = (PlotRenderingInfo) null; if (info != null) { plotRenderingInfo = new PlotRenderingInfo(info.getOwner()); info.addSubplotInfo(plotRenderingInfo); } Point2D anchor1 = (Point2D) null; if (anchor != null && ((RectangularShape) this.subplotAreas[index]).contains(anchor)) anchor1 = anchor; categoryPlot.draw(g2, this.subplotAreas[index], anchor1, parentState, plotRenderingInfo); } if (info == null) return; info.setDataArea(rectangle2D); }
public virtual XYPlot findSubplot(PlotRenderingInfo info, Point2D source) { if (info == null) { string str = "Null 'info' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else if (source == null) { string str = "Null 'source' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else { XYPlot xyPlot = (XYPlot) null; int subplotIndex = info.getSubplotIndex(source); if (subplotIndex >= 0) xyPlot = (XYPlot) this.subplots.get(subplotIndex); return xyPlot; } }
public State(PlotRenderingInfo info) : base(info) { }
public State(PlotRenderingInfo info) : base(info) { CategoryStepRenderer.State state = this; this.line = (Line2D) new Line2D.Double(); }
public XYBarRendererState(XYBarRenderer xybr, PlotRenderingInfo info) : base(info) { XYBarRenderer.XYBarRendererState barRendererState = this; this.this\u00240 = xybr; }
public virtual void drawSeries(Graphics2D g2, Rectangle2D dataArea, PlotRenderingInfo info, PolarPlot plot, XYDataset dataset, int seriesIndex) { Polygon polygon = new Polygon(); int itemCount = dataset.getItemCount(seriesIndex); for (int i2 = 0; i2 < itemCount; ++i2) { double xvalue = dataset.getXValue(seriesIndex, i2); double yvalue = dataset.getYValue(seriesIndex, i2); Point point = plot.translateValueThetaRadiusToJava2D(xvalue, yvalue, dataArea); polygon.addPoint((int) point.x, (int) point.y); } g2.setPaint(this.lookupSeriesPaint(seriesIndex)); g2.setStroke(this.lookupSeriesStroke(seriesIndex)); if (this.isSeriesFilled(seriesIndex)) { Composite composite = g2.getComposite(); g2.setComposite((Composite) AlphaComposite.getInstance(3, 0.5f)); g2.fill((Shape) polygon); g2.setComposite(composite); } else g2.draw((Shape) polygon); }
public override AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState) { if (!this.isVisible()) { AxisState state = new AxisState(cursor); List ticks = this.refreshTicks(g2, state, dataArea, edge); state.setTicks(ticks); return state; } else { AxisState state1 = this.drawTickMarksAndLabels(g2, cursor, plotArea, dataArea, edge); AxisState state2 = this.drawLabel(this.getLabel(), g2, plotArea, dataArea, edge, state1); this.createAndAddEntity(cursor, state2, dataArea, edge, plotState); return state2; } }
public override AxisState draw(Graphics2D g2, double cursor, Rectangle2D plotArea, Rectangle2D dataArea, RectangleEdge edge, PlotRenderingInfo plotState) { AxisState axisState = base.draw(g2, cursor, plotArea, dataArea, edge, plotState); if (this.isAdvanceLineVisible()) { double num = this.valueToJava2D(this.getRange().getUpperBound(), dataArea, edge); Line2D.Double @double = (Line2D.Double) null; g2.setStroke(this.getAdvanceLineStroke()); g2.setPaint(this.getAdvanceLinePaint()); if (edge == RectangleEdge.__\u003C\u003ELEFT) @double = new Line2D.Double(cursor, num, cursor + ((RectangularShape) dataArea).getWidth(), num); else if (edge == RectangleEdge.__\u003C\u003ERIGHT) @double = new Line2D.Double(cursor - ((RectangularShape) dataArea).getWidth(), num, cursor, num); else if (edge == RectangleEdge.__\u003C\u003ETOP) @double = new Line2D.Double(num, cursor + ((RectangularShape) dataArea).getHeight(), num, cursor); else if (edge == RectangleEdge.__\u003C\u003EBOTTOM) @double = new Line2D.Double(num, cursor, num, cursor - ((RectangularShape) dataArea).getHeight()); g2.draw((Shape) @double); } return axisState; }
public override void zoomRangeAxes(double factor, PlotRenderingInfo info, Point2D source) { this.zoomRangeAxes(factor, info, source, false); }
public override void zoomRangeAxes(double factor, PlotRenderingInfo state, Point2D source, bool useAnchor) { int num = useAnchor ? 1 : 0; XYPlot subplot = this.findSubplot(state, source); if (subplot != null) { subplot.zoomRangeAxes(factor, state, source, num != 0); } else { Iterator iterator = this.getSubplots().iterator(); while (iterator.hasNext()) ((XYPlot) iterator.next()).zoomRangeAxes(factor, state, source, num != 0); } }
public override void handleClick(int x, int y, PlotRenderingInfo info) { if (!info.getDataArea().contains((double) x, (double) y)) return; for (int index = 0; index < this.subplots.size(); ++index) { XYPlot xyPlot = (XYPlot) this.subplots.get(index); PlotRenderingInfo subplotInfo = info.getSubplotInfo(index); xyPlot.handleClick(x, y, subplotInfo); } }
public override void draw(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) { if (info != null) info.setPlotArea(area); this.getInsets().trim(area); this.setFixedRangeAxisSpaceForSubplots((AxisSpace) null); AxisSpace space = this.calculateAxisSpace(g2, area); Rectangle2D rectangle2D = space.shrink(area, (Rectangle2D) null); this.setFixedRangeAxisSpaceForSubplots(space); ValueAxis domainAxis = this.getDomainAxis(); RectangleEdge domainAxisEdge = this.getDomainAxisEdge(); double d = RectangleEdge.coordinate(rectangle2D, domainAxisEdge); AxisState axisState = domainAxis.draw(g2, d, area, rectangle2D, domainAxisEdge, info); if (parentState == null) parentState = new PlotState(); parentState.getSharedAxisStates().put((object) domainAxis, (object) axisState); for (int index = 0; index < this.subplots.size(); ++index) { XYPlot xyPlot = (XYPlot) this.subplots.get(index); PlotRenderingInfo info1 = (PlotRenderingInfo) null; if (info != null) { info1 = new PlotRenderingInfo(info.getOwner()); info.addSubplotInfo(info1); } xyPlot.draw(g2, this.subplotAreas[index], anchor, parentState, info1); } if (info == null) return; info.setDataArea(rectangle2D); }
public abstract void draw(Graphics2D gd, XYPlot xyp, Rectangle2D rd, ValueAxis va1, ValueAxis va2, int i, PlotRenderingInfo pri);
public override void zoomRangeAxes(double lowerPercent, double upperPercent, PlotRenderingInfo info, Point2D source) { XYPlot subplot = this.findSubplot(info, source); if (subplot != null) { subplot.zoomRangeAxes(lowerPercent, upperPercent, info, source); } else { Iterator iterator = this.getSubplots().iterator(); while (iterator.hasNext()) ((XYPlot) iterator.next()).zoomRangeAxes(lowerPercent, upperPercent, info, source); } }
public RendererState(PlotRenderingInfo info) { base.\u002Ector(); RendererState rendererState = this; this.info = info; }
public override XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info) { XYLineAndShapeRenderer.State state = (XYLineAndShapeRenderer.State) base.initialise(g2, dataArea, plot, data, info); state.setProcessVisibleItemsOnly(false); this.points = new Vector(); this.setDrawSeriesLineAsPath(true); return (XYItemRendererState) state; }
public State(PlotRenderingInfo info) : base(info) { SamplingXYLineRenderer.State state = this; this.dX = 1.0; this.openY = 0.0; this.highY = 0.0; this.lowY = 0.0; this.closeY = 0.0; }
public override XYItemRendererState initialise(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info) { return (XYItemRendererState) new XYBarRenderer.XYBarRendererState((XYBarRenderer) this, info); }
public override void drawItem(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crosshairState, int pass) { if (pass == 0 && dataset is IntervalXYDataset && this.getItemVisible(series, item)) { IntervalXYDataset ntervalXyDataset = (IntervalXYDataset) dataset; PlotOrientation orientation = plot.getOrientation(); if (this.drawXError) { double startXvalue = ntervalXyDataset.getStartXValue(series, item); double endXvalue = ntervalXyDataset.getEndXValue(series, item); double yvalue = ntervalXyDataset.getYValue(series, item); RectangleEdge domainAxisEdge = plot.getDomainAxisEdge(); double num1 = domainAxis.valueToJava2D(startXvalue, dataArea, domainAxisEdge); double num2 = domainAxis.valueToJava2D(endXvalue, dataArea, domainAxisEdge); double num3 = rangeAxis.valueToJava2D(yvalue, dataArea, plot.getRangeAxisEdge()); double num4 = this.capLength / 2.0; Line2D.Double double1; Line2D.Double double2; Line2D.Double double3; if (orientation == PlotOrientation.__\u003C\u003EVERTICAL) { double1 = new Line2D.Double(num1, num3, num2, num3); double2 = new Line2D.Double(num1, num3 - num4, num1, num3 + num4); double3 = new Line2D.Double(num2, num3 - num4, num2, num3 + num4); } else { double1 = new Line2D.Double(num3, num1, num3, num2); double2 = new Line2D.Double(num3 - num4, num1, num3 + num4, num1); double3 = new Line2D.Double(num3 - num4, num2, num3 + num4, num2); } if (this.errorPaint != null) g2.setPaint(this.errorPaint); else g2.setPaint(this.getItemPaint(series, item)); if (this.errorStroke != null) g2.setStroke(this.errorStroke); else g2.setStroke(this.getItemStroke(series, item)); g2.draw((Shape) double1); g2.draw((Shape) double2); g2.draw((Shape) double3); } if (this.drawYError) { double startYvalue = ntervalXyDataset.getStartYValue(series, item); double endYvalue = ntervalXyDataset.getEndYValue(series, item); double xvalue = ntervalXyDataset.getXValue(series, item); RectangleEdge rangeAxisEdge = plot.getRangeAxisEdge(); double num1 = rangeAxis.valueToJava2D(startYvalue, dataArea, rangeAxisEdge); double num2 = rangeAxis.valueToJava2D(endYvalue, dataArea, rangeAxisEdge); double num3 = domainAxis.valueToJava2D(xvalue, dataArea, plot.getDomainAxisEdge()); double num4 = this.capLength / 2.0; Line2D.Double double1; Line2D.Double double2; Line2D.Double double3; if (orientation == PlotOrientation.__\u003C\u003EVERTICAL) { double1 = new Line2D.Double(num3, num1, num3, num2); double2 = new Line2D.Double(num3 - num4, num1, num3 + num4, num1); double3 = new Line2D.Double(num3 - num4, num2, num3 + num4, num2); } else { double1 = new Line2D.Double(num1, num3, num2, num3); double2 = new Line2D.Double(num1, num3 - num4, num1, num3 + num4); double3 = new Line2D.Double(num2, num3 - num4, num2, num3 + num4); } if (this.errorPaint != null) g2.setPaint(this.errorPaint); else g2.setPaint(this.getItemPaint(series, item)); if (this.errorStroke != null) g2.setStroke(this.errorStroke); else g2.setStroke(this.getItemStroke(series, item)); g2.draw((Shape) double1); g2.draw((Shape) double2); g2.draw((Shape) double3); } } base.drawItem(g2, state, dataArea, info, plot, domainAxis, rangeAxis, dataset, series, item, crosshairState, pass); }