Class JRBaseItemLabel

    • Field Detail

      • color

        protected Color color
        The item label text color.
      • backgroundColor

        protected Color backgroundColor
        The item label background color.
      • font

        protected JRFont font
        The item label text font.
    • Constructor Detail

      • JRBaseItemLabel

        public JRBaseItemLabel​(JRItemLabel itemLabel,
                               JRChart chart)
        Constructs a copy of an existing item label specification.
        Parameters:
        itemLabel - the item label object to copy
        chart - the parent chart
      • JRBaseItemLabel

        public JRBaseItemLabel​(JRItemLabel itemLabel,
                               ChartsBaseObjectFactory factory)
        Constructs a copy of an existing item label specification and registers any expression in the new copy with the specified factory.
        Parameters:
        itemLabel - the item label object to copy
        factory - the factory object to register expressions with
    • Method Detail

      • getChart

        public JRChart getChart()
        Specified by:
        getChart in interface JRItemLabel
        Returns:
        the chart the current item label belongs to.
      • getColor

        public Color getColor()
        Specified by:
        getColor in interface JRItemLabel
        Returns:
        the item label text color
      • getFont

        public JRFont getFont()
        Specified by:
        getFont in interface JRItemLabel
        Returns:
        the item label font. Allows full font customization for the item label.
      • collectExpressions

        public void collectExpressions​(JRExpressionCollector collector)
        Adds all the expression used by this plot with the specified collector. All collected expression that are also registered with a factory will be included with the report is compiled.
        Parameters:
        collector - the expression collector to use
      • clone

        public JRItemLabel clone​(JRChart parentChart)
        Description copied from interface: JRItemLabel
        Returns the item label formatting mask. The mask will be specified using the patterns defined in java.text.DecimalFormat.
        Specified by:
        clone in interface JRItemLabel
        Returns:
        the item label formatting mask