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();
 }
示例#2
0
 public static JFreeChart createPolarChart(string title, XYDataset dataset, bool legend, bool tooltips, bool urls)
 {
   int num = legend ? 1 : 0;
   PolarPlot polarPlot = new PolarPlot();
   polarPlot.setDataset(dataset);
   NumberAxis numberAxis = new NumberAxis();
   numberAxis.setAxisLineVisible(false);
   numberAxis.setTickMarksVisible(false);
   numberAxis.setTickLabelInsets(new RectangleInsets(0.0, 0.0, 0.0, 0.0));
   polarPlot.setAxis((ValueAxis) numberAxis);
   polarPlot.setRenderer((PolarItemRenderer) new DefaultPolarItemRenderer());
   JFreeChart.__\u003Cclinit\u003E();
   JFreeChart jfc = new JFreeChart(title, JFreeChart.__\u003C\u003EDEFAULT_TITLE_FONT, (Plot) polarPlot, num != 0);
   ChartFactory.currentTheme.apply(jfc);
   return jfc;
 }