Tabnine Logo
GradientXYBarPainter
Code IndexAdd Tabnine to your IDE (free)

How to use
GradientXYBarPainter
in
org.jfree.chart.renderer.xy

Best Java code snippets using org.jfree.chart.renderer.xy.GradientXYBarPainter (Showing top 9 results out of 315)

origin: org.openfuxml/ofx-chart

  @Override
  public void paintBar(java.awt.Graphics2D g2,
      XYBarRenderer renderer,
      int row,
      int column,
      java.awt.geom.RectangularShape bar,
      org.jfree.ui.RectangleEdge base)
  {
//        logger.debug(row+"-"+column);
    super.paintBar(g2,renderer,row,column,bar,base);
  }
}
origin: jfree/jfreechart

Rectangle2D[] regions = splitVerticalBar(bar, this.g1, this.g2,
    this.g3);
GradientPaint gp = new GradientPaint((float) regions[0].getMinX(),
Rectangle2D[] regions = splitHorizontalBar(bar, this.g1, this.g2,
    this.g3);
GradientPaint gp = new GradientPaint(0.0f,
origin: org.codehaus.jtstand/jtstand-chart

this.tickLabelPaint = Color.darkGray;
this.barPainter = new GradientBarPainter();
this.xyBarPainter = new GradientXYBarPainter();
this.shadowVisible = true;
this.shadowPaint = Color.gray;
origin: jfree/jfreechart

/**
 * Paints a single bar instance.
 *
 * @param g2  the graphics target.
 * @param renderer  the renderer.
 * @param row  the row index.
 * @param column  the column index.
 * @param bar  the bar
 * @param base  indicates which side of the rectangle is the base of the
 *              bar.
 * @param pegShadow  peg the shadow to the base of the bar?
 */
@Override
public void paintBarShadow(Graphics2D g2, XYBarRenderer renderer, int row,
    int column, RectangularShape bar, RectangleEdge base,
    boolean pegShadow) {
  // handle a special case - if the bar colour has alpha == 0, it is
  // invisible so we shouldn't draw any shadow
  Paint itemPaint = renderer.getItemPaint(row, column);
  if (itemPaint instanceof Color) {
    Color c = (Color) itemPaint;
    if (c.getAlpha() == 0) {
      return;
    }
  }
  RectangularShape shadow = createShadow(bar, renderer.getShadowXOffset(),
      renderer.getShadowYOffset(), base, pegShadow);
  g2.setPaint(Color.GRAY);
  g2.fill(shadow);
}
origin: org.codehaus.jtstand/jtstand-chart

Rectangle2D[] regions = splitVerticalBar(bar, this.g1, this.g2,
    this.g3);
GradientPaint gp = new GradientPaint((float) regions[0].getMinX(),
Rectangle2D[] regions = splitHorizontalBar(bar, this.g1, this.g2,
    this.g3);
GradientPaint gp = new GradientPaint(0.0f,
origin: jfree/jfreechart

this.tickLabelPaint = Color.DARK_GRAY;
this.barPainter = new GradientBarPainter();
this.xyBarPainter = new GradientXYBarPainter();
this.shadowVisible = false;
this.shadowPaint = Color.GRAY;
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Paints a single bar instance.
 *
 * @param g2  the graphics target.
 * @param renderer  the renderer.
 * @param row  the row index.
 * @param column  the column index.
 * @param bar  the bar
 * @param base  indicates which side of the rectangle is the base of the
 *              bar.
 * @param pegShadow  peg the shadow to the base of the bar?
 */
public void paintBarShadow(Graphics2D g2, XYBarRenderer renderer, int row,
    int column, RectangularShape bar, RectangleEdge base,
    boolean pegShadow) {
  // handle a special case - if the bar colour has alpha == 0, it is
  // invisible so we shouldn't draw any shadow
  Paint itemPaint = renderer.getItemPaint(row, column);
  if (itemPaint instanceof Color) {
    Color c = (Color) itemPaint;
    if (c.getAlpha() == 0) {
      return;
    }
  }
  RectangularShape shadow = createShadow(bar, renderer.getShadowXOffset(),
      renderer.getShadowYOffset(), base, pegShadow);
  g2.setPaint(Color.gray);
  g2.fill(shadow);
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Sets the current chart theme.  This will be applied to all new charts
 * created via methods in this class.
 *
 * @param theme  the theme (<code>null</code> not permitted).
 *
 * @see #getChartTheme()
 * @see ChartUtilities#applyCurrentTheme(JFreeChart)
 *
 * @since 1.0.11
 */
public static void setChartTheme(ChartTheme theme) {
  if (theme == null) {
    throw new IllegalArgumentException("Null 'theme' argument.");
  }
  currentTheme = theme;
  // here we do a check to see if the user is installing the "Legacy"
  // theme, and reset the bar painters in that case...
  if (theme instanceof StandardChartTheme) {
    StandardChartTheme sct = (StandardChartTheme) theme;
    if (sct.getName().equals("Legacy")) {
      BarRenderer.setDefaultBarPainter(new StandardBarPainter());
      XYBarRenderer.setDefaultBarPainter(new StandardXYBarPainter());
    }
    else {
      BarRenderer.setDefaultBarPainter(new GradientBarPainter());
      XYBarRenderer.setDefaultBarPainter(new GradientXYBarPainter());
    }
  }
}
origin: jfree/jfreechart

/**
 * Sets the current chart theme.  This will be applied to all new charts
 * created via methods in this class.
 *
 * @param theme  the theme ({@code null} not permitted).
 *
 * @see #getChartTheme()
 * @see ChartUtils#applyCurrentTheme(JFreeChart)
 *
 * @since 1.0.11
 */
public static void setChartTheme(ChartTheme theme) {
  Args.nullNotPermitted(theme, "theme");
  currentTheme = theme;
  // here we do a check to see if the user is installing the "Legacy"
  // theme, and reset the bar painters in that case...
  if (theme instanceof StandardChartTheme) {
    StandardChartTheme sct = (StandardChartTheme) theme;
    if (sct.getName().equals("Legacy")) {
      BarRenderer.setDefaultBarPainter(new StandardBarPainter());
      XYBarRenderer.setDefaultBarPainter(new StandardXYBarPainter());
    }
    else {
      BarRenderer.setDefaultBarPainter(new GradientBarPainter());
      XYBarRenderer.setDefaultBarPainter(new GradientXYBarPainter());
    }
  }
}
org.jfree.chart.renderer.xyGradientXYBarPainter

Javadoc

An implementation of the XYBarPainter interface that uses several gradient fills to enrich the appearance of the bars.

Most used methods

  • <init>
    Creates a new instance.
  • createShadow
    Creates a shadow for the bar.
  • splitHorizontalBar
    Splits a bar into subregions (elsewhere, these subregions will have different gradients applied to t
  • splitVerticalBar
    Splits a bar into subregions (elsewhere, these subregions will have different gradients applied to t
  • paintBar
    Paints a single bar instance.

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • findViewById (Activity)
  • setScale (BigDecimal)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now