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

How to use
AreaRenderer
in
org.jfree.chart.renderer.category

Best Java code snippets using org.jfree.chart.renderer.category.AreaRenderer (Showing top 13 results out of 315)

origin: jfree/jfreechart

/**
 * Checks this instance for equality with an arbitrary object.
 *
 * @param obj  the object ({@code null} not permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof StackedAreaRenderer)) {
    return false;
  }
  StackedAreaRenderer that = (StackedAreaRenderer) obj;
  if (this.renderAsPercentages != that.renderAsPercentages) {
    return false;
  }
  return super.equals(obj);
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Sets a token that controls how the renderer draws the end points, and
 * sends a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param type  the end type (<code>null</code> not permitted).
 *
 * @see #getEndType()
 */
public void setEndType(AreaRendererEndType type) {
  if (type == null) {
    throw new IllegalArgumentException("Null 'type' argument.");
  }
  this.endType = type;
  fireChangeEvent();
}
origin: jfree/jfreechart

CategoryPlot cp = getPlot();
if (cp == null) {
  return null;
if (!isSeriesVisible(series) || !isSeriesVisibleInLegend(series)) {
  return null;
String label = getLegendItemLabelGenerator().generateLabel(dataset,
    series);
String description = label;
String toolTipText = null;
if (getLegendItemToolTipGenerator() != null) {
  toolTipText = getLegendItemToolTipGenerator().generateLabel(
      dataset, series);
if (getLegendItemURLGenerator() != null) {
  urlText = getLegendItemURLGenerator().generateLabel(dataset,
      series);
Shape shape = lookupLegendShape(series);
Paint paint = lookupSeriesPaint(series);
Paint outlinePaint = lookupSeriesOutlinePaint(series);
Stroke outlineStroke = lookupSeriesOutlineStroke(series);
result.setLabelFont(lookupLegendTextFont(series));
Paint labelPaint = lookupLegendTextPaint(series);
if (labelPaint != null) {
  result.setLabelPaint(labelPaint);
origin: jfree/jfreechart

if (!getItemVisible(row, column)) {
  return;
    x0 = x1;
  else if (column == getColumnCount() - 1) {
    x2 = x1;
double labelXX = x1;
double labelYY = y1;
g2.setPaint(getItemPaint(row, column));
g2.setStroke(getItemStroke(row, column));
g2.setPaint(getItemPaint(row, column));
g2.fill(area);
if (isItemLabelVisible(row, column)) {
  drawItemLabel(g2, orientation, dataset, row, column, labelXX,
      labelYY, (value.doubleValue() < 0.0));
updateCrosshairValues(state.getCrosshairState(), 
    dataset.getRowKey(row), dataset.getColumnKey(column), yy1,
    datasetIndex, x1, y1, orientation);
  addItemEntity(entities, dataset, row, column, area);
origin: pentaho/pentaho-platform

private static JFreeChart createAreaChart( final CategoryDatasetChartDefinition chartDefinition ) {
 // TODO Make the following accessible from the chartDefinition
 String categoryAxisLabel = null;
 String valueAxisLabel = null;
 boolean tooltips = true;
 boolean urls = true;
 // -----------------------------------------------------------
 String title = chartDefinition.getTitle();
 boolean legend = chartDefinition.isLegendIncluded();
 CategoryAxis categoryAxis = new CategoryAxis( categoryAxisLabel );
 ValueAxis valueAxis = new NumberAxis( valueAxisLabel );
 AreaRenderer renderer = chartDefinition.isStacked() ? new StackedAreaRenderer() : new AreaRenderer();
 if ( tooltips ) {
  renderer.setBaseToolTipGenerator( new StandardCategoryToolTipGenerator() );
 }
 if ( urls ) {
  renderer.setBaseItemURLGenerator( new StandardCategoryURLGenerator() );
 }
 CategoryPlot plot = new CategoryPlot( chartDefinition, categoryAxis, valueAxis, renderer );
 JFreeChartEngine.updatePlot( plot, chartDefinition );
 JFreeChart chart = new JFreeChart( title, JFreeChart.DEFAULT_TITLE_FONT, plot, legend );
 return chart;
}
origin: jfree/jfreechart

AreaRenderer renderer = new AreaRenderer();
if (tooltips) {
  renderer.setDefaultToolTipGenerator(
      new StandardCategoryToolTipGenerator());
  renderer.setDefaultItemURLGenerator(
      new StandardCategoryURLGenerator());
origin: com.xpn.xwiki.platform/xwiki-core

renderer = new AreaRenderer();
origin: org.codehaus.jtstand/jtstand-chart

CategoryPlot cp = getPlot();
if (cp == null) {
  return null;
if (!isSeriesVisible(series) || !isSeriesVisibleInLegend(series)) {
  return null;
String label = getLegendItemLabelGenerator().generateLabel(dataset,
    series);
String description = label;
String toolTipText = null;
if (getLegendItemToolTipGenerator() != null) {
  toolTipText = getLegendItemToolTipGenerator().generateLabel(
      dataset, series);
if (getLegendItemURLGenerator() != null) {
  urlText = getLegendItemURLGenerator().generateLabel(dataset,
      series);
Shape shape = lookupLegendShape(series);
Paint paint = lookupSeriesPaint(series);
Paint outlinePaint = lookupSeriesOutlinePaint(series);
Stroke outlineStroke = lookupSeriesOutlineStroke(series);
result.setLabelFont(lookupLegendTextFont(series));
Paint labelPaint = lookupLegendTextPaint(series);
if (labelPaint != null) {
  result.setLabelPaint(labelPaint);
origin: org.codehaus.jtstand/jtstand-chart

if (!getItemVisible(row, column)) {
  return;
    x0 = x1;
  else if (column == getColumnCount() - 1) {
    x2 = x1;
double labelXX = x1;
double labelYY = y1;
g2.setPaint(getItemPaint(row, column));
g2.setStroke(getItemStroke(row, column));
g2.setPaint(getItemPaint(row, column));
g2.fill(area);
if (isItemLabelVisible(row, column)) {
  drawItemLabel(g2, orientation, dataset, row, column, labelXX,
      labelYY, (value.doubleValue() < 0.0));
updateCrosshairValues(state.getCrosshairState(), 
    dataset.getRowKey(row), dataset.getColumnKey(column), yy1,
    datasetIndex, x1, y1, orientation);
  addItemEntity(entities, dataset, row, column, area);
origin: org.codehaus.jtstand/jtstand-chart

AreaRenderer renderer = new AreaRenderer();
if (tooltips) {
  renderer.setBaseToolTipGenerator(
      new StandardCategoryToolTipGenerator());
  renderer.setBaseItemURLGenerator(
      new StandardCategoryURLGenerator());
origin: org.codehaus.sonar.plugins/sonar-core-plugin

@Override
protected Plot getPlot(ChartParameters params) {
 DefaultCategoryDataset dataset = createDataset(params);
 CategoryAxis domainAxis = new CategoryAxis();
 domainAxis.setCategoryMargin(0.0);
 domainAxis.setLowerMargin(0.0);
 domainAxis.setUpperMargin(0.0);
 NumberAxis rangeAxis = new NumberAxis();
 rangeAxis.setNumberFormatOverride(NumberFormat.getIntegerInstance(params.getLocale()));
 rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
 AreaRenderer renderer = new AreaRenderer();
 CategoryPlot plot = new CategoryPlot(dataset, domainAxis, rangeAxis, renderer);
 plot.setForegroundAlpha(0.5f);
 plot.setDomainGridlinesVisible(true);
 configureColors(dataset, plot, params.getValues(PARAM_COLORS, ","));
 return plot;
}
origin: jfree/jfreechart

/**
 * Sets a token that controls how the renderer draws the end points, and
 * sends a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param type  the end type ({@code null} not permitted).
 *
 * @see #getEndType()
 */
public void setEndType(AreaRendererEndType type) {
  Args.nullNotPermitted(type, "type");
  this.endType = type;
  fireChangeEvent();
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Checks this instance for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> not permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object obj) {
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof StackedAreaRenderer)) {
    return false;
  }
  StackedAreaRenderer that = (StackedAreaRenderer) obj;
  if (this.renderAsPercentages != that.renderAsPercentages) {
    return false;
  }
  return super.equals(obj);
}
org.jfree.chart.renderer.categoryAreaRenderer

Javadoc

A category item renderer that draws area charts. You can use this renderer with the CategoryPlot class. The example shown here is generated by the AreaChartDemo1.java program included in the JFreeChart Demo Collection:

Most used methods

  • <init>
    Creates a new renderer.
  • addItemEntity
  • drawItemLabel
  • equals
    Tests this instance for equality with an arbitrary object.
  • fireChangeEvent
  • getColumnCount
  • getItemPaint
  • getItemStroke
  • getItemVisible
  • getLegendItemLabelGenerator
  • getLegendItemToolTipGenerator
  • getLegendItemURLGenerator
  • getLegendItemToolTipGenerator,
  • getLegendItemURLGenerator,
  • getPlot,
  • isItemLabelVisible,
  • isSeriesVisible,
  • isSeriesVisibleInLegend,
  • lookupLegendShape,
  • lookupLegendTextFont,
  • lookupLegendTextPaint,
  • lookupSeriesOutlinePaint

Popular in Java

  • Updating database using SQL prepared statement
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
  • getSupportFragmentManager (FragmentActivity)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • BoxLayout (javax.swing)
  • JPanel (javax.swing)
  • 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