Class ChartRenderingInfo

java.lang.Object
org.jfree.chart.ChartRenderingInfo
All Implemented Interfaces:
Serializable, Cloneable

public class ChartRenderingInfo extends Object implements Cloneable, Serializable
A structure for storing rendering information from one call to the JFreeChart.draw() method.

An instance of the JFreeChart class can draw itself within an arbitrary rectangle on any Graphics2D. It is assumed that client code will sometimes render the same chart in more than one view, so the JFreeChart instance does not retain any information about its rendered dimensions. This information can be useful sometimes, so you have the option to collect the information at each call to JFreeChart.draw(), by passing an instance of this ChartRenderingInfo class.

See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For serialization.
      See Also:
    • chartArea

      private transient Rectangle2D chartArea
      The area in which the chart is drawn.
    • plotInfo

      private PlotRenderingInfo plotInfo
      Rendering info for the chart's plot (and subplots, if any).
    • entities

      private EntityCollection entities
      Storage for the chart entities. Since retaining entity information for charts with a large number of data points consumes a lot of memory, it is intended that you can set this to null to prevent the information being collected.
  • Constructor Details

    • ChartRenderingInfo

      public ChartRenderingInfo()
      Constructs a new ChartRenderingInfo structure that can be used to collect information about the dimensions of a rendered chart.
    • ChartRenderingInfo

      public ChartRenderingInfo(EntityCollection entities)
      Constructs a new instance. If an entity collection is supplied, it will be populated with information about the entities in a chart. If it is null, no entity information (including tool tips) will be collected.
      Parameters:
      entities - an entity collection (null permitted).
  • Method Details