public DialPlot(ValueDataset dataset) { DialPlot dialPlot = this; this.background = (DialLayer) null; this.cap = (DialLayer) null; this.dialFrame = (DialFrame) new ArcDialFrame(); this.datasets = new ObjectList(); if (dataset != null) this.setDataset(dataset); this.scales = new ObjectList(); this.datasetToScaleMap = new ObjectList(); this.layers = (List) new ArrayList(); this.pointers = (List) new ArrayList(); this.viewX = 0.0; this.viewY = 0.0; this.viewW = 1.0; this.viewH = 1.0; }
public CompassPlot(ValueDataset dataset) { CompassPlot compassPlot = this; this.drawBorder = false; this.roseHighlightPaint = (Paint) Color.black; this.rosePaint = (Paint) Color.yellow; this.roseCenterPaint = (Paint) Color.white; this.compassFont = new Font("Arial", 0, 10); this.datasets = new ValueDataset[1]; this.seriesNeedle = new MeterNeedle[1]; this.revolutionDistance = 360.0; if (dataset != null) { this.datasets[0] = dataset; dataset.addChangeListener((DatasetChangeListener) this); } this.circle1 = (Ellipse2D) new Ellipse2D.Double(); this.circle2 = (Ellipse2D) new Ellipse2D.Double(); this.rect1 = (Rectangle2D) new Rectangle2D.Double(); this.setSeriesNeedle(0); }
public MeterPlot(ValueDataset dataset) { MeterPlot meterPlot = this; this.shape = DialShape.__\u003C\u003ECIRCLE; this.meterAngle = 270; this.range = new Range(0.0, 100.0); this.tickSize = 10.0; this.tickPaint = (Paint) Color.white; this.units = "Units"; this.needlePaint = MeterPlot.DEFAULT_NEEDLE_PAINT; this.tickLabelsVisible = true; this.tickLabelFont = MeterPlot.__\u003C\u003EDEFAULT_LABEL_FONT; this.tickLabelPaint = (Paint) Color.black; this.tickLabelFormat = NumberFormat.getInstance(); this.valueFont = MeterPlot.DEFAULT_VALUE_FONT; this.valuePaint = MeterPlot.DEFAULT_VALUE_PAINT; this.dialBackgroundPaint = MeterPlot.DEFAULT_DIAL_BACKGROUND_PAINT; this.intervals = (List) new ArrayList(); this.setDataset(dataset); }
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 virtual void setDataset(int index, ValueDataset dataset) { ValueDataset valueDataset = (ValueDataset) this.datasets.get(index); if (valueDataset != null) valueDataset.removeChangeListener((DatasetChangeListener) this); this.datasets.set(index, (object) dataset); if (dataset != null) dataset.addChangeListener((DatasetChangeListener) this); this.datasetChanged(new DatasetChangeEvent((object) this, (Dataset) dataset)); }
public virtual void setDataset(ValueDataset dataset) { this.setDataset(0, dataset); }