Package org.jfree.ui

Examples of org.jfree.ui.StandardGradientPaintTransformer


    CategoryPlot categoryPlot = (CategoryPlot)jfreeChart.getPlot();
    //categoryPlot.setOrientation(PlotOrientation.HORIZONTAL);
    BarRenderer barRenderer = (BarRenderer)categoryPlot.getRenderer();
    barRenderer.setItemMargin(0);
    barRenderer.setGradientPaintTransformer(
      new StandardGradientPaintTransformer(GradientPaintTransformType.HORIZONTAL)
      );
    CategoryDataset categoryDataset = categoryPlot.getDataset();
    if(categoryDataset != null)
    {
      for(int i = 0; i < categoryDataset.getRowCount(); i++)
View Full Code Here


    CategoryPlot categoryPlot = (CategoryPlot)jfreeChart.getPlot();
    //categoryPlot.setOrientation(PlotOrientation.HORIZONTAL);
    BarRenderer barRenderer = (BarRenderer)categoryPlot.getRenderer();
    barRenderer.setItemMargin(0);
    barRenderer.setGradientPaintTransformer(
      new StandardGradientPaintTransformer(GradientPaintTransformType.HORIZONTAL)
      );

    CategoryDataset categoryDataset = categoryPlot.getDataset();
    if(categoryDataset != null)
    {
View Full Code Here

    JFreeChart jfreeChart = super.createXYBarChart();
    XYPlot xyPlot = (XYPlot)jfreeChart.getPlot();
    XYBarRenderer renderer = (XYBarRenderer)xyPlot.getRenderer();
    renderer.setMargin(0.1);
    renderer.setGradientPaintTransformer(
        new StandardGradientPaintTransformer(GradientPaintTransformType.HORIZONTAL)
        );
    XYDataset xyDataset = xyPlot.getDataset();
    if(xyDataset != null)
    {
      for(int i = 0; i < xyDataset.getSeriesCount(); i++)
View Full Code Here

    //dialFrame.setBackgroundPaint(gp2);
    dialFrame.setForegroundPaint(gp2);
    dialPlot.setDialFrame(dialFrame);

    DialBackground db = new DialBackground(gp);
    db.setGradientPaintTransformer(new StandardGradientPaintTransformer(
        GradientPaintTransformType.VERTICAL));
    dialPlot.setBackground(db);
    StandardDialScale scale = null;
    int dialUnitScale = 1;
    Range range = convertRange(jrPlot.getDataRange());
View Full Code Here

      }

      Paint paint = getItemPaint(series, item);
      if (paint instanceof GradientPaint)
      {
        paint = new StandardGradientPaintTransformer().transform((GradientPaint)paint, circle);
      }
      g2.setPaint(paint);
      g2.fill(circle);
      g2.setStroke(getItemOutlineStroke(series, item));
      g2.setPaint(getItemOutlinePaint(series, item));
View Full Code Here

      }
      else if (itemPaint instanceof GradientPaint)
      {
        GradientPaint gp = (GradientPaint)itemPaint;
        g2.setPaint(
          new StandardGradientPaintTransformer().transform(
            new GradientPaint(gp.getPoint1(), gp.getColor1().darker(), gp.getPoint2(), gp.getColor2().darker(), gp.isCyclic()),
            bar3dRight
            )
          );
      }
View Full Code Here

      this.description = description;
      this.shapeVisible = shapeVisible;
      this.shape = shape;
      this.shapeFilled = shapeFilled;
      this.fillPaint = fillPaint;
      this.fillPaintTransformer = new StandardGradientPaintTransformer();
      this.shapeOutlineVisible = shapeOutlineVisible;
      this.outlinePaint = outlinePaint;
      this.outlineStroke = outlineStroke;
      this.lineVisible = lineVisible;
      this.line = line;
View Full Code Here

      this.description = description;
      this.shapeVisible = shapeVisible;
      this.shape = shape;
      this.shapeFilled = shapeFilled;
      this.fillPaint = fillPaint;
      this.fillPaintTransformer = new StandardGradientPaintTransformer();
      this.shapeOutlineVisible = shapeOutlineVisible;
      this.outlinePaint = outlinePaint;
      this.outlineStroke = outlineStroke;
      this.lineVisible = lineVisible;
      this.line = line;
View Full Code Here

    public XYBarRenderer(double margin) {
        super();
        this.margin = margin;
        this.base = 0.0;
        this.useYInterval = false;
        this.gradientPaintTransformer = new StandardGradientPaintTransformer();
        this.drawBarOutline = false;
        this.legendBar = new Rectangle2D.Double(-3.0, -5.0, 6.0, 10.0);
        this.barPainter = getDefaultBarPainter();
        this.shadowsVisible = getDefaultShadowsVisible();
        this.shadowXOffset = 4.0;
View Full Code Here

      area.lineTo(-4.0f, 4.0f);
      area.lineTo(-3.0f, -2.0f);
      area.closePath();
      this.legendArea = area;
      this.useFillPaint = false;
      this.gradientTransformer = new StandardGradientPaintTransformer();
   }
View Full Code Here

TOP

Related Classes of org.jfree.ui.StandardGradientPaintTransformer

Copyright © 2018 www.massapicom. 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.