Class JRDesignItemLabel

java.lang.Object
net.sf.jasperreports.charts.base.JRBaseItemLabel
net.sf.jasperreports.charts.design.JRDesignItemLabel
All Implemented Interfaces:
Serializable, Cloneable, JRItemLabel, JRChangeEventsSupport, JRCloneable

public class JRDesignItemLabel extends JRBaseItemLabel implements JRChangeEventsSupport
An object that specifies how an item label should be displayed. Used with category plots such as a bar or pie plot.
Author:
Sanda Zaharia (shertage@users.sourceforge.net)
See Also:
  • Field Details

  • Constructor Details

    • JRDesignItemLabel

      public JRDesignItemLabel(JRItemLabel itemLabel, JRChart chart)
      Constructs a new item label that is a copy of an existing one.
      Parameters:
      itemLabel - the item label to copy
  • Method Details

    • setColor

      public void setColor(Color color)
      Sets the color to use when displaying the value.
      Parameters:
      color - the color to use when displaying the value
    • setBackgroundColor

      public void setBackgroundColor(Color backgroundColor)
      Sets the background color to use when displaying the value.
      Parameters:
      backgroundColor - the background color to use when displaying the value
    • setFont

      public void setFont(JRFont font)
      Sets the font to use when displaying the value.
      Parameters:
      font - the font to use when displaying the value
    • clone

      public Object clone()
      Specified by:
      clone in interface JRCloneable
      Overrides:
      clone in class JRBaseItemLabel
    • getEventSupport

      public JRPropertyChangeSupport getEventSupport()
      Description copied from interface: JRChangeEventsSupport
      Returns the property change support object for this instance.
      Specified by:
      getEventSupport in interface JRChangeEventsSupport
      Returns:
      the property change support object for this instance