public ContourPlot(ContourDataset dataset, ValueAxis domainAxis, ValueAxis rangeAxis, ColorBar colorBar) { ContourPlot contourPlot = this; this.colorBar = (ColorBar) null; this.domainCrosshairLockedOnData = true; this.rangeCrosshairLockedOnData = true; this.dataAreaRatio = 0.0; this.renderAsPoints = false; this.ptSizePct = 0.05; this.clipPath = (ClipPath) null; this.missingPaint = (Paint) null; this.dataset = dataset; if (dataset != null) dataset.addChangeListener((DatasetChangeListener) this); this.domainAxis = domainAxis; if (domainAxis != null) { domainAxis.setPlot((Plot) this); domainAxis.addChangeListener((AxisChangeListener) this); } this.rangeAxis = rangeAxis; if (rangeAxis != null) { rangeAxis.setPlot((Plot) this); rangeAxis.addChangeListener((AxisChangeListener) this); } this.colorBar = colorBar; if (colorBar != null) { colorBar.getAxis().setPlot((Plot) this); colorBar.getAxis().addChangeListener((AxisChangeListener) this); colorBar.configure(this); } this.colorBarLocation = RectangleEdge.__\u003C\u003ELEFT; this.toolTipGenerator = (ContourToolTipGenerator) new StandardContourToolTipGenerator(); }
public static Range visibleRange(ContourDataset data, Range x, Range y) { return ((DefaultContourDataset) data).getZValueRange(x, y); }