congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
XYAreaRenderer
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: jfree/jfreechart

/**
 * Returns a clone of the renderer.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if the renderer cannot be cloned.
 */
@Override
public Object clone() throws CloneNotSupportedException {
  return super.clone();
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Sets a flag that controls whether or not outlines of the areas are drawn
 * and sends a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param show  the flag.
 *
 * @see #isOutline()
 */
public void setOutline(boolean show) {
  this.showOutline = show;
  fireChangeEvent();
}
origin: jfree/jfreechart

if (!getItemVisible(series, item)) {
  return;
      plot.getRangeAxisEdge());
  if (plot.getOrientation().isVertical()) {
    moveTo(areaState.area, transX1, zero);
  } else if (plot.getOrientation().isHorizontal()) {
    moveTo(areaState.area, zero, transX1);
  lineTo(areaState.area, transX1, transY1);
} else if (plot.getOrientation().isHorizontal()) {
  lineTo(areaState.area, transY1, transX1);
Paint paint = getItemPaint(series, item);
Stroke stroke = getItemStroke(series, item);
g2.setPaint(paint);
g2.setStroke(stroke);
if (getPlotShapes()) {
  shape = getItemShape(series, item);
  if (orientation == PlotOrientation.VERTICAL) {
    shape = ShapeUtils.createTranslatedShape(shape, transX1,
if (getPlotLines()) {
  if (item > 0) {
    if (plot.getOrientation() == PlotOrientation.VERTICAL) {
if (getPlotArea() && item > 0 && item == (itemCount - 1)) {
origin: jfree/jfreechart

public LegendItem getLegendItem(int datasetIndex, int series) {
  LegendItem result = null;
  XYPlot xyplot = getPlot();
  if (xyplot != null) {
    XYDataset dataset = xyplot.getDataset(datasetIndex);
    if (dataset != null) {
      XYSeriesLabelGenerator lg = getLegendItemLabelGenerator();
      String label = lg.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);
      Paint paint = lookupSeriesPaint(series);
      result = new LegendItem(label, description, toolTipText,
          urlText, this.legendArea, paint);
      result.setLabelFont(lookupLegendTextFont(series));
      Paint labelPaint = lookupLegendTextPaint(series);
      if (labelPaint != null) {
        result.setLabelPaint(labelPaint);
origin: com.xpn.xwiki.platform/xwiki-core

renderer = new XYAreaRenderer();
origin: jfree/jfreechart

/**
 * Tests the renderer for equality with an arbitrary object.
 *
 * @param obj  the object ({@code null} permitted).
 *
 * @return A boolean.
 */
@Override
public boolean equals(Object obj) {
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof StackedXYAreaRenderer) || !super.equals(obj)) {
    return false;
  }
  StackedXYAreaRenderer that = (StackedXYAreaRenderer) obj;
  if (!PaintUtils.equal(this.shapePaint, that.shapePaint)) {
    return false;
  }
  if (!ObjectUtils.equal(this.shapeStroke, that.shapeStroke)) {
    return false;
  }
  return true;
}
origin: org.codehaus.jtstand/jtstand-chart

if (!getItemVisible(series, item)) {
  return;
Paint paint = getItemPaint(series, item);
Stroke stroke = getItemStroke(series, item);
g2.setPaint(paint);
g2.setStroke(stroke);
if (getPlotShapes()) {
  shape = getItemShape(series, item);
  if (orientation == PlotOrientation.VERTICAL) {
    shape = ShapeUtilities.createTranslatedShape(shape, transX1,
if (getPlotLines()) {
  if (item > 0) {
    if (plot.getOrientation() == PlotOrientation.VERTICAL) {
if (getPlotArea() && item > 0 && item == (itemCount - 1)) {
    paint = lookupSeriesFillPaint(series);
  if (isOutline()) {
    Shape area = areaState.area;
    Stroke outlineStroke = lookupSeriesOutlineStroke(series);
    if (outlineStroke instanceof BasicStroke) {
      BasicStroke bs = (BasicStroke) outlineStroke;
    g2.setPaint(lookupSeriesOutlinePaint(series));
origin: org.codehaus.jtstand/jtstand-chart

XYPlot xyplot = getPlot();
if (xyplot != null) {
  XYDataset dataset = xyplot.getDataset(datasetIndex);
  if (dataset != null) {
    XYSeriesLabelGenerator lg = getLegendItemLabelGenerator();
    String label = lg.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);
    Paint paint = lookupSeriesPaint(series);
    result = new LegendItem(label, description, toolTipText,
        urlText, this.legendArea, paint);
    result.setLabelFont(lookupLegendTextFont(series));
    Paint labelPaint = lookupLegendTextPaint(series);
    if (labelPaint != null) {
      result.setLabelPaint(labelPaint);
origin: pentaho/pentaho-platform

switch ( chartDefinition.getChartType() ) {
 case AREA_CHART_TYPE:
  renderer = chartDefinition.isStacked() ? new StackedXYAreaRenderer2() : new XYAreaRenderer();
  break;
 default:
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Tests the renderer for equality with an arbitrary object.
 *
 * @param obj  the object (<code>null</code> permitted).
 *
 * @return A boolean.
 */
public boolean equals(Object obj) {
  if (obj == this) {
    return true;
  }
  if (!(obj instanceof StackedXYAreaRenderer) || !super.equals(obj)) {
    return false;
  }
  StackedXYAreaRenderer that = (StackedXYAreaRenderer) obj;
  if (!PaintUtilities.equal(this.shapePaint, that.shapePaint)) {
    return false;
  }
  if (!ObjectUtilities.equal(this.shapeStroke, that.shapeStroke)) {
    return false;
  }
  return true;
}
origin: org.codehaus.jtstand/jtstand-chart

plot.setRenderer(new XYAreaRenderer(XYAreaRenderer.AREA, tipGenerator,
    urlGenerator));
JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
origin: jfree/jfreechart

/**
 * Sets a flag that controls whether or not outlines of the areas are drawn
 * and sends a {@link RendererChangeEvent} to all registered listeners.
 *
 * @param show  the flag.
 *
 * @see #isOutline()
 */
public void setOutline(boolean show) {
  this.showOutline = show;
  fireChangeEvent();
}
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns a clone of the renderer.
 *
 * @return A clone.
 *
 * @throws CloneNotSupportedException if the renderer cannot be cloned.
 */
public Object clone() throws CloneNotSupportedException {
  return super.clone();
}
origin: pentaho/pentaho-platform

 break;
case AREA_CHART_TYPE:
 renderer = new XYAreaRenderer();
 break;
case STEP_CHART_TYPE:
origin: jfree/jfreechart

/**
 * Sets the flag that controls whether or not the series fill paint is
 * used to fill the area under the line and sends a
 * {@link RendererChangeEvent} to all listeners.
 *
 * @param use  the new flag value.
 *
 * @since 1.0.14
 */
public void setUseFillPaint(boolean use) {
  this.useFillPaint = use;
  fireChangeEvent();
}
origin: org.n52.sensorweb/sensorwebclient-api

plot.setRenderer(datasetIndex, new XYAreaRenderer());
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Sets the flag that controls whether or not the series fill paint is
 * used to fill the area under the line and sends a
 * {@link RendererChangeEvent} to all listeners.
 *
 * @param use  the new flag value.
 *
 * @since 1.0.14
 */
public void setUseFillPaint(boolean use) {
  this.useFillPaint = use;
  fireChangeEvent();
}
origin: jfree/jfreechart

plot.setRenderer(new XYAreaRenderer(XYAreaRenderer.AREA, tipGenerator,
    urlGenerator));
JFreeChart chart = new JFreeChart(title, JFreeChart.DEFAULT_TITLE_FONT,
origin: org.codehaus.jtstand/jtstand-chart

/**
 * Sets the shape used as an area in each legend item and sends a
 * {@link RendererChangeEvent} to all registered listeners.
 *
 * @param area  the area (<code>null</code> not permitted).
 */
public void setLegendArea(Shape area) {
  if (area == null) {
    throw new IllegalArgumentException("Null 'area' argument.");
  }
  this.legendArea = area;
  fireChangeEvent();
}
origin: pentaho/pentaho-platform

 break;
case AREA_CHART_TYPE:
 renderer = new XYAreaRenderer();
 break;
case STEP_CHART_TYPE:
org.jfree.chart.renderer.xyXYAreaRenderer

Javadoc

Area item renderer for an XYPlot. This class can draw (a) shapes at each point, or (b) lines between points, or (c) both shapes and lines, or (d) filled areas, or (e) filled areas and shapes. The example shown here is generated by the XYAreaRendererDemo1.java program included in the JFreeChart demo collection:

Most used methods

  • <init>
    Constructs a new renderer. To specify the type of renderer, use one of the constants: SHAPES, LINES,
  • addEntity
  • clone
    Returns a clone of the renderer.
  • equals
    Tests this renderer for equality with an arbitrary object.
  • fireChangeEvent
  • getItemPaint
  • getItemShape
  • getItemStroke
  • getItemVisible
  • getLegendItemLabelGenerator
  • getLegendItemToolTipGenerator
  • getLegendItemURLGenerator
  • getLegendItemToolTipGenerator,
  • getLegendItemURLGenerator,
  • getPlot,
  • getPlotArea,
  • getPlotLines,
  • getPlotShapes,
  • isOutline,
  • lookupLegendTextFont,
  • lookupLegendTextPaint,
  • lookupSeriesFillPaint

Popular in Java

  • Making http requests using okhttp
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • JTable (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Join (org.hibernate.mapping)
  • Top PhpStorm plugins
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