public static BufferedImage createHeatMapImage(HeatMapDataset dataset, PaintScale paintScale)
 {
   if (dataset == null)
   {
     string str = "Null 'dataset' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else if (paintScale == null)
   {
     string str = "Null 'paintScale' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     int xsampleCount = dataset.getXSampleCount();
     int ysampleCount = dataset.getYSampleCount();
     BufferedImage bufferedImage = new BufferedImage(xsampleCount, ysampleCount, 2);
     Graphics2D graphics = bufferedImage.createGraphics();
     for (int i1 = 0; i1 < xsampleCount; ++i1)
     {
       for (int i2 = 0; i2 < ysampleCount; ++i2)
       {
         double zvalue = dataset.getZValue(i1, i2);
         Paint paint = paintScale.getPaint(zvalue);
         graphics.setPaint(paint);
         ((Graphics) graphics).fillRect(i1, ysampleCount - i2 - 1, 1, 1);
       }
     }
     return bufferedImage;
   }
 }
 public PaintScaleLegend(PaintScale scale, ValueAxis axis)
 {
   PaintScaleLegend paintScaleLegend = this;
   if (axis == null)
   {
     string str = "Null 'axis' argument.";
     Throwable.__\u003CsuppressFillInStackTrace\u003E();
     throw new IllegalArgumentException(str);
   }
   else
   {
     this.scale = scale;
     this.axis = axis;
     this.axis.addChangeListener((AxisChangeListener) this);
     this.axisLocation = AxisLocation.__\u003C\u003EBOTTOM_OR_LEFT;
     this.axisOffset = 0.0;
     this.axis.setRange(scale.getLowerBound(), scale.getUpperBound());
     this.stripWidth = 15.0;
     this.stripOutlineVisible = true;
     this.stripOutlinePaint = (Paint) Color.gray;
     this.stripOutlineStroke = (Stroke) new BasicStroke(0.5f);
     this.backgroundPaint = (Paint) Color.white;
     this.subdivisions = 100;
   }
 }
 public XYBlockRenderer()
 {
   XYBlockRenderer xyBlockRenderer = this;
   this.blockWidth = 1.0;
   this.blockHeight = 1.0;
   this.blockAnchor = RectangleAnchor.__\u003C\u003ECENTER;
   this.updateOffsets();
   this.paintScale = (PaintScale) new LookupPaintScale();
 }
 public XYShapeRenderer()
 {
   XYShapeRenderer xyShapeRenderer = this;
   this.paintScale = (PaintScale) new LookupPaintScale();
   this.useFillPaint = false;
   this.drawOutlines = false;
   this.useOutlinePaint = true;
   this.guideLinesVisible = false;
   this.guideLinePaint = (Paint) Color.darkGray;
   this.guideLineStroke = (Stroke) new BasicStroke();
   this.setBaseShape((Shape) new Ellipse2D.Double(-5.0, -5.0, 10.0, 10.0));
   this.setAutoPopulateSeriesShape(false);
 }