Class LegendShapeCustomizer

All Implemented Interfaces:
JRChartCustomizer, NamedChartCustomizer

public class LegendShapeCustomizer extends AbstractShapeCustomizer
Customizer to define the shape of a specific legend item, works for both XY and Category plot. The shape and other informations are encoded into a JSON string.
Author:
Marco Orlandin (dejawho2@users.sourceforge.net)
  • Constructor Details

    • LegendShapeCustomizer

      public LegendShapeCustomizer()
  • Method Details

    • customize

      public void customize(org.jfree.chart.JFreeChart jfc, JRChart jrc)
      Description copied from interface: JRChartCustomizer
      This method is called at fill time, before the chart is rendered.
      Parameters:
      jfc - the JFreeChart object, which can be accessed and modified
      jrc - the JasperReports version of the chart, containing data that might be needed in customization
    • getOffset

      protected Point getOffset(Dimension2D size)
      Specified by:
      getOffset in class AbstractShapeCustomizer
    • getOffset

      protected Point getOffset(Rectangle2D bounds)
      Specified by:
      getOffset in class AbstractShapeCustomizer