org.pentaho.reporting.engine.classic.core.wizard
Class AutoGeneratorUtility

java.lang.Object
  extended by org.pentaho.reporting.engine.classic.core.wizard.AutoGeneratorUtility

public class AutoGeneratorUtility
extends Object


Method Summary
static float[] computeFieldWidths(Float[] fieldDescriptions, float pageWidth)
          Computes a set of field widths.
static String computeFormatString(DataAttributes attributes, DataAttributeContext context)
           
static String createFieldName(DataAttributes attributes, DataAttributeContext context)
           
static ElementType createFieldType(DataAttributes attributes, DataAttributeContext context)
           
static Number createFieldWidth(DataAttributes attributes, DataAttributeContext context)
           
static Band findGeneratedContent(Band band)
           
static Element generateDetailsElement(String fieldName, ElementType targetType)
           
static Element generateFooterElement(Class aggregationType, ElementType targetType, String group, String fieldName)
           
static Element generateHeaderElement(String fieldName)
           
static String generateUniqueExpressionName(DataSchema dataSchema, String pattern, AbstractReportDefinition extraColumns)
           
static String generateUniqueExpressionName(DataSchema dataSchema, String pattern, String[] extraColumns)
           
static boolean isIgnorable(DataAttributes attributes, DataAttributeContext context)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

generateUniqueExpressionName

public static String generateUniqueExpressionName(DataSchema dataSchema,
                                                  String pattern,
                                                  String[] extraColumns)
                                           throws ReportProcessingException
Throws:
ReportProcessingException

generateUniqueExpressionName

public static String generateUniqueExpressionName(DataSchema dataSchema,
                                                  String pattern,
                                                  AbstractReportDefinition extraColumns)
                                           throws ReportProcessingException
Throws:
ReportProcessingException

computeFieldWidths

public static float[] computeFieldWidths(Float[] fieldDescriptions,
                                         float pageWidth)
Computes a set of field widths. The input-width definitions can be a mix of absolute and relative values; the resulting widths are always relative values. If the input width is null or zero, it is assumed that the field wants to have a generic width.

Parameters:
fieldDescriptions -
pageWidth -
Returns:

generateFooterElement

public static Element generateFooterElement(Class aggregationType,
                                            ElementType targetType,
                                            String group,
                                            String fieldName)

generateHeaderElement

public static Element generateHeaderElement(String fieldName)

generateDetailsElement

public static Element generateDetailsElement(String fieldName,
                                             ElementType targetType)

createFieldWidth

public static Number createFieldWidth(DataAttributes attributes,
                                      DataAttributeContext context)

createFieldName

public static String createFieldName(DataAttributes attributes,
                                     DataAttributeContext context)

createFieldType

public static ElementType createFieldType(DataAttributes attributes,
                                          DataAttributeContext context)

computeFormatString

public static String computeFormatString(DataAttributes attributes,
                                         DataAttributeContext context)

isIgnorable

public static boolean isIgnorable(DataAttributes attributes,
                                  DataAttributeContext context)

findGeneratedContent

public static Band findGeneratedContent(Band band)