Examples of DCDrawingSupplier


Examples of org.eobjects.datacleaner.widgets.result.DCDrawingSupplier

      categoryPlot.getDomainAxis().setLabelFont(WidgetUtils.FONT_SMALL);
      categoryPlot.getDomainAxis().setTickLabelFont(WidgetUtils.FONT_SMALL);
      categoryPlot.getRangeAxis().setLabelFont(WidgetUtils.FONT_SMALL);
      categoryPlot.getRangeAxis().setTickLabelFont(WidgetUtils.FONT_SMALL);
      categoryPlot.setDrawingSupplier(new DCDrawingSupplier());

      final CategoryItemRenderer renderer = categoryPlot.getRenderer();
      renderer.setBaseOutlinePaint(WidgetUtils.BG_COLOR_DARK);
      renderer.setBaseOutlineStroke(wideStroke);

      if (renderer instanceof BarRenderer) {
        BarRenderer barRenderer = (BarRenderer) renderer;
        barRenderer.setShadowPaint(WidgetUtils.BG_COLOR_BRIGHT);
        barRenderer.setBarPainter(new StandardBarPainter());
      }

    } else if (plot instanceof XYPlot) {
      // tweaks for line charts
      final XYPlot xyPlot = (XYPlot) plot;

      xyPlot.setDrawingSupplier(new DCDrawingSupplier());

      xyPlot.getDomainAxis().setLabelFont(WidgetUtils.FONT_SMALL);
      xyPlot.getDomainAxis().setTickLabelFont(WidgetUtils.FONT_SMALL);
      xyPlot.getRangeAxis().setLabelFont(WidgetUtils.FONT_SMALL);
      xyPlot.getRangeAxis().setTickLabelFont(WidgetUtils.FONT_SMALL);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.