public class JRBaseItemLabel extends Object implements JRItemLabel, Serializable
Modifier and Type | Field and Description |
---|---|
protected Color |
backgroundColor
The item label background color.
|
protected JRChart |
chart |
protected Color |
color
The item label text color.
|
protected JRFont |
font
The item label text font.
|
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
JRItemLabel |
clone(JRChart parentChart)
Returns the item label formatting mask.
|
void |
collectExpressions(JRExpressionCollector collector)
Adds all the expression used by this plot with the specified collector.
|
Color |
getBackgroundColor() |
JRChart |
getChart() |
Color |
getColor() |
JRFont |
getFont() |
protected JRChart chart
protected Color color
protected Color backgroundColor
protected JRFont font
public JRBaseItemLabel(JRItemLabel itemLabel, JRChart chart)
itemLabel
- the item label object to copychart
- the parent chartpublic JRBaseItemLabel(JRItemLabel itemLabel, JRBaseObjectFactory factory)
itemLabel
- the item label object to copyfactory
- the factory object to register expressions withpublic JRChart getChart()
getChart
in interface JRItemLabel
public Color getColor()
getColor
in interface JRItemLabel
public Color getBackgroundColor()
getBackgroundColor
in interface JRItemLabel
public JRFont getFont()
getFont
in interface JRItemLabel
public void collectExpressions(JRExpressionCollector collector)
collector
- the expression collector to usepublic Object clone()
clone
in interface JRCloneable
clone
in class Object
public JRItemLabel clone(JRChart parentChart)
JRItemLabel
java.text.DecimalFormat
.clone
in interface JRItemLabel
Copyright © 2016. All rights reserved.