/** * Creates a new TextElement without any additional filtering. * * @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 nullString * the text used when the value of this element is null * @param field * the field in the datamodel to retrieve values from * @return a report element for displaying <code>String</code> objects. * @throws NullPointerException * if bounds, name or function 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 createStringElement( final String name, final Rectangle2D bounds, final Color paint, final ElementAlignment alignment, final FontDefinition font, final String nullString, final String field ) { return createStringElement( name, bounds, paint, alignment, ElementAlignment.TOP, font, nullString, field ); }