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 Detail

      • LegendShapeCustomizer

        public LegendShapeCustomizer()
    • Method Detail

      • 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