net.sf.jasperreports.charts.base
Class JRBaseItemLabel

java.lang.Object
  extended by net.sf.jasperreports.charts.base.JRBaseItemLabel
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, JRItemLabel, JRCloneable
Direct Known Subclasses:
JRDesignItemLabel

public class JRBaseItemLabel
extends java.lang.Object
implements JRItemLabel, java.io.Serializable

An immutable representation of the formatting options for showing the item labels in a category plot.

Version:
$Id: JRBaseItemLabel.java 4595 2011-09-08 15:55:10Z teodord $
Author:
sanda zaharia (shertage@users.sourceforge.net)
See Also:
Serialized Form

Field Summary
protected  java.awt.Color backgroundColor
          The item label background color.
protected  JRChart chart
           
protected  java.awt.Color color
          The item label text color.
protected  JRFont font
          The item label text font.
 
Constructor Summary
JRBaseItemLabel(JRItemLabel itemLabel, JRBaseObjectFactory factory)
          Constructs a copy of an existing item label specification and registers any expression in the new copy with the specified factory.
JRBaseItemLabel(JRItemLabel itemLabel, JRChart chart)
          Constructs a copy of an existing item label specification.
 
Method Summary
 java.lang.Object clone()
           
 void collectExpressions(JRExpressionCollector collector)
          Adds all the expression used by this plot with the specified collector.
 java.awt.Color getBackgroundColor()
          Returns the item label background color
 JRChart getChart()
           
 java.awt.Color getColor()
          Returns the item label text color
 JRFont getFont()
          Returns the item label font.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

chart

protected JRChart chart

color

protected java.awt.Color color
The item label text color.


backgroundColor

protected java.awt.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,
                       JRBaseObjectFactory 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

getColor

public java.awt.Color getColor()
Description copied from interface: JRItemLabel
Returns the item label text color

Specified by:
getColor in interface JRItemLabel
Returns:
the item label text color

getBackgroundColor

public java.awt.Color getBackgroundColor()
Description copied from interface: JRItemLabel
Returns the item label background color

Specified by:
getBackgroundColor in interface JRItemLabel
Returns:
the item label background color

getFont

public JRFont getFont()
Description copied from interface: JRItemLabel
Returns the item label font.

Specified by:
getFont in interface JRItemLabel
Returns:
the item label font

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 java.lang.Object clone()
Specified by:
clone in interface JRCloneable
Overrides:
clone in class java.lang.Object


© 2001-2010 Jaspersoft Corporation www.jaspersoft.com