private XYPlot initializePlot(){
  jmxChart=new YIntervalSeriesImproved("jmx value");
  YIntervalSeriesCollection yintervalseriescollection=new YIntervalSeriesCollection();
  yintervalseriescollection.addSeries(jmxChart);
  DeviationRenderer renderer=new DeviationRenderer(true,false);
  renderer.setBaseShapesVisible(true);
  renderer.setSeriesStroke(0,new BasicStroke(3.0f,BasicStroke.CAP_ROUND,BasicStroke.JOIN_ROUND));
  renderer.setSeriesFillPaint(0,new Color(255,200,200));
  renderer.setSeriesOutlineStroke(0,new BasicStroke(2.0f));
  renderer.setSeriesShape(0,new Ellipse2D.Double(-2.5,-2.5,5.0,5.0));
  renderer.setBaseToolTipGenerator(new StandardXYToolTipGenerator(StandardXYToolTipGenerator.DEFAULT_TOOL_TIP_FORMAT,DateFormat.getDateTimeInstance(),NumberFormat.getNumberInstance()));
  NumberAxis rangeAxis=plotDataSolver.getAxis();
  subplot=new XYPlot(yintervalseriescollection,null,rangeAxis,renderer);
  subplot.setAxisOffset(new RectangleInsets(5.0,5.0,5.0,5.0));
  subplot.setRangeAxisLocation(AxisLocation.TOP_OR_LEFT);
  subplot.setRangeCrosshairVisible(true);
  return subplot;
}

private XYPlot initializePlot ( ) { jmxChart = new YIntervalSeriesImproved ( "jmx value" ) ; YIntervalSeriesCollection yintervalseriescollection = new YIntervalSeriesCollection ( ) ; yintervalseriescollection . addSeries ( jmxChart ) ; DeviationRenderer renderer = new DeviationRenderer ( true , false ) ; renderer . setBaseShapesVisible ( true ) ; renderer . setSeriesStroke ( 0 , new BasicStroke ( 3.0f , BasicStroke . CAP_ROUND , BasicStroke . JOIN_ROUND ) ) ; renderer . setSeriesFillPaint ( 0 , new Color ( 255 , 200 , 200 ) ) ; renderer . setSeriesOutlineStroke ( 0 , new BasicStroke ( 2.0f ) ) ; renderer . setSeriesShape ( 0 , new Ellipse2D . Double ( - 2.5 , - 2.5 , 5.0 , 5.0 ) ) ; renderer . setBaseToolTipGenerator ( new StandardXYToolTipGenerator ( StandardXYToolTipGenerator . DEFAULT_TOOL_TIP_FORMAT , DateFormat . getDateTimeInstance ( ) , NumberFormat . getNumberInstance ( ) ) ) ; NumberAxis rangeAxis = plotDataSolver . getAxis ( ) ; subplot = new XYPlot ( yintervalseriescollection , null , rangeAxis , renderer ) ; subplot . setAxisOffset ( new RectangleInsets ( 5.0 , 5.0 , 5.0 , 5.0 ) ) ; subplot . setRangeAxisLocation ( AxisLocation . TOP_OR_LEFT ) ; subplot . setRangeCrosshairVisible ( true ) ; return subplot ; }
initializes the upper plot .
