| |
|
| java.lang.Object org.jfree.report.elementfactory.ElementFactory org.jfree.report.elementfactory.TextElementFactory org.jfree.report.elementfactory.LabelElementFactory
LabelElementFactory | public class LabelElementFactory extends TextElementFactory (Code) | | A factory to define LabelElements. LabelElements are considered immutable and should
not be modified once they are created. The label expects plain text.
author: Thomas Morgner |
Method Summary | |
public Element | createElement() Creates the label element. | public static TextElement | createLabelElement(String name, Rectangle2D bounds, Color paint, ElementAlignment alignment, FontDefinition font, String labeltext) Creates a new TextElement containing a label. | public static TextElement | createLabelElement(String name, Rectangle2D bounds, Color paint, ElementAlignment alignment, ElementAlignment valign, FontDefinition font, String labeltext) Creates a new
org.jfree.report.TextElement containing a label.
Parameters: name - the name of the new element. Parameters: bounds - the bounds of the new element. Parameters: paint - the text color of this text element. Parameters: alignment - the horizontal alignment. Parameters: valign - the vertical alignment. Parameters: font - the font for this element. Parameters: labeltext - the text to display. | public String | getText() Returns the label text. | public void | setText(String text) Defines the text of the label. |
LabelElementFactory | public LabelElementFactory()(Code) | | DefaultConstructor.
|
createLabelElement | public static TextElement createLabelElement(String name, Rectangle2D bounds, Color paint, ElementAlignment alignment, FontDefinition font, String labeltext)(Code) | | Creates a new TextElement containing a label.
Parameters: name - the name of the new element Parameters: bounds - the bounds of the new element Parameters: paint - the text color of this text element Parameters: alignment - the horizontal text alignment. Parameters: font - the font for this element Parameters: labeltext - the text to display a report element for displaying a label (static text). throws: NullPointerException - if bounds, name, format or field are null throws: IllegalArgumentException - if the given alignment is invalid |
getText | public String getText()(Code) | | Returns the label text.
the text of the label. |
setText | public void setText(String text)(Code) | | Defines the text of the label.
Parameters: text - the plain text of the label. |
|
|
|