/** * Creates a new TextElement containing a label. * * @param name * the name of the new element * @param bounds * the bounds of the new element * @param paint * the text color of this text element * @param alignment * the horizontal text alignment. * @param font * the font for this element * @param labeltext * the text to display * @return 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 * @deprecated Use a more fine-grained approach to define this element by using the element-factory directly. */ public static Element createLabelElement( final String name, final Rectangle2D bounds, final Color paint, final ElementAlignment alignment, final FontDefinition font, final String labeltext ) { return createLabelElement( name, bounds, paint, alignment, ElementAlignment.TOP, font, labeltext ); }