Tabnine Logo
GradientXYBarPainter.<init>
Code IndexAdd Tabnine to your IDE (free)

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

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

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

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

/**
 * 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<init>

Javadoc

Creates a new instance.

Popular methods of GradientXYBarPainter

  • 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

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Table (org.hibernate.mapping)
    A relational table
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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