public ThermometerPlot(ValueDataset dataset) { ThermometerPlot thermometerPlot = this; this.lowerBound = 0.0; this.upperBound = 100.0; this.bulbRadius = 40; this.columnRadius = 20; this.gap = 5; this.thermometerStroke = (Stroke) new BasicStroke(1f); this.thermometerPaint = (Paint) Color.black; this.units = 2; this.valueLocation = 3; this.axisLocation = 2; this.valueFont = new Font("SansSerif", 1, 16); this.valuePaint = (Paint) Color.white; this.valueFormat = (NumberFormat) new DecimalFormat(); this.mercuryPaint = (Paint) Color.lightGray; this.showValueLines = false; this.subrange = -1; double[][] numArray1 = new double[3][]; int index1 = 0; double[] numArray2 = new double[4]; int index2 = 0; double num1 = 0.0; numArray2[index2] = num1; int index3 = 1; double num2 = 50.0; numArray2[index3] = num2; int index4 = 2; double num3 = 0.0; numArray2[index4] = num3; int index5 = 3; double num4 = 50.0; numArray2[index5] = num4; numArray1[index1] = numArray2; int index6 = 1; double[] numArray3 = new double[4]; int index7 = 0; double num5 = 50.0; numArray3[index7] = num5; int index8 = 1; double num6 = 75.0; numArray3[index8] = num6; int index9 = 2; double num7 = 50.0; numArray3[index9] = num7; int index10 = 3; double num8 = 75.0; numArray3[index10] = num8; numArray1[index6] = numArray3; int index11 = 2; double[] numArray4 = new double[4]; int index12 = 0; double num9 = 75.0; numArray4[index12] = num9; int index13 = 1; double num10 = 100.0; numArray4[index13] = num10; int index14 = 2; double num11 = 75.0; numArray4[index14] = num11; int index15 = 3; double num12 = 100.0; numArray4[index15] = num12; numArray1[index11] = numArray4; this.subrangeInfo = numArray1; this.followDataInSubranges = false; this.useSubrangePaint = true; Paint[] paintArray = new Paint[3]; int index16 = 0; // ISSUE: variable of the null type __Null local1 = Color.green; paintArray[index16] = (Paint) local1; int index17 = 1; // ISSUE: variable of the null type __Null local2 = Color.orange; paintArray[index17] = (Paint) local2; int index18 = 2; // ISSUE: variable of the null type __Null local3 = Color.red; paintArray[index18] = (Paint) local3; this.subrangePaint = paintArray; this.subrangeIndicatorsVisible = true; this.subrangeIndicatorStroke = (Stroke) new BasicStroke(2f); this.rangeIndicatorStroke = (Stroke) new BasicStroke(3f); RectangleInsets.__\u003Cclinit\u003E(); this.padding = new RectangleInsets(UnitType.__\u003C\u003ERELATIVE, 0.05, 0.05, 0.05, 0.05); this.dataset = dataset; if (dataset != null) dataset.addChangeListener((DatasetChangeListener) this); NumberAxis numberAxis = new NumberAxis((string) null); numberAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits()); numberAxis.setAxisLineVisible(false); numberAxis.setPlot((Plot) this); numberAxis.addChangeListener((AxisChangeListener) this); this.rangeAxis = (ValueAxis) numberAxis; this.setAxisRange(); }
public static JFreeChart createXYStepChart(string title, string xAxisLabel, string yAxisLabel, XYDataset dataset, PlotOrientation orientation, bool legend, bool tooltips, bool urls) { int num1 = tooltips ? 1 : 0; int num2 = urls ? 1 : 0; int num3 = legend ? 1 : 0; if (orientation == null) { string str = "Null 'orientation' argument."; Throwable.__\u003CsuppressFillInStackTrace\u003E(); throw new IllegalArgumentException(str); } else { DateAxis dateAxis = new DateAxis(xAxisLabel); NumberAxis numberAxis = new NumberAxis(yAxisLabel); numberAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits()); StandardXYToolTipGenerator toolTipGenerator = (StandardXYToolTipGenerator) null; if (num1 != 0) toolTipGenerator = new StandardXYToolTipGenerator(); StandardXYURLGenerator standardXyurlGenerator = (StandardXYURLGenerator) null; if (num2 != 0) standardXyurlGenerator = new StandardXYURLGenerator(); XYStepRenderer xyStepRenderer = new XYStepRenderer((XYToolTipGenerator) toolTipGenerator, (XYURLGenerator) standardXyurlGenerator); XYPlot xyPlot = new XYPlot(dataset, (ValueAxis) dateAxis, (ValueAxis) numberAxis, (XYItemRenderer) null); xyPlot.setRenderer((XYItemRenderer) xyStepRenderer); xyPlot.setOrientation(orientation); xyPlot.setDomainCrosshairVisible(false); xyPlot.setRangeCrosshairVisible(false); JFreeChart.__\u003Cclinit\u003E(); JFreeChart jfc = new JFreeChart(title, JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT, (Plot) xyPlot, num3 != 0); ChartFactory.currentTheme.apply(jfc); return jfc; } }