Пример #1
0
 public static ADXOHLCRenderer getHighLowRenderer(OHLCSeriesCollection seriesCol) {
   ADXOHLCRenderer r = new ADXOHLCRenderer(seriesCol);
   r.setBaseToolTipGenerator(ChartToolTipGenerators.DatedToolTipGenerator());
   r.setSeriesPaint(0, Color.BLACK);
   r.setSeriesStroke(0, new BasicStroke(2.0f));
   return r;
 }
Пример #2
0
 public static XYDifferenceRenderer getXYDifferenceRenderer() {
   XYDifferenceRenderer r = new XYDifferenceRenderer(Color.green, new Color(229, 255, 247), false);
   r.setSeriesPaint(0, Color.RED);
   r.setSeriesPaint(1, Color.blue);
   r.setBaseShape(new Rectangle(1, 1));
   r.setShapesVisible(true);
   r.setBaseToolTipGenerator(ChartToolTipGenerators.DatedToolTipGenerator());
   return r;
 }
Пример #3
0
 public static XYLineAndShapeRenderer getLineAndShapeRenderer(TimeSeriesCollection dataset) {
   XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer(true, false);
   renderer.setSeriesPaint(dataset.indexOf(dataset.getSeries("ADX")), Color.BLACK);
   renderer.setSeriesPaint(dataset.indexOf(dataset.getSeries("PlusDI")), Color.BLUE);
   renderer.setSeriesPaint(dataset.indexOf(dataset.getSeries("MinusDI")), Color.RED);
   renderer.setSeriesStroke(0, new BasicStroke(1.5f));
   renderer.setSeriesStroke(1, new BasicStroke(1.5f));
   renderer.setSeriesStroke(2, new BasicStroke(1.5f));
   //    renderer.setBaseShape(new Rectangle(1, 1));
   // renderer.setShapesVisible(true);
   renderer.setBaseToolTipGenerator(ChartToolTipGenerators.DatedToolTipGenerator());
   //    XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer();
   //    renderer.setBaseShapesVisible(true);
   //    renderer.setDrawOutlines(true);
   //    renderer.setUseFillPaint(true);
   //    renderer.setBaseFillPaint(Color.white);
   //    renderer.setSeriesStroke(0, new BasicStroke(1.0f));
   //    renderer.setSeriesOutlineStroke(0, new BasicStroke(1.0f));
   //    renderer.setSeriesShape(0, new Ellipse2D.Double(-1.0, -1.0, 1.0, 1.0));
   //    renderer.setBaseToolTipGenerator(getToolTipGenerator());
   return renderer;
 }